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

inertia matrix changes with different base rotations #25

Open
GoogleCodeExporter opened this issue Jul 31, 2015 · 1 comment
Open

inertia matrix changes with different base rotations #25

GoogleCodeExporter opened this issue Jul 31, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. create robot model (for example stanford manipulator or baxter robot model 
from 
https://groups.google.com/a/rethinkrobotics.com/forum/#!mydiscussions/brr-users/
5X1-6w-Ja1I)
mdl_stanford 
2. calculate inertia matrix without base transformation
stanf.base = eye(4);
M1 = stanf.inertia(qz)

3. calculate inertia matrix with abitrary different base transformation 
stanf.base = trotz(pi/2)*transl([1;2;3]);
M2 = stanf.inertia(qz)

What is the expected output?
Expected: The inertia matrix should stay the same
What do you see instead?
Output: Inertia matrix changes with base transformation matrix
M1-M2

What version of the product are you using? On what operating system?
Robotics Toolbox 9.9; Linux 64 bit; Should not matter here

Please provide any additional information below.

In rne_dh.m, Line 122 
(https://code.google.com/p/matlab-toolboxes-robotics-vision/source/browse/matlab
/robot/trunk/@SerialLink/rne_dh.m?r=751#112), the base transformation is added 
to the vector from the first joint frame to the second joint frame (pstar). By 
doing this, the lever arm is not calculated for the first joint but for the 
point [0;0;0]. By removing this line, the problem seems solved.

Please contact me, if this is not a bug and I missed something
Regards,

Moritz Schappler,
schappler@irt.uni-hannover.de
Research Assistant at the Institute for Automatic Control, Leibniz Universität 
Hannover, Germany

Original issue reported on code.google.com by baxter....@gmail.com on 28 Jul 2014 at 1:56

@GoogleCodeExporter
Copy link
Author

I inserted a link to the wrong revision. Here is the link to the current 
revision
https://code.google.com/p/matlab-toolboxes-robotics-vision/source/browse/matlab/
robot/trunk/%40SerialLink/rne_dh.m#120

Original comment by baxter....@gmail.com on 29 Jul 2014 at 6:12

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

No branches or pull requests

1 participant