Skip to content

Issue with Non-Stationary Objects in Customized Scene #1021

Answered by hang-yin
ZhengtongXu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ZhengtongXu , that's a great question! This is a super common issue we would run into.

One way to deal with this is once you load the scene, you can step a number of times to let the object, say the bowl, settle. You can try something like this:

env = og.Environment(configs=cfg)

# Settle custom objects
for _ in range(100):
    og.sim.step()

The number of steps required here is arbitrary. But in general, I think for most objects, 100 steps would be good enough. I'd say even 20 steps can mostly get the job done.

You might notice that after these steps, the joint state of the robot would also change a little due to external forces such as gravity. You can call robot.reset() to bring it…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ZhengtongXu
Comment options

Answer selected by hang-yin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants