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

_default_attitude issue #67

Open
wyqsnddd opened this issue Jan 21, 2025 · 2 comments
Open

_default_attitude issue #67

wyqsnddd opened this issue Jan 21, 2025 · 2 comments

Comments

@wyqsnddd
Copy link

Dear Developers,

In the mc_robot package, the following entry would lead to a wierd orientation (running the Posture task):

 _default_attitude = {{1., 0., 0., 0., 0., 0., 0.58}}; // quaternion, then translation

Image

By changing it to _default_attitude = {{0.58, 0., 0., 1., 0., 0., 0}}; // translation, then quaternion, the orientation is fine by running the Posture task.

This is different from the provided example, i.e., JVRC1: jvrc1.cpp and Go1: go1.cpp. In both cases, the default_attitude starts with quaternion.

Best,

Yuquan

@rohanpsingh
Copy link
Owner

Hi, can you point me to the exact line of code where you see this discrepancy?

@wyqsnddd
Copy link
Author

That line belongs to a mc_robot package associated with mc_rtc robot module.

Basically, we realized that a root joint (strict name spelling) of type free is mandatory in the xml. Otherwise, it seems that mc_mujoco can not read the floating base pose.

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