MAVROS GCS proxy with Image sender. More...
#include <ros/ros.h>
#include <ros/console.h>
#include <mavros/utils.h>
#include <mavros/mavlink_diag.h>
#include <mavconn/interface.h>
#include <sensor_msgs/image_encodings.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv2/opencv.hpp>
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 mavros_msgs::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 104 of file gcs_image_bridge.cpp.
Definition at line 150 of file gcs_image_bridge.cpp.
void mavlink_pub_cb | ( | const mavlink_message_t * | mmsg, |
uint8_t | sysid, | ||
uint8_t | compid | ||
) |
Definition at line 34 of file gcs_image_bridge.cpp.
void mavlink_sub_cb | ( | const mavros_msgs::Mavlink::ConstPtr & | rmsg | ) |
Definition at line 43 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 53 of file gcs_image_bridge.cpp.
Definition at line 31 of file gcs_image_bridge.cpp.
Definition at line 30 of file gcs_image_bridge.cpp.
Definition at line 32 of file gcs_image_bridge.cpp.