gazebosim / gz-mujoco

25 stars 4 forks source link

Add name prefixes to geometries and freejoints #32

Closed azeey closed 2 years ago

azeey commented 2 years ago

🎉 Bug Fix

Closes #8

Summary

It is possible for SDFormat files to have collisions or visuals in different links have the same name, but this is not allowed in MJCF. To prevent this name collision, we prefix the names of geoms with the names of their parent bodies.

This also changes how freejoints are named since it is possible to have multiple freejoints in the world.

The delimiter _ is chosen as opposed to / or :: because these two have special meaning in MJCF and SDFormat respectively.

Checklist

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.