-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update ur5 kinematics #5
Conversation
667679f
to
2093caf
Compare
2093caf
to
08cb5ae
Compare
src/ur5_simulation/ur5_kinematics.py
Outdated
return self._teta4 | ||
|
||
def calculate_inverse_kinematics(self, tf, shoulder='left', wrist='up', elbow='up', short=True): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do I know where is shoulder, wrist and elbow in the moment of inverse kinematics? They always will be in this position left, up and up respectively?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are geometric factors that depend on how the robot was modeled. For the way the DH matrix was set, the sequence will always be left, up, up. If the user inputs shoulder='right', for example, the links length and orientation need to be reassessed. Same is valid for elbow and wrist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have studied the Spong Book to understand better this "problem" and the position of components doesn't depend on how the arm was modeled but how is the configuration to the arm end-effector reaches some pose. If you have Spong book first edition, see figures 3.17, 3.18, and 3.20. But anyway, I'm not sure that all positions chosen to validate the kinematics methods are with the arm configuration shoulder = left
and elbow = up
. But I think wrist
varies between up and down. Please, see the pictures in our document to see the end effector poses which we are using.
Changed the name of some functions and add some methods to calculate the inverse kinematics of the UR5, given a homogeneous transformation matrix (tf)