Skip to content

Commit

Permalink
command: replace deprecated rmw_qos
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Jun 7, 2024
1 parent 8d8ead1 commit 4297220
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mavros/src/plugins/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,59 +91,59 @@ class CommandPlugin : public plugin::Plugin
"~/command",
std::bind(
&CommandPlugin::command_long_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicessQoS(), srv_cg);
command_int_srv =
node->create_service<mavros_msgs::srv::CommandInt>(
"~/command_int",
std::bind(
&CommandPlugin::command_int_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicesQoS(), srv_cg);
arming_srv =
node->create_service<mavros_msgs::srv::CommandBool>(
"~/arming",
std::bind(
&CommandPlugin::arming_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicesQoS(), srv_cg);
set_home_srv =
node->create_service<mavros_msgs::srv::CommandHome>(
"~/set_home",
std::bind(
&CommandPlugin::set_home_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicesQoS(), srv_cg);
takeoff_srv =
node->create_service<mavros_msgs::srv::CommandTOL>(
"~/takeoff",
std::bind(
&CommandPlugin::takeoff_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicesQoS(), srv_cg);
takeoff_local_srv =
node->create_service<mavros_msgs::srv::CommandTOLLocal>(
"~/takeoff_local",
std::bind(
&CommandPlugin::takeoff_local_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicesQoS(), srv_cg);
land_srv =
node->create_service<mavros_msgs::srv::CommandTOL>(
"~/land",
std::bind(&CommandPlugin::land_cb, this, _1, _2, _3), rmw_qos_profile_services_default,
std::bind(&CommandPlugin::land_cb, this, _1, _2, _3), rclcpp::ServicesQoS(),
srv_cg);
land_local_srv =
node->create_service<mavros_msgs::srv::CommandTOLLocal>(
"~/land_local",
std::bind(&CommandPlugin::land_local_cb, this, _1, _2, _3), rmw_qos_profile_services_default,
std::bind(&CommandPlugin::land_local_cb, this, _1, _2, _3), rclcpp::ServicesQoS(),
srv_cg);
trigger_control_srv = node->create_service<mavros_msgs::srv::CommandTriggerControl>(
"~/trigger_control", std::bind(
&CommandPlugin::trigger_control_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicesQoS(), srv_cg);
trigger_interval_srv = node->create_service<mavros_msgs::srv::CommandTriggerInterval>(
"~/trigger_interval", std::bind(
&CommandPlugin::trigger_interval_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicesQoS(), srv_cg);
vtol_transition_srv = node->create_service<mavros_msgs::srv::CommandVtolTransition>(
"~/vtol_transition", std::bind(
&CommandPlugin::vtol_transition_cb, this, _1, _2,
_3), rmw_qos_profile_services_default, srv_cg);
_3), rclcpp::ServicesQoS(), srv_cg);
}

Subscriptions get_subscriptions() override
Expand Down

0 comments on commit 4297220

Please sign in to comment.