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

Best way to set Gravity when not mounted vertically #64

Open
zhianguo opened this issue Dec 14, 2022 · 2 comments
Open

Best way to set Gravity when not mounted vertically #64

zhianguo opened this issue Dec 14, 2022 · 2 comments

Comments

@zhianguo
Copy link

I see that in the rl source codes gravity is set to world with assumed gravity direction along z axis. What if we have a side mounted robot and the root frame is not z vertical?
What is the recommended way to set gravity using the dynamics interface.
Thanks

@zhianguo
Copy link
Author

I was referring to the code in UrdfFactory where the world gravity is set to vertical. I guess if side mounting we have to set again with the correct direction?

@rickertm
Copy link
Member

To the best of my knowledge, the URDF file format does not have an option to specify the gravitational vector. The native rl::mdl format allows you to modify this via <gravity></gravity>.

For a horizontally mounted robot I would however recommend to model this via a static transform that defines the mounting position including rotation. URDF has a joint type called fixed for this and rl::mdl uses <fixed></fixed>.

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