Skip to content

Commit

Permalink
Fix bug in setting scaling factor
Browse files Browse the repository at this point in the history
  • Loading branch information
mamueluth committed May 24, 2024
1 parent abbf52f commit a685a5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ bool JointTrajectoryController::set_scaling_factor(
control_msgs::srv::SetScalingFactor::Request::SharedPtr req,
control_msgs::srv::SetScalingFactor::Response::SharedPtr resp)
{
if (req->scaling_factor < 0 && req->scaling_factor > 1)
if (req->scaling_factor < 0 || req->scaling_factor > 1)
{
RCLCPP_WARN(
get_node()->get_logger(), "Scaling factor has to be in range [0, 1]. Ignoring input!");
Expand Down

0 comments on commit a685a5d

Please sign in to comment.