template class ugcs::vsm::mavlink::Message¶
Overview¶
Specific Mavlink message with sender information from the header. More…
#include <mavlink.h> template <MESSAGE_ID_TYPE message_id, class Extension_type = Extension> class Message { public: // typedefs typedef std::shared_ptr<Message> Ptr; typedef std::weak_ptr<Message> Weak_ptr; // fields Payload_type_mapper<message_id, Extension_type>::type payload; // construction Message(uint8_t system_id, uint8_t component_id, uint32_t request_id, Io_buffer::Ptr buffer); // methods template <typename... Args> static Ptr Create(Args&&... args); uint8_t Get_sender_system_id() const; uint8_t Get_sender_component_id() const; uint32_t Get_sender_request_id() const; };
Detailed Documentation¶
Specific Mavlink message with sender information from the header.
Typedefs¶
typedef std::shared_ptr<Message> Ptr
Pointer type.
typedef std::weak_ptr<Message> Weak_ptr
Pointer type.
Fields¶
Payload_type_mapper<message_id, Extension_type>::type payload
Payload of the message.
Construction¶
Message(uint8_t system_id, uint8_t component_id, uint32_t request_id, Io_buffer::Ptr buffer)
Construct message based on Mavlink payload and fixed header important fields.
Parameters:
Invalid_param_exception |
if size of the buffer is less than expected payload size. |
Methods¶
template <typename... Args> static Ptr Create(Args&&... args)
Create an instance.
uint8_t Get_sender_system_id() const
Get system id of the sender.
uint8_t Get_sender_component_id() const
Get component id of the sender.
uint32_t Get_sender_request_id() const
Get component id of the sender.