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

Command plugin. More...

Inheritance diagram for mavplugin::CommandPlugin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CommandPlugin ()
const message_map get_rx_handlers ()
 Return map with message rx handlers.
void initialize (UAS &uas_)
 Plugin initializer.

Private Member Functions

bool arming_cb (mavros_msgs::CommandBool::Request &req, mavros_msgs::CommandBool::Response &res)
void command_int (bool broadcast, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, int32_t x, int32_t y, float z)
bool command_int_cb (mavros_msgs::CommandInt::Request &req, mavros_msgs::CommandInt::Response &res)
void command_long (bool broadcast, uint16_t command, uint8_t confirmation, float param1, float param2, float param3, float param4, float param5, float param6, float param7)
bool command_long_cb (mavros_msgs::CommandLong::Request &req, mavros_msgs::CommandLong::Response &res)
void handle_command_ack (const mavlink_message_t *msg, uint8_t sysid, uint8_t compid)
bool land_cb (mavros_msgs::CommandTOL::Request &req, mavros_msgs::CommandTOL::Response &res)
bool send_command_int (bool broadcast, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, int32_t x, int32_t y, float z, unsigned char &success)
bool send_command_long_and_wait (bool broadcast, uint16_t command, uint8_t confirmation, float param1, float param2, float param3, float param4, float param5, float param6, float param7, unsigned char &success, uint8_t &result)
bool set_home_cb (mavros_msgs::CommandHome::Request &req, mavros_msgs::CommandHome::Response &res)
bool takeoff_cb (mavros_msgs::CommandTOL::Request &req, mavros_msgs::CommandTOL::Response &res)
bool trigger_control_cb (mavros_msgs::CommandTriggerControl::Request &req, mavros_msgs::CommandTriggerControl::Response &res)
bool wait_ack_for (CommandTransaction *tr)

Private Attributes

const ros::Duration ACK_TIMEOUT_DT
std::list< CommandTransaction * > ack_waiting_list
ros::ServiceServer arming_srv
ros::NodeHandle cmd_nh
ros::ServiceServer command_int_srv
ros::ServiceServer command_long_srv
ros::ServiceServer land_srv
std::recursive_mutex mutex
ros::ServiceServer set_home_srv
ros::ServiceServer takeoff_srv
ros::ServiceServer trigger_srv
UASuas
bool use_comp_id_system_control

Static Private Attributes

static constexpr int ACK_TIMEOUT_MS = 5000

Detailed Description

Command plugin.

Send any command via COMMAND_LONG

Definition at line 49 of file command.cpp.


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


mavros
Author(s): Vladimir Ermakov
autogenerated on Sat Jun 8 2019 19:55:20