Description
Description class that holds description information for a SynCopter.
#include <SynCopterMessage.h>


Public Member Functions | |
| SynCopterDescriptionMessage (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 | SetVisualizationFiles (const std::string &chassis_visualization_file, const std::string &propeller_visualization_file) | 
| Set the visualization files used for zombie visualization.  More... | |
| void | SetNumProps (int number_props) | 
| Set the total number of propellers for this copter.  More... | |
| int | GetNumProps () const | 
| Get the number of propellers for this copter.  | |
Public Attributes | |
| std::string | chassis_vis_file = "" | 
| file name for chassis zombie visualization  | |
| std::string | propeller_vis_file = "" | 
| file name for propeller zombie visualization  | |
| int | num_props = 0 | 
| number of propellers the zombie copter has  | |
Additional Inherited Members | 
Constructor & Destructor Documentation
◆ SynCopterDescriptionMessage()
| chrono::synchrono::SynCopterDescriptionMessage::SynCopterDescriptionMessage | ( | 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.
Generate agent description from FlatBuffers message.
- Parameters
 - 
  
message the flatbuffer message to convert to a SynMessage  
Cast from SynFlatBuffers::Message to SynFlatBuffers::Agent::Copter::Description
Implements chrono::synchrono::SynMessage.
◆ ConvertToFlatBuffers()
      
  | 
  overridevirtual | 
Converts this object to a flatbuffer message.
Generate FlatBuffers message from this agent's description.
- Parameters
 - 
  
builder a flatbuffer builder to construct the message with  
- Returns
 - FlatBufferMessage the constructed flatbuffer message
 
Implements chrono::synchrono::SynMessage.
◆ SetNumProps()
| void chrono::synchrono::SynCopterDescriptionMessage::SetNumProps | ( | int | number_props | ) | 
Set the total number of propellers for this copter.
- Parameters
 - 
  
number_props the total number of propellers on the copter  
◆ SetVisualizationFiles()
| void chrono::synchrono::SynCopterDescriptionMessage::SetVisualizationFiles | ( | const std::string & | chassis_visualization_file, | 
| const std::string & | propeller_visualization_file | ||
| ) | 
Set the visualization files used for zombie visualization.
- Parameters
 - 
  
chassis_visualization_file filename for the chassis zombie visualization propeller_visualization_file filename for the propellers zombie visualization  
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
 
 Public Member Functions inherited from