Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robot Movement Error with Rotary Encoder #120

Open
Br0k3-C0de opened this issue Feb 27, 2024 · 0 comments
Open

Robot Movement Error with Rotary Encoder #120

Br0k3-C0de opened this issue Feb 27, 2024 · 0 comments

Comments

@Br0k3-C0de
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant