ros-industrial / ur_modern_driver

(deprecated) ROS 1 driver for CB1 and CB2 controllers with UR5 or UR10 robots from Universal Robots
Apache License 2.0
302 stars 340 forks source link

Fix to setToolVoltage checking and replacement of casting with rounding #327

Open reidchristopher opened 5 years ago

reidchristopher commented 5 years ago

Previous voltage value checking always made the service fail if trying to set the tool voltage. This was fixed and the voltage value is now rounded instead of casted to allow for minor errors on both sides of the values allowed.