-
Notifications
You must be signed in to change notification settings - Fork 58
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 representation #39
Comments
As far as I remember, the 3D inertia in the URDF file are expressed in the center of gravity of the link, that in the URDF context is sometime referred to "inertia" frame (not to be confused to the "inertial" frame of classical mechanics). |
Thank you! That is what I somwhat expected froom the code, but I wasn't sure if I got it right. But does that mean I can represent it in the URDF file with respect to the CoM and kdl will take care of it or do I have to do something so that the inertias are represented right? (Some context: I use the chain afterwards for the ChainIdSolver_RNE to calculate the torques. The torques are off what gazebo is telling me they should be, so I thought maybe there is something wrong with the Inertias) |
Unless there is something wrong, the
Depending on the precise physics engine, physics parameters and how you are computing the torque in Gazebo (if it includes friction, etc etc) then there may be several factors that may give you mismatching result. I personally would suggest to start with a really simple model (a single pendulum) for which you can compute analyitical the dynamics, and then validate both KDL and Gazebo with your analytical solution. Once you know that everything is consistent for a simple example, then you can try to get consistent results from a more complex mechanism. |
Ok great
That sounds like a good plan. Thank you for your time! |
Since I believe this is a question (and not something to change), I'm going to go ahead and close this. Please feel free to reopen if you think there is a bug/problem in kdl_parser. |
Hi
I am using kdl_parser 1.13.1. I am creating a tree from a urdf file in order to afterwards convert it to a chain with the getChain() function of kdl (because I didn't find a direct way to create a chain from a urdf file). My question is are the Inertia in the URDF file supposed to be with respect to the centre of gravity of the respective segment? Or with respect to the tip of the segment? Or with respect to the joint? I could not really understand how the Inertias are treated in the kdl_parser.
The text was updated successfully, but these errors were encountered: