From: Erik Andresen Date: Fri, 23 Oct 2026 04:53:33 +0000 (+0200) Subject: QoS: Use System constants X-Git-Url: https://defiant.homedns.org/gitweb/?a=commitdiff_plain;h=c5fced5ebc85d05f9fc421176e3a961a1365e675;p=wt_open_manipulator.git QoS: Use System constants --- diff --git a/hardware/src/a4wd3_open_manipulator_i2c.cpp b/hardware/src/a4wd3_open_manipulator_i2c.cpp index 724b40b..45b3f51 100644 --- a/hardware/src/a4wd3_open_manipulator_i2c.cpp +++ b/hardware/src/a4wd3_open_manipulator_i2c.cpp @@ -44,7 +44,6 @@ hardware_interface::CallbackReturn A4wd3OpenManipulatorI2C::on_init( hardware_interface::CallbackReturn A4wd3OpenManipulatorI2C::on_configure( const rclcpp_lifecycle::State & /*previous_state*/) { - auto qos = rclcpp::QoS(10).keep_all().reliable(); RCLCPP_INFO(get_logger(), "Configuring %s", info_.name.c_str()); if (!setup_dynamixels()) { @@ -59,7 +58,7 @@ hardware_interface::CallbackReturn A4wd3OpenManipulatorI2C::on_configure( "get_error", std::bind( &A4wd3OpenManipulatorI2C::cbGetError, this, std::placeholders::_1, std::placeholders::_2)); - sub_light = get_node()->create_subscription("/headlight", qos, std::bind(&A4wd3OpenManipulatorI2C::light_callback, this, std::placeholders::_1)); + sub_light = get_node()->create_subscription("/headlight", rclcpp::SystemDefaultsQoS(), std::bind(&A4wd3OpenManipulatorI2C::light_callback, this, std::placeholders::_1)); RCLCPP_INFO(get_logger(), "Configuration successful"); return hardware_interface::CallbackReturn::SUCCESS;