chrono::synchrono::SynCopterStateMessage Class Reference


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 Member Functions inherited from chrono::synchrono::SynMessage
virtual ~SynMessage ()
 Destroy the SynMessage object.
AgentKey GetSourceKey ()
 Get the key of the source of this message. More...
void SetSourceKey (AgentKey source_key)
 Set the key of the source of this message. More...
AgentKey GetDestinationKey ()
 Get the key of the destination for this message. More...
SynFlatBuffers::Type GetMessageType ()
void SetMessageType (SynFlatBuffers::Type msg_type)

Public Attributes

SynPose chassis
 copter's chassis pose
std::vector< SynPoseprops
 vector of copter's propellers
- Public Attributes inherited from chrono::synchrono::SynMessage
double time
 simulation time

Additional Inherited Members

- Protected Member Functions inherited from chrono::synchrono::SynMessage
 SynMessage (AgentKey source_key=AgentKey(), AgentKey destination_key=AgentKey())
 Constructor. More...
- Protected Attributes inherited from chrono::synchrono::SynMessage
AgentKey m_source_key
 key for the source which sent this message
AgentKey m_destination_key
 key for the destination of this message
SynFlatBuffers::Type m_msg_type
 Type of message that we contain.

Constructor & Destructor Documentation

◆ SynCopterStateMessage()

chrono::synchrono::SynCopterStateMessage::SynCopterStateMessage ( AgentKey  source_key = AgentKey(),
AgentKey  destination_key = AgentKey() 


source_keythe id of the source to which the message is sent from
destination_keythe id of the destination to which the message is sent to

Member Function Documentation

◆ ConvertFromFlatBuffers()

void chrono::synchrono::SynCopterStateMessage::ConvertFromFlatBuffers ( const SynFlatBuffers::Message *  message)

Converts a received flatbuffer message to a SynMessage.

messagethe flatbuffer message to convert to a SynMessage

Implements chrono::synchrono::SynMessage.

◆ ConvertToFlatBuffers()

FlatBufferMessage chrono::synchrono::SynCopterStateMessage::ConvertToFlatBuffers ( flatbuffers::FlatBufferBuilder &  builder) const

Converts this object to a flatbuffer message.

Generate FlatBuffers message from this message's state.

buildera flatbuffer builder to construct the message with
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.

timesimulation time
chassiscopter's chassis pose
propsvector 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