Skip to content

Commit

Permalink
param: replace old rmw_qos usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Jun 7, 2024
1 parent 3e6ede1 commit d49deba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mavros/src/plugins/param.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,12 @@ class ParamPlugin : public plugin::Plugin
is_timedout(false)
{
auto event_qos = rclcpp::ParameterEventsQoS();

#ifdef USE_OLD_RMW_QOS
auto qos = rclcpp::ParametersQoS().get_rmw_qos_profile();
#else
auto qos = rclcpp::ParametersQoS();
#endif

param_event_pub = node->create_publisher<mavros_msgs::msg::ParamEvent>("~/event", event_qos);
std_event_pub = node->create_publisher<rcl_interfaces::msg::ParameterEvent>(
Expand Down

0 comments on commit d49deba

Please sign in to comment.