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

Prototype #29

Closed
wants to merge 9 commits into from
Closed

Prototype #29

wants to merge 9 commits into from

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented May 17, 2022

🎉 New feature

Summary

This draft PR holds a prototype to convert from mjcf to sdformat and viceversa.

Test it

git clone https://github.com/gazebosim/gz-mujoco/ -b ahcorde/mjcf2sdformat
cd gz-mujoco
pip install -e sdformat_to_mjcf
pip install -e mjcf_to_sdformat
pip install -e sdformat_mjcf_utils
python -m mjcf_to_sdformat.mjcf2sdformat <path_to_dm_control>/dm_control/suite/pendulum.xml | tee output.sdf
python -m sdforma_to_mjcf.dformat2mjcf <gzim>/examples/worlds/<name>.sdf | tee output.xml

acrobat

mujoco_rolling_shapes

pendulum_exported_from_mujoco

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

azeey and others added 9 commits April 25, 2022 23:51
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: Alejandro Hernández <[email protected]>
Signed-off-by: Alejandro Hernández <[email protected]>
@ahcorde ahcorde requested review from azeey and scpeters May 17, 2022 19:38
@ahcorde ahcorde self-assigned this May 17, 2022
@ahcorde ahcorde closed this May 31, 2022
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

Successfully merging this pull request may close these issues.

2 participants