-
Notifications
You must be signed in to change notification settings - Fork 883
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
Runtime HField geometry change not reflected visually #812
Comments
Can you please check if, on your system, the visualisation of the random heightfield in the Control Suite Quadruped (video) works correctly? |
@yuvaltassa Just to clarify, I specify initial heightfield data in To accomplish this I am generating new heightfield data in The use case is creating environments consisting of (very large/infinite) procedurally-generated terrain without requiring massive heightmaps to be loaded into the simulator. I'd like to maintain a grid of loaded "chunks" surrounding a robot, and when the robot moves these chunks should unload/reload so that they are always centered on the robot. To do this, when the robot crosses a chunk boundary I'm moving all of the furthest-away chunks to the positions that now need to be loaded, and filling them with the correct data (except, of course, that the visual model does not seem to be updating). |
Are there any updates on this? I'm facing a similar problem |
Sorry for the delay. To be honest it's not entirely clear how this is possible. There is nothing special about the Python run loop. MuJoCo doesn't know or care if you are initialising your env or in the middle of the episode. Could one of you please post a MWE where updating the hfield works at init but not mid-episode? |
This is an example where I initialize the heightmap outside of the xml but before starting the viewer, it works fine:
If you move the line " model.hfield_data = new_hfield " into the while loop, it stops working. |
I'd like to change the geometry of a HField at runtime. I am using the following code:
Unfortunately, while the physics model seems to change as expected, the visualization is not updating to match. I'm running this code on Linux with
MuJoCo v2.3.2
. I'm usingdm_control v1.0.9
and the above code is called by theafter_step()
callback.The text was updated successfully, but these errors were encountered: