chrono::synchrono::SynWheeledVehicleStateMessage Class Reference
Description
State class that holds state information for a SynWheeledVehicle.
#include <SynWheeledVehicleMessage.h>
Inheritance diagram for chrono::synchrono::SynWheeledVehicleStateMessage:
Collaboration diagram for chrono::synchrono::SynWheeledVehicleStateMessage:
Public Member Functions | |
SynWheeledVehicleStateMessage (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 > wheels) |
Set the state variables. More... | |
Public Attributes | |
SynPose | chassis |
vehicle's chassis pose | |
std::vector< SynPose > | wheels |
vector of vehicle's wheels | |
Additional Inherited Members |
Constructor & Destructor Documentation
◆ SynWheeledVehicleStateMessage()
chrono::synchrono::SynWheeledVehicleStateMessage::SynWheeledVehicleStateMessage | ( | 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::SynWheeledVehicleStateMessage::SetState | ( | double | time, |
SynPose | chassis, | ||
std::vector< SynPose > | wheels | ||
) |
Set the state variables.
- Parameters
-
time simulation time chassis vehicle's chassis pose wheels vector of the vehicle's wheel poses
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynWheeledVehicleMessage.h
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynWheeledVehicleMessage.cpp