Interbotix / interbotix_ros_toolboxes

Support-level ROS Packages for Interbotix Robots
BSD 3-Clause "New" or "Revised" License
29 stars 68 forks source link

Arm.py accepting integer inputs - final position is rounded to 0 #52

Closed kylew239 closed 9 months ago

kylew239 commented 1 year ago

In arm.py, when calling set_single_joint_position(), the function would accept integers, causing the final position to be rounded down to 0. The joint would end up moving back to the home position, rather than the intended location.

This was tested on the PincherX-100 through the Python API. I tested integers from -3 to 3 and the resulting position was always 0. Using floats [-3.0, -2.0, -1.0 , ... , 3.0] worked as intended