Skip to content

Can we dynamically change the hfield_size at runtime #2569

Closed Answered by Suke0811
Suke0811 asked this question in Asking for Help
Discussion options

You must be logged in to vote

I came to a solution to this, and if you have the same issues, here is how you can deal with them.


hfield_size: (radius_x, radius_y, elevation_z, base_z) is not batchable, meaning all the parallel environments will have the same values.
However, the hfield_data, representing each node height normalized in [0, 1], is batchable. Hence, you can set the elevation_z to be the maximum height you want in the randomization. If you want to reduce the roughness i.e. 10% of elevation_z, then your hfield_data should be in the range of [0, 0.1].

This method changes the hfield contact, but the visualization will use the initial hfield_data values.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Suke0811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant