chrono::synchrono::SynVehicleBrain Class Reference
Description
Enforces having a ChDriver, and getting inputs from said driver to pass to a ChVehicle.
#include <SynVehicleBrain.h>
Inheritance diagram for chrono::synchrono::SynVehicleBrain:
Collaboration diagram for chrono::synchrono::SynVehicleBrain:
Public Member Functions | |
SynVehicleBrain (int rank, std::shared_ptr< vehicle::ChDriver > driver, vehicle::ChVehicle &vehicle) | |
Constructor which takes and sets this brains ChDriver and ChVehicle. | |
~SynVehicleBrain () | |
Destructor. | |
virtual void | Advance (double step) override |
Advance the state of this brain until brain time syncs with passed time. | |
virtual void | Synchronize (double time) override |
Synchronize this brain to the specified time. | |
virtual void | ProcessMessage (SynMessage *msg) override |
Process an incoming message. | |
virtual void | GenerateMessagesToSend (std::vector< SynMessage * > &messages) override |
Generate vector of SynMessage's to send. | |
vehicle::ChDriver::Inputs | GetDriverInputs () |
Get the driver inputs from the attached driver. | |
std::shared_ptr< vehicle::ChDriver > | GetDriver () |
Get the attached driver. | |
void | SetDriver (std::shared_ptr< vehicle::ChDriver > driver) |
Set the attached driver. | |
vehicle::ChVehicle & | GetVehicle () |
Public Member Functions inherited from chrono::synchrono::SynBrain | |
SynBrain (int rank) | |
Constructor. | |
virtual | ~SynBrain () |
Destructor. | |
int | GetRank () |
Get this brain's rank. | |
Protected Attributes | |
std::shared_ptr< vehicle::ChDriver > | m_driver |
handle to the ChDriver | |
vehicle::ChVehicle & | m_vehicle |
Protected Attributes inherited from chrono::synchrono::SynBrain | |
int | m_rank |
rank of this brain | |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_synchrono/brain/SynVehicleBrain.h
- /builds/uwsbel/chrono/src/chrono_synchrono/brain/SynVehicleBrain.cpp