Skip to content

Commit

Permalink
Allow setting the speed slider fraction to 0.0 from service (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
urfeex authored Jan 23, 2025
1 parent c006672 commit c64d549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ur_robot_driver/src/hardware_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ bool HardwareInterface::stopControl(std_srvs::TriggerRequest& req, std_srvs::Tri
bool HardwareInterface::setSpeedSlider(ur_msgs::SetSpeedSliderFractionRequest& req,
ur_msgs::SetSpeedSliderFractionResponse& res)
{
if (req.speed_slider_fraction >= 0.01 && req.speed_slider_fraction <= 1.0 && ur_driver_ != nullptr)
if (req.speed_slider_fraction >= 0.0 && req.speed_slider_fraction <= 1.0 && ur_driver_ != nullptr)
{
res.success = ur_driver_->getRTDEWriter().sendSpeedSlider(req.speed_slider_fraction);
}
Expand Down

0 comments on commit c64d549

Please sign in to comment.