diff --git a/src/Node.cpp b/src/Node.cpp index 38f51fd..1112f4c 100644 --- a/src/Node.cpp +++ b/src/Node.cpp @@ -178,6 +178,10 @@ void Node::init_motor_left() "liveliness lost for \"%s\", limiting _motor_left_target to %f m/s", motor_left_topic.c_str(), _motor_left_target.numerical_value_in(m/s)); } + else + { + RCLCPP_INFO(get_logger(), "liveliness gained for \"%s\"", motor_left_topic.c_str()); + } }; _motor_left_sub = create_subscription( @@ -242,6 +246,10 @@ void Node::init_motor_right() "liveliness lost for \"%s\", limiting _motor_right_target to %f m/s", motor_right_topic.c_str(), _motor_right_target.numerical_value_in(m/s)); } + else + { + RCLCPP_INFO(get_logger(), "liveliness gained for \"%s\"", motor_right_topic.c_str()); + } }; _motor_right_sub = create_subscription(