-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi @MGross21 , I wanted to add a couple more API to retrieve joint torques and TCP forces. I wrote the appropriate code by referring to the ur rtde library that you had mentioned. I made changes in three places as required.
The first one in armctl>universal_robots>protocols>rtde.py
I wrote the appropriate functions by referring here. Attaching a screenshot also for your reference.
I added the respective API's in armctl>universal_robots>universal_robots.py
Lastly, I made changes in the armctl>universal_robots>protocols>config.xml file
On running the below code, I am running into error.
with UR5e(robot_ip) as robot:
# robot.JOINT_RANGES = [(-2 * PI, 2 * PI) for _ in range(robot.DOF)]
robot.get_joint_positions()
robot.get_cartesian_position()
robot.get_joint_torques()
robot.get_tcp_forces()I tried removing get_joint_torques() and get_tcp_forces() and only check for joint position and cartesian pose. I was still getting the same error. Upon some trial and error and reverting back to my previous commits, I found that if the config.xml was changed, it threw the same errors.
Is there anything I am missing in my workflow? Requesting you to look into this @MGross21