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()) {
"get_error", std::bind(
&A4wd3OpenManipulatorI2C::cbGetError, this, std::placeholders::_1,
std::placeholders::_2));
- sub_light = get_node()->create_subscription<std_msgs::msg::UInt8>("/headlight", qos, std::bind(&A4wd3OpenManipulatorI2C::light_callback, this, std::placeholders::_1));
+ sub_light = get_node()->create_subscription<std_msgs::msg::UInt8>("/headlight", rclcpp::SystemDefaultsQoS(), std::bind(&A4wd3OpenManipulatorI2C::light_callback, this, std::placeholders::_1));
RCLCPP_INFO(get_logger(), "Configuration successful");
return hardware_interface::CallbackReturn::SUCCESS;