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

Update Denavit-Hartenberg parameters of left and right iCubArm v2.x #789

Closed
wants to merge 1 commit into from

Conversation

mfussi66
Copy link
Member

Copying it from #758 since I accidentally closed that one.


The aim of this PR is to align the Denavit-Hartenberg parameters of left and right iCubArm v2.x with the values found in the CAD models.

Motivation

While comparing the iKin forward kinematics with the iDynTree one extracted from the .urdf model, a significant misalignment was found in the left and right arm's end effector's position.

The comparison was made with a task-specific application I developed, which instantiates an arm with iKin and iDynTree (which loads the .urdf file), and given a specific joints configuration, it prints out the forward kinematics transformation matrix. See the example below for the left arm.

iKin
-1.0000 -0.0087 0 -0.2297
0 0 -1 -0.08414
0.0087 -1.0000 0 0.009799
0 0 0 1
iDynTree
-1.0000 -0.0087 0 -0.2273
0 0 -1 -0.08434
0.0087 -1.0000 0 0.001105
0 0 0 1

The difference of the translational component is:

e_x = 0.00245053871179957
e_y = -0.000205222132508828
e_z = -0.00869452121972735

The misalignment was validated in MATLAB with Peter Corke's Robot toolbox
123049020-5b7d6d80-d3ff-11eb-8431-52aaa7fa4196

and with other joints configurations:

cfg joint 1 joint 2 joint 3 joint4 joint 5 joint 6 joint 7 joint 8 joint 9 joint 10
qdes5 25 0 -9.6 9.45 160.80 79.56 19.005 0 0 0.6
qdes6 25 10 -9.6 9.45 160.80 79.56 19.005 0 0 0.6
qdes7 25 -15 -9.6 9.45 160.80 79.56 19.005 0 0 0.6
qdes8 -25 30 -9.6 9.45 160.80 79.56 19.005 0 0 0.6

123124806-48db5680-d448-11eb-9c78-205d53f8b80c

Equivalent results were found for the right arm v2.x.

Contribution

The PR's contribution changes the kinematic parameters of iCubArm v2.x left and right, specifically:

  • base matrix H0
  • Denavit-Hartenberg parameters
  • end effector matrix Hn

If-else conditions are added to keep the parameters of v1.x and v3.0 unaltered.

Result

The contribution was validated with the red ball test:

demoredball_crop.mp4

@mfussi66 mfussi66 changed the title Update Denavit-Hartenberg parameters of iCubArm v2.x Update Denavit-Hartenberg parameters of left and right iCubArm v2.x Apr 11, 2022
@pattacini pattacini closed this Aug 5, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants