huangwl18 / ReKep

ReKep: Spatio-Temporal Reasoning of Relational Keypoint Constraints for Robotic Manipulation
https://rekep-robot.github.io/
444 stars 44 forks source link

AssertionError: Rendering dt (0.03333333333333333) must be a multiple of physics dt (0.01) #12

Open SherylSandberg opened 1 week ago

SherylSandberg commented 1 week ago

I'm experiencing a crash when executing the following command:

python main.py --use_cached_query --visualize

The terminal output indicates the following warnings and an error traceback:

2024-10-09 11:40:21 [8,580ms] [Warning] [omni.particle.system.core.scripts.extension] 
            ATTENTION!: omni.particle.system.core is currently undergoing extensive (breaking) changes.
            Please be aware that systems built with the existing extension will need to be rebuilt in
            the USD Composer 2023.2 release.
[8.597s] [ext: omni.kit.browser.folder.core-1.9.12] startup
[8.605s] [ext: omni.particle.system.ui-105.1.10] startup
[8.708s] [ext: omni.graph.window.particle.system-105.1.18] startup
DYNAMICS_TODO:
  Make sure "omni.particle.system.core2" is a proper dependency.
  For now, it can just be set to autoload.
DYNAMICS_TODO:
  Make sure "omni.particle.system.core2" is a proper dependency.
  For now, it can just be set to autoload.
[8.742s] [ext: omni.particle.system.bundle-105.1.0] startup
Traceback (most recent call last):
  File "/home/ariel/ReKep/main.py", line 379, in <module>
    main = Main(scene_file, visualize=args.visualize)
  File "/home/ariel/ReKep/main.py", line 40, in __init__
    self.env = ReKepOGEnv(global_config['env'], scene_file, verbose=False)
  File "/home/ariel/ReKep/environment.py", line 69, in __init__
    self.og_env = og.Environment(dict(scene=self.config['scene'], robots=[self.config['robot']['robot_config']], env=self.config['og_sim']))
  File "/home/ariel/miniconda3/envs/omnigibson/lib/python3.10/site-packages/omnigibson/utils/python_utils.py", line 93, in wrapper
    func(*values.args, **values.kwargs)
  File "/home/ariel/miniconda3/envs/omnigibson/lib/python3.10/site-packages/omnigibson/envs/env_base.py", line 103, in __init__
    og.launch(
  File "/home/ariel/miniconda3/envs/omnigibson/lib/python3.10/site-packages/omnigibson/simulator.py", line 1780, in _launch_simulator
    Simulator(*args, **kwargs)
  File "/home/ariel/miniconda3/envs/omnigibson/lib/python3.10/site-packages/omnigibson/simulator.py", line 295, in __init__
    self._validate_dts(physics_dt, rendering_dt, sim_step_dt)
  File "/home/ariel/miniconda3/envs/omnigibson/lib/python3.10/site-packages/omnigibson/simulator.py", line 508, in _validate_dts
    assert math.isclose(
AssertionError: Rendering dt (0.03333333333333333) must be a multiple of physics dt (0.01)
2024-10-09 11:40:21 [8,742ms] [Warning] [carb] [Plugin: omni.sensors.tiled.plugin] Module /home/ariel/miniconda3/envs/omnigibson/lib/python3.10/site-packages/isaacsim/extscache/omni.sensors.tiled-0.0.4+106.0.0.lx64.r/bin/libomni.sensors.tiled.plugin.so remained loaded after unload request
2024-10-09 11:40:21 [8,747ms] [Warning] [carb] [Plugin: omni.spectree.delegate.plugin] Module /home/ariel/miniconda3/envs/omnigibson/lib/python3.10/site-packages/isaacsim/extscache/omni.usd_resolver/bin/libomni.spectree.delegate.plugin.so remained loaded after unload request
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-09 11:40:21 [8,750ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Core' for removal
2024-10-09 11:40:21 [8,753ms] [Warning] [omni.physx.plugin] Detach stage failed!
2024-10-09 11:40:21 [8,895ms] [Warning] [carb] Recursive unloadAllPlugins() detected!
sumo43 commented 6 days ago

in config.yaml, set num physics_frequency=30 or 60

SherylSandberg commented 5 days ago

in config.yaml, set num physics_frequency=30 or 60

Thank you, it works