delphyne
MobilCarBlueprint Class Reference

Detailed Description

An agent that follows roads as if they were railroad tracks.

The underlying road network has a reference line for each lane which is utilised by this agent as a railroad track.

Initial position is specified in the lane longitudinal co-ordinate (how far along the track) and the agent will follow this track exactly - the only variance it is permitted is the speed with which it follows the track.

#include <src/agents/mobil_car.h>

Inheritance diagram for MobilCarBlueprint:
[legend]

Public Member Functions

 MobilCarBlueprint (const std::string &name, bool direction_of_travel, double x, double y, double heading, double speed)
 Default constructor. More...
 
- Public Member Functions inherited from TypedAgentBaseBlueprint< T, A >
const A & GetAgent (const AgentSimulationBase< T > &simulation) const override
 Returns a reference to the agent associated with this blueprint inside the given simulation. More...
 
A * GetMutableAgent (AgentSimulationBase< T > *simulation) override
 Returns a mutable reference to the agent associated with this blueprint inside the given simulation. More...
 
- Public Member Functions inherited from AgentBaseBlueprint< T >
 AgentBaseBlueprint (const std::string &name)
 Constructs a blueprint for an agent with the given name. More...
 
virtual ~AgentBaseBlueprint ()=default
 
std::unique_ptr< AgentBase< T > > BuildInto (maliput::api::RoadNetwork *road_network, drake::systems::DiagramBuilder< T > *builder)
 Builds the agen Agent's Diagram representation into the given builder of the containing simulation Diagram. More...
 
const std::string & name () const
 Gets the name for the agent. More...
 
AgentBase< T >::Diagram * GetMutableDiagram (AgentBase< T > *agent) const
 
std::set< drake::geometry::GeometryId > * GetMutableGeometryIDs (AgentBase< T > *agent) const
 

Additional Inherited Members

- Public Types inherited from AgentBaseBlueprint< T >
using DiagramBuilder = AgentDiagramBuilder< T >
 Diagram builder type for this agent blueprint. More...
 

Constructor & Destructor Documentation

◆ MobilCarBlueprint()

MobilCarBlueprint ( const std::string &  name,
bool  direction_of_travel,
double  x,
double  y,
double  heading,
double  speed 
)
explicit

Default constructor.

Parameters
[in]nameThe unique name for the agent
[in]direction_of_travelDesignates whether the car will travel with or against the flow specified by the lane's rules.
[in]xThe scene x-coordinate.
[in]yThe scene y-coordinate.
[in]headingThe orientation of the car in the x-y frame.
[in]speedThe actual initial speed.

The documentation for this class was generated from the following files: