Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
mavplugin::ImagePubPlugin Class Reference

Image pub plugin. More...

Inheritance diagram for mavplugin::ImagePubPlugin:
Inheritance graph

List of all members.

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
< image_transport::ImageTransport

Static Private Attributes

static constexpr size_t MAX_BUFFER_RESERVE_DIFF = 0x20000
 Maximum difference for im_buffer.capacity() and im_size (100 KiB)

Detailed Description

Image pub plugin.

This plugin recive image from mavlink stream and publish in ROS.

Definition at line 33 of file image_pub.cpp.

The documentation for this class was generated from the following file:

Author(s): Vladimir Ermakov
autogenerated on Thu Feb 9 2017 04:00:23