Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Add liveliness gained debug message.
Browse files Browse the repository at this point in the history
Otherwise all those red messages get quite depressing.
  • Loading branch information
aentinger committed Nov 15, 2023
1 parent 0591ceb commit 2f0abf1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std_msgs::msg::Float32>(
Expand Down Expand Up @@ -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<std_msgs::msg::Float32>(
Expand Down

0 comments on commit 2f0abf1

Please sign in to comment.