SintefManufacturing/python-urx

Robot Movement Error with Rotary Encoder

Opened this issue · 0 comments

I am trying to use this code to operate a UR3e robot from Universal Robots being operated using Rotary Encoders. I am not sure if anyone has tried this method yet.
But I am running into an Issue where I get Jitters from the robot wanting to move but I keep getting an error where the Robot is Stopped. The program I have seems subtracting the values for those jitters. I ran the code for the encoder program on its own to see if it was being caused by that but there is no issue there. I get an approximate reading of 360. Where when I include rob.movej([(rads), -1.57, 0, -1.57, 0, 0], 0.5, 0.5) the jitters of the robot occur causing an error. If someone can please help or inform me on certain things I might have to change in the code would be great because I am stuck at this point. Thank You in advance!
My Error:
Traceback (most recent call last):
File "/home/cgarc/Desktop/MoveRob.py", line 32, in encoderOne_Rotate
rob.movej([(rads), -1.57, 0, -1.57, 0, 0], 0.5, 0.5)
File "/usr/local/lib/python3.11/dist-packages/urx-0.8.1-py3.11.egg/urx/robot.py", line 280, in movej
File "/usr/local/lib/python3.11/dist-packages/urx-0.8.1-py3.11.egg/urx/robot.py", line 196, in wait_for_move
File "/usr/local/lib/python3.11/dist-packages/urx-0.8.1-py3.11.egg/urx/robot.py", line 203, in _wait_for_move
urx.robot.RobotException: Robot Stopped
Rads: -0.031415 Radians