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

I would like to ask if it is possible to obtain the model parameters of the robot in the simulation environment, such as M, C, G #84

Open
JiangShangJiu opened this issue Dec 10, 2024 · 3 comments

Comments

@JiangShangJiu
Copy link

I would like to ask if it is possible to obtain the model parameters of the robot in the simulation environment, such as M, C, G

@AndreasKuhner
Copy link
Member

Hi @JiangShangJiu ,
not directly while using e.g. gazebo (but maybe gazebo provides them...). Then again, you could look into https://github.com/stack-of-tasks/pinocchio. You have access to our URDF which Pinocchio uses for computing all kinds of dynamic parameters (like M, C, G) and we also use it nowadays in libfranka for computing those values: https://github.com/frankaemika/libfranka/blob/main/src/robot_model.cpp.

Cheers,
Andreas

@JiangShangJiu
Copy link
Author

@AndreasKuhner Thank you so much for your quick answer, I used franka_ros simulation in the ROS1 notetic version, I remember that I could get the dynamics parameters of the robot, as well as the Jacobian matrix. However, when I use the ROS2 Humble version to use franka_ros2 to emulate in the ignition_gazebo, I don't find these interfaces, is it no longer available?

@AndreasKuhner
Copy link
Member

This is not yet available - and probably has a low enough priority to never come directly 😅

Main reason is that we thought using Pinocchio is nowadays so easy, that we don't need to expose yet another interface which is exactly doing this. If you are using our franka_ros2/libfranka, you already have pinocchio on your system. So checking out how we do it in libfranka gives you already a blueprint on how to do it - copy/paste 4tw 😄

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

No branches or pull requests

2 participants