chrono::synchrono::SynCopterStateMessage Class Reference
Description
State class that holds state information for a SynCopter.
#include <SynCopterMessage.h>
Inheritance diagram for chrono::synchrono::SynCopterStateMessage:
Collaboration diagram for chrono::synchrono::SynCopterStateMessage:
Public Member Functions | |
SynCopterStateMessage (AgentKey source_key=AgentKey(), AgentKey destination_key=AgentKey()) | |
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) const override |
Converts this object to a flatbuffer message. More... | |
void | SetState (double time, SynPose chassis, std::vector< SynPose > props) |
Set the state variables. More... | |
Public Attributes | |
SynPose | chassis |
copter's chassis pose | |
std::vector< SynPose > | props |
vector of copter's propellers | |
Additional Inherited Members |
Constructor & Destructor Documentation
◆ SynCopterStateMessage()
chrono::synchrono::SynCopterStateMessage::SynCopterStateMessage | ( | AgentKey | source_key = AgentKey() , |
AgentKey | destination_key = AgentKey() |
||
) |
Constructor.
- Parameters
-
source_key the id of the source to which the message is sent from destination_key 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::SynCopterStateMessage::SetState | ( | double | time, |
SynPose | chassis, | ||
std::vector< SynPose > | props | ||
) |
Set the state variables.
- Parameters
-
time simulation time chassis copter's chassis pose props vector of the copter's propellers poses
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynCopterMessage.h
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynCopterMessage.cpp