Skip to content

Changes in config.xml file returning error #38

@ssvision

Description

@ssvision

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

Image

I wrote the appropriate functions by referring here. Attaching a screenshot also for your reference.

Image

I added the respective API's in armctl>universal_robots>universal_robots.py

Image

Lastly, I made changes in the armctl>universal_robots>protocols>config.xml file

Image

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions