Skip to content

Commit

Permalink
Cleanup debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Oct 15, 2023
1 parent eb2ab63 commit f23b382
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions joint_trajectory_controller/src/joint_trajectory_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,6 @@ bool JointTrajectoryController::read_state_from_command_interfaces(JointTrajecto
}
else
{
if (has_position_command_interface_ == false)
{
RCLCPP_DEBUG(get_node()->get_logger(), "No position command interface found.");
}
if (interface_has_values(joint_command_interface_[0]) == false)
{
RCLCPP_DEBUG(get_node()->get_logger(), "Interface position doesn't have values.");
}
state.positions.clear();
has_values = false;
}
Expand All @@ -493,14 +485,6 @@ bool JointTrajectoryController::read_state_from_command_interfaces(JointTrajecto
}
else
{
if (has_velocity_command_interface_ == false)
{
RCLCPP_DEBUG(get_node()->get_logger(), "No velocity command interface found.");
}
if (interface_has_values(joint_command_interface_[1]) == false)
{
RCLCPP_DEBUG(get_node()->get_logger(), "Interface velocity doesn't have values.");
}
state.velocities.clear();
has_values = false;
}
Expand All @@ -518,14 +502,6 @@ bool JointTrajectoryController::read_state_from_command_interfaces(JointTrajecto
}
else
{
if (has_acceleration_command_interface_ == false)
{
RCLCPP_DEBUG(get_node()->get_logger(), "No acceleration command interface found.");
}
if (interface_has_values(joint_command_interface_[2]) == false)
{
RCLCPP_DEBUG(get_node()->get_logger(), "Interface acceleration doesn't have values.");
}
state.accelerations.clear();
has_values = false;
}
Expand Down

0 comments on commit f23b382

Please sign in to comment.