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

Add set_scale to Arena and MujocoObject #643

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

kevin-thankyou-lin
Copy link
Contributor

@kevin-thankyou-lin kevin-thankyou-lin commented Feb 25, 2025

What this does

Add ability to set_scale of bodies in arena, as well as set_scale for MujocoObjects; previously only MujocoXMLObject had these functions.

How to test

In _load_arena() add something like:

        table = mujoco_arena.worldbody.find("./body[@name='table']")
        mujoco_arena.set_scale([0.5, 0.5, 0.5], table)

scale=0.5
tmp0

scale=1.5
tmp0

@kevin-thankyou-lin kevin-thankyou-lin changed the title Add scale setting and saving in arena Add set_scale to Arena and MujocoObject Feb 27, 2025
@Abhiram824
Copy link
Member

Any reason why you can't just move the code to a parent class? Seems like its repeated across 3 classes.

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