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

How to Change Humanoid Appearance or Config Using env.reset()? #2116

Open
wsakobe opened this issue Dec 9, 2024 · 1 comment
Open

How to Change Humanoid Appearance or Config Using env.reset()? #2116

wsakobe opened this issue Dec 9, 2024 · 1 comment

Comments

@wsakobe
Copy link

wsakobe commented Dec 9, 2024

Hi! I am currently using Habitat 3.0 to establish a social navigation task that involves multiple humanoid agents in the environment. I have generated several episodes, where each episode specifies the corresponding URDF and motion data files for each humanoid agent based on their IDs.

My goal is to utilize env.reset() to automatically switch to the next episode, updating the configurations for each humanoid agent (e.g., appearance and motion files) dynamically, similar to how other tasks operate. To achieve this, I attempted to update these configurations using habitat.get_config() and invoked sim.reconfigure() within the simulator to apply the changes. However, this approach did not succeed, as the humanoid agents’ appearances remained unchanged across episodes.

I suspect that the issue lies in my implementation of the sim.reconfigure() function, which is largely based on the settings from RearrangeSim.

Could you kindly advise on how to dynamically update these humanoid configurations during episode transitions? I would greatly appreciate any guidance or suggestions you can provide.

Thank you for your time and assistance.

@0mdc
Copy link
Contributor

0mdc commented Dec 11, 2024

Hi @wsakobe!

You may want to check out this early implementation: https://github.com/facebookresearch/habitat-lab/blob/9783e3d744175adc6bc93a58e8c182d2b83948a9/habitat-hitl/habitat_hitl/environment/avatar_switcher.py
The code is not yet factored in, but it should do the trick for handling your use case.

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