Error in Executing Target Following
dhruvkm2402 opened this issue · 0 comments
Hello,
There were two errors in executing target following task.
- In the carterv2.py file this was missing "from omni.isaac.core.utils.stage import add_reference_to_stage"
2024-06-04 22:50:46 [56,880ms] [Error] [omni.kit.app._impl] [py stderr]: Error executing job with overrides: ['task=TargetFollowing', 'headless=False']
2024-06-04 22:50:46 [57,059ms] [Error] [omni.kit.app._impl] [py stderr]: Traceback (most recent call last):
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: File "/home/dhruvm/Omni_New/OmniIsaacGymEnvs/omniisaacgymenvs/scripts/rlgames_train.py", line 150, in parse_hydra_configs
task = initialize_task(cfg_dict, env)
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: File "/home/dhruvm/Omni_New/OmniIsaacGymEnvs/omniisaacgymenvs/utils/task_util.py", line 107, in initialize_task
env.set_task(
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: File "/home/dhruvm/Omni_New/OmniIsaacGymEnvs/omniisaacgymenvs/envs/vec_env_rlgames.py", line 47, in set_task
super().set_task(task, backend, sim_params, init_sim, rendering_dt)
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: File "/home/dhruvm/.local/share/ov/pkg/isaac-sim-4.0.0/exts/omni.isaac.gym/omni/isaac/gym/vec_env/vec_env_base.py", line 127, in set_task
self._world.reset()
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: File "/home/dhruvm/.local/share/ov/pkg/isaac-sim-4.0.0/exts/omni.isaac.core/omni/isaac/core/world/world.py", line 391, in reset
self._scene._finalize(self.physics_sim_view)
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: File "/home/dhruvm/.local/share/ov/pkg/isaac-sim-4.0.0/exts/omni.isaac.core/omni/isaac/core/scenes/scene.py", line 375, in _finalize
rigid_prim_view.initialize(physics_sim_view)
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: File "/home/dhruvm/.local/share/ov/pkg/isaac-sim-4.0.0/exts/omni.isaac.core/omni/isaac/core/prims/rigid_prim_view.py", line 255, in initialize
angular_velocities = self.get_angular_velocities()
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: File "/home/dhruvm/.local/share/ov/pkg/isaac-sim-4.0.0/exts/omni.isaac.core/omni/isaac/core/prims/rigid_prim_view.py", line 816, in get_angular_velocities
return angular_velocities[indices, 3:6]
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]: RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
2024-06-04 22:50:46 [57,060ms] [Error] [omni.kit.app._impl] [py stderr]:
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.