-
Notifications
You must be signed in to change notification settings - Fork 231
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
Forward Kinematics of UR5e #75
Comments
Hi @kevinzakka, Thanks for the response. I have removed the same but the issue persists. I will explain in detail. Following are the results with "quat" removed from the base. My joint angles are [3pi/2, -pi/2, pi/2, 3pi/2, 3*pi/2, 0] as shown below
The code I used for estimating transformation matrix in MuJoCo is given as
I understand that the transformation matrix is different for Standard D-H and Modified D-H Parameters. U-R excel file follows Standard D-H parameters. There is an online literature analyzing UR5 with modified D-H parameters. If we take modified D-H parameters, still the transformation matrices are different from MuJoCo model. I believe for D-H parameters, the joint rotation axis is always 'Z' but in the xml file the default joint axis is 'Y'. What may be the reason ? Since I am relatively new to this, I believe I am wrong somewhere but couldn't figure it out. Any help will be much appreciated. Regards, |
I do not have a solution, but a similar problem in my issue #85. |
Hi @karthyyy, could you let me know if the code example I posted in #85 is helpful? |
Hi @kevinzakka, I had tried Standard and Modified D-H parameters for UR5e but was not successful. So I manually extracted the transformation matrices of each joints and found the cumulative matrix. The method now holds good for FK, IK and even Jacobian computation and served my purpose. I will try the code mentioned in the other thread for UR5e and get back, as it gives a standard method which can be extended to other manipulators. Regards |
Going to assume this has been resolved. Feel free to re-open if you encounter further issues. |
@kevinzakka sorry to reopen this but I was wondering why this rotation is included in the base body? The base frame of the mujoco model is now not the actual base frame as used by the UR controller I think. (Implying that for a joint configuration, the pose obtained from the controlbox differs from the one obtained in mujoco). The original URDF file states that a rotation around the z axis over -pi was needed to convert from the ROS frame convention (the I think it would be easier if the base frame of the xml is consistent with the base frame of the robot controlbox? This would be solved by setting the quat orientation of the Following code snippet confirms this:
ur_analytic_ik has been tested to ensure it's base frame matches the controlbox. |
Hey @tlpss, agreed we should change it just to consistent. |
@kevinzakka, I can make a PR if you want |
Go for it! |
I changed the orientations here. Do you want to add a site/body that corresponds to the frame of the controlbox as well? because now the |
Hi,
I am simulating UR5e model from the repo. I could implement the Forward and Inverse Kinematics of the manipulator correctly as per the MuJoCo model and its reference frames. However, when trying to correlate the transformation matrix from the MuJoCo (formulated from the xmat and xpos values), with that generated from the D-H parameters as given in the following link, I am not getting identical results. The translation values are same but with the axis changed, whereas the rotation matrix cannot be correlated.
https://www.universal-robots.com/articles/ur/application-installation/dh-parameters-for-calculations-of-kinematics-and-dynamics/
It was found that the world frame and base frame are having a rotation. So, I included correction for the same but still I couldn't get identical transformation matrix from MuJoCo and that from the excel sheet in the UR site. (https://s3-eu-west-1.amazonaws.com/ur-support-site/45257/DH-Transformation.xlsx).
Can someone help me with the same ?
Regards
Karthik
The text was updated successfully, but these errors were encountered: