StanfordVL / iGibson

A Simulation Environment to train Robots in Large Realistic Interactive Scenes
http://svl.stanford.edu/igibson
MIT License
645 stars 158 forks source link

Problem with vr_sr replay #367

Open KarinZamrazilova opened 1 month ago

KarinZamrazilova commented 1 month ago

Hello! We have encountered another issue. When trying to run vr_sr.py for replaying it outputs the picture but no actions happen in it. After some debugging we have figured out that the issue occurs while executing s.step(). We have managed to resolve it by using only functions called by step which were not causing the issue. Now we got the video replaying but for some reason approximately only half of the video seems to be executed correctly. After that avatar's hands start flying around and doing something what seems to be random. We have not essentially changed the record part of the code.

KarinZamrazilova commented 1 month ago

That was the solution we came up with for the problem with s.step() `while log_reader.get_data_left_to_read():

somehow after step nothing else gets executed but without it we don't get the image

    # s.step()

    for _ in range(3):
        p.stepSimulation()
    s._non_physics_step()
    # Sync PyBullet bodies to renderer and then render to Viewer
    s.sync()        
    # vr_system_dur = s.step_vr_system()
    s.fix_eye_tracking_value()
    s.perform_vr_start_pos_move()
    s.vr_system_update()
    `