MAVROS GCS proxy with Image sender. More...
#include <ros/ros.h>
#include <ros/console.h>
#include <mavros/utils.h>
#include <mavconn/interface.h>
#include <mavros/Mavlink.h>
#include <sensor_msgs/image_encodings.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <cv.h>
#include <highgui.h>
Go to the source code of this file.
Functions | |
void | image_cb (const sensor_msgs::Image::ConstPtr &img_msg) |
int | main (int argc, char *argv[]) |
void | mavlink_pub_cb (const mavlink_message_t *mmsg, uint8_t sysid, uint8_t compid) |
void | mavlink_sub_cb (const Mavlink::ConstPtr &rmsg) |
void | send_jpeg_image (std::vector< uint8_t > &jpeg_buffer, int jpeg_quality, int height, int width) |
Variables | |
MAVConnInterface::Ptr | gcs_link |
int | jpeg_quality |
ros::Publisher | mavlink_pub |
MAVROS GCS proxy with Image sender.
Definition in file gcs_image_bridge.cpp.
void image_cb | ( | const sensor_msgs::Image::ConstPtr & | img_msg | ) |
Definition at line 116 of file gcs_image_bridge.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 162 of file gcs_image_bridge.cpp.
void mavlink_pub_cb | ( | const mavlink_message_t * | mmsg, |
uint8_t | sysid, | ||
uint8_t | compid | ||
) |
Definition at line 46 of file gcs_image_bridge.cpp.
void mavlink_sub_cb | ( | const Mavlink::ConstPtr & | rmsg | ) |
Definition at line 55 of file gcs_image_bridge.cpp.
void send_jpeg_image | ( | std::vector< uint8_t > & | jpeg_buffer, |
int | jpeg_quality, | ||
int | height, | ||
int | width | ||
) |
Definition at line 65 of file gcs_image_bridge.cpp.
Definition at line 43 of file gcs_image_bridge.cpp.
int jpeg_quality |
Definition at line 42 of file gcs_image_bridge.cpp.
Definition at line 44 of file gcs_image_bridge.cpp.