Image pub plugin. More...
Public Member Functions | |
const message_map | get_rx_handlers () |
ImagePubPlugin () | |
void | initialize (UAS &uas_) |
Private Member Functions | |
bool | check_supported_type (uint8_t type) const |
void | handle_data_transmission_handshake (const mavlink_message_t *msg, uint8_t sysid, uint8_t compid) |
void | handle_encapsulated_data (const mavlink_message_t *msg, uint8_t sysid, uint8_t compid) |
void | publish_compressed_image () |
void | publish_image () |
void | publish_raw8u_image () |
Private Attributes | |
std::string | frame_id |
std::vector< uint8_t > | im_buffer |
size_t | im_height |
ros::NodeHandle | im_nh |
size_t | im_packets |
size_t | im_payload |
size_t | im_seqnr |
size_t | im_size |
uint8_t | im_type |
size_t | im_width |
image_transport::Publisher | image_pub |
boost::shared_ptr < image_transport::ImageTransport > | itp |
Static Private Attributes | |
static constexpr size_t | MAX_BUFFER_RESERVE_DIFF = 0x20000 |
Maximum difference for im_buffer.capacity() and im_size (100 KiB) |
Image pub plugin.
This plugin recive image from mavlink stream and publish in ROS.
Definition at line 33 of file image_pub.cpp.