chrono::synchrono::SynTrackedVehicleStateMessage Class Reference
Description
State class that holds state information for a SynTrackedVehicleAgent.
#include <SynTrackedVehicleMessage.h>
Inheritance diagram for chrono::synchrono::SynTrackedVehicleStateMessage:
Collaboration diagram for chrono::synchrono::SynTrackedVehicleStateMessage:
Public Member Functions | |
SynTrackedVehicleStateMessage (SynAgentID source_id, SynAgentID destination_id) | |
Constructor. More... | |
virtual void | ConvertFromFlatBuffers (const SynFlatBuffers::Message *message) override |
Converts a received flatbuffer message to a SynMessage. More... | |
virtual FlatBufferMessage | ConvertToFlatBuffers (flatbuffers::FlatBufferBuilder &builder) override |
Converts this object to a flatbuffer message. More... | |
void | SetState (double time, SynPose chassis, std::vector< SynPose > track_shoes, std::vector< SynPose > sprockets, std::vector< SynPose > idlers, std::vector< SynPose > road_wheels) |
Set the state variables. More... | |
Public Attributes | |
SynPose | chassis |
vehicle's chassis pose | |
std::vector< SynPose > | track_shoes |
vector of vehicle's track shoes | |
std::vector< SynPose > | sprockets |
vector of vehicle's sprockets | |
std::vector< SynPose > | idlers |
vector of vehicle's idlers | |
std::vector< SynPose > | road_wheels |
vector of vehicle's road wheels | |
Additional Inherited Members |
Constructor & Destructor Documentation
◆ SynTrackedVehicleStateMessage()
chrono::synchrono::SynTrackedVehicleStateMessage::SynTrackedVehicleStateMessage | ( | SynAgentID | source_id, |
SynAgentID | destination_id | ||
) |
Constructor.
- Parameters
-
source_id the id of the source to which the message is sent from destination_id the id of the destination to which the message is sent to
Member Function Documentation
◆ ConvertFromFlatBuffers()
|
overridevirtual |
Converts a received flatbuffer message to a SynMessage.
- Parameters
-
message the flatbuffer message to convert to a SynMessage
Implements chrono::synchrono::SynMessage.
◆ ConvertToFlatBuffers()
|
overridevirtual |
Converts this object to a flatbuffer message.
Generate FlatBuffers message from this message's state.
- Parameters
-
builder a flatbuffer builder to construct the message with
- Returns
- FlatBufferMessage the constructed flatbuffer message
Implements chrono::synchrono::SynMessage.
◆ SetState()
void chrono::synchrono::SynTrackedVehicleStateMessage::SetState | ( | double | time, |
SynPose | chassis, | ||
std::vector< SynPose > | track_shoes, | ||
std::vector< SynPose > | sprockets, | ||
std::vector< SynPose > | idlers, | ||
std::vector< SynPose > | road_wheels | ||
) |
Set the state variables.
- Parameters
-
time simulation time chassis vehicle's chassis pose track_shoes vehicle's track shoe poses sprockets vehicle's sprocket poses idlers vehicle's idler poses road_wheels vehicle's road wheel poses
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynTrackedVehicleMessage.h
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynTrackedVehicleMessage.cpp