19 #include <mavros_msgs/MountControl.h> 22 namespace extra_plugins {
25 using mavlink::common::MAV_MOUNT_MODE;
26 using mavlink::common::MAV_CMD;
65 mavlink::common::msg::COMMAND_LONG
cmd {};
70 cmd.param1 = req->pitch;
71 cmd.param2 = req->roll;
72 cmd.param3 = req->yaw;
73 cmd.param4 = req->altitude;
74 cmd.param5 = req->latitude;
75 cmd.param6 = req->longitude;
76 cmd.param7 = req->mode;
std::shared_ptr< MAVConnInterface const > ConstPtr
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ros::Subscriber command_sub
void initialize(UAS &uas_)
#define UAS_FCU(uasobjptr)
std::vector< HandlerInfo > Subscriptions
void initialize(UAS &uas_)
Subscriptions get_subscriptions()
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
uint8_t get_tgt_component()
void command_cb(const mavros_msgs::MountControl::ConstPtr &req)
Send mount control commands to vehicle.
constexpr std::underlying_type< _T >::type enum_value(_T e)