Skip to content

Conversation

@mengqlTHU
Copy link

What this does

Inside mujoco composite element, the geom element does not have "name" attribute. Fixed this bug by adding judgement in objects.py and mjcf_utils.py. Also, I added "extension" and "compiler" to MujocoXML class to support mujoco plugin and change default compiler attribute

Examples:

Title Label
Make robosuite support composite object (🐛 Bug)

How it was tested

If anyone would like to test this pull request, take a loot at https://github.com/mengqlTHU/robosuite and run tests/test_cables/test_cables.py
Screenshot from 2025-01-14 15-21-51

…" attribute. Fix this bug by add judgement in objects.py and mjcf_utils.py. Add "extension" and "compiler" to MujocoXML class to support mujoco plugin and change default compiler attribute
element.set("rgba", array_to_string(OBJECT_COLLISION_COLOR))
if element.get("material") is not None:
del element.attrib["material"]
if parent.tag!="composite":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mengqlTHU! Could you please run pre-commit run --all-files to format?

if parent is not None and parent.tag == "actuator":
return "actuators"
elif parent is not None and parent.tag == "composite":
return "composite_geoms"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and could you please add "composite_geoms" to the doc string above?

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