Skip to content

Commit

Permalink
Remove print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Dec 4, 2023
1 parent 38ca7b4 commit e08a093
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,8 @@ class Ros2ControlManager : public moveit_controller_manager::MoveItControllerMan
void discover(bool force = false)
{
// Skip if controller stamp is too new for new discovery, enforce update if force==true
const auto controller_information_age = node_->now() - controllers_stamp_;
if (!force && (controller_information_age > CONTROLLER_INFORMATION_VALIDITY_AGE))
if (!force && ((node_->now() - controllers_stamp_) < CONTROLLER_INFORMATION_VALIDITY_AGE))
{
RCLCPP_WARN_STREAM(LOGGER, "Controller information from "
<< list_controllers_service_->get_service_name() << " is out of date ("
<< controller_information_age.seconds() << "s old), skipping discovery");
return;
}

Expand Down

0 comments on commit e08a093

Please sign in to comment.