delphyne
UnicycleCarAgent 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.

#include <src/agents/unicycle_car.h>

Inheritance diagram for UnicycleCarAgent:
[legend]

Public Member Functions

 UnicycleCarAgent (Agent::Diagram *diagram, VectorSource< double > *acceleration_setter, VectorSource< double > *angular_rate_setter)
 Unicycle car agent constructor. More...
 
void SetAcceleration (double new_acceleration)
 Sets the acceleration input to this agent. More...
 
void SetAngularRate (double new_angular_rate)
 Sets the angular rate input to this agent. More...
 
- Public Member Functions inherited from AgentBase< T >
 AgentBase (Diagram *diagram)
 Constructs basic agent, associated with the given diagram. More...
 
virtual ~AgentBase ()=default
 
void SetContext (drake::systems::Context< T > *context)
 Resets this agent's Context to context. More...
 
const drake::systems::Context< T > & GetContext () const
 Gets a reference to the agent's Context. More...
 
drake::systems::Context< T > * GetMutableContext () const
 Gets a mutable reference to the agent's Context. More...
 
const DiagramGetDiagram () const
 Gets a reference to the agent's Diagram representation. More...
 
drake::systems::rendering::PoseVector< T > GetPose () const
 Gets the agent pose in the simulation. More...
 
drake::TwistVector< T > GetVelocity () const
 Gets the agent twist in the simulation. More...
 
const std::string & name () const
 Gets the agent name. More...
 
const std::set< drake::geometry::GeometryId > & GetGeometryIDs () const
 Gets a reference to the agent's geometry IDs. More...
 
virtual bool IsSourceOf (const drake::geometry::GeometryId &geometry_id) const
 Checks whether this agent is the source of the given geometry_id (i.e. More...
 

Additional Inherited Members

- Public Types inherited from AgentBase< T >
using Diagram = DiagramBundle< T >
 Diagram type for this agent. More...
 

Constructor & Destructor Documentation

◆ UnicycleCarAgent()

UnicycleCarAgent ( Agent::Diagram diagram,
VectorSource< double > *  acceleration_setter,
VectorSource< double > *  angular_rate_setter 
)
explicit

Unicycle car agent constructor.

Parameters
diagramThe Diagram representation of the rail car agent.
acceleration_setterThe acceleration input to the underlying UnicycleCar in this diagram.
angular_rate_setterThe angular rate input to the underlying UnicycleCar in this diagram.

Member Function Documentation

◆ SetAcceleration()

void SetAcceleration ( double  new_acceleration)

Sets the acceleration input to this agent.

Parameters
new_accelerationThe new acceleration input to the agent.

◆ SetAngularRate()

void SetAngularRate ( double  new_angular_rate)

Sets the angular rate input to this agent.

Parameters
new_angular_rateThe new angular rate input to the agent.

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