osrf / drcsim

Repository for the DRC project.
16 stars 6 forks source link

Model for left arm is wrong in v4 (and has always been wrong) #492

Closed osrf-migration closed 9 years ago

osrf-migration commented 9 years ago

Original report (archived issue) by Twan Koolen (Bitbucket: tkoolen).

The original report had attachments: atlas_v4_simple_shapes_after_xacro.urdf, atlas_v4_simple_shapes_after_xacro_and_fixes.urdf, r_hand_rotated_pi_about_y.dae, rotate_180_y.mlx, atlas_v5_simple_shapes_after_xacro_and_fixes.urdf


While doing Vicon experiments with markers on the hands and torso, we (the MIT team) noticed that the kinematic model for the right arm was much more accurate than the one for the left arm.

In the current URDF, the kinematic model for the left arm is (mostly, I believe) mirrored from that of the right arm. However on the physical robot, the left arm and right arm are the same, except for the fact that some parts are mounted with a pi rotation offset.

We figured out the correct model for the left arm by simply copying a subset of the right arm properties to the left and subsequently inverting some of the joint axes and adding pi rotation offsets based on the way the physical links were mounted.

After making these changes, we found that the match between the model and the Vicon measurements was much better (magnitude of residuals similar to what was observed for the right arm).

A detailed summary of the changes we made to the URDF (in order):

Note that these modifications imply that the mesh tags for the left arm links now point to the right arm mesh files as we believe they should be since they're actually the same on the physical robot, just mounted differently.

See attachment for:

A caveat is that the urdf we use for simulation and control is actually further modified w.r.t. the one I attached, so we haven't run any simulations with this model. However, I'm pretty confident that these are the right changes since they were done by running the same Python code in both cases.

osrf-migration commented 9 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I think the v4 (already merged to drcsim_4.2) suffers from the hand mounting problem as well.

osrf-migration commented 9 years ago

Original comment by Mathew DeDonato (Bitbucket: mdedonato NA).


This was what I was trying to say. The hand axis (and a few others) are flipped 180 from the original urdf.

osrf-migration commented 9 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Sorry @mdedonato , I didn't get it until I saw a picture

osrf-migration commented 9 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Updated pull request #536, which should (?) fix the hands.

osrf-migration commented 9 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).