isaac-sim / IsaacGymEnvs

Isaac Gym Reinforcement Learning Environments
Other
1.79k stars 394 forks source link

[Error] [carb.gym.plugin] *** Failed to load './/../assets/glb/ingenuity/chassis.glb'! #54

Open Toni-SM opened 2 years ago

Toni-SM commented 2 years ago

Hi

Importing the Ingenuity task/environment outside the IsaacGymEnvs/isaacgymenvs folder produces the following error:

(env_isaacgym4) toni@HP-ZBook-Studio-G8:~/Documents/examples/isaacgym$ python
Python 3.8.10 (default, Mar 15 2022, 12:22:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import isaacgym
Importing module 'gym_38' (/home/toni/isaacgym/isaacgym4/python/isaacgym/_bindings/linux-x86_64/gym_38.so)
Setting GYM_USD_PLUG_INFO_PATH to /home/toni/isaacgym/isaacgym4/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
>>> import isaacgymenvs
>>> env = isaacgymenvs.make(seed=42, 
...                         task="Ingenuity", 
...                         num_envs=4096, 
...                         sim_device="cuda:0",
...                         rl_device="cuda:0",
...                         graphics_device_id=0,
...                         headless=False)
PyTorch version 1.12.0+cu116
Device count 1
/home/toni/isaacgym/isaacgym4/python/isaacgym/_bindings/src/gymtorch
Using /home/toni/.cache/torch_extensions/py38_cu116 as PyTorch extensions root...
Emitting ninja build file /home/toni/.cache/torch_extensions/py38_cu116/gymtorch/build.ninja...
Building extension module gymtorch...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
Loading extension module gymtorch...
/home/toni/isaacgym/isaacgym4/python/isaacgym/torch_utils.py:135: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  def get_axis_params(value, axis_idx, x_value=0., dtype=np.float, n_dims=3):
2022-07-11 17:25:28,797 - INFO - logger - logger initialized
<unknown>:3: DeprecationWarning: invalid escape sequence \*
Error: FBX library failed to load - importing FBX data will not succeed. Message: No module named 'fbx'
FBX tools must be installed from https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_scripting_with_python_fbx_installing_python_fbx_html
/home/toni/isaacgym/isaacgym4/IsaacGymEnvs/isaacgymenvs/__init__.py:35: UserWarning: 
The version_base parameter is not specified.
Please specify a compatability version level, or None.
Will assume defaults for version 1.1
  with initialize(config_path="./cfg"):
/home/toni/Documents/envs/env_isaacgym4/lib/python3.8/site-packages/hydra/_internal/defaults_list.py:251: UserWarning: In 'config': Defaults list is missing `_self_`. See https://hydra.cc/docs/upgrades/1.0_to_1.1/default_composition_order for more information
  warnings.warn(msg, UserWarning)
/home/toni/Documents/envs/env_isaacgym4/lib/python3.8/site-packages/hydra/_internal/defaults_list.py:415: UserWarning: In config: Invalid overriding of hydra/job_logging:
Default list overrides requires 'override' keyword.
See https://hydra.cc/docs/next/upgrades/1.0_to_1.1/defaults_list_override for more information.

  deprecation_warning(msg)
/home/toni/Documents/envs/env_isaacgym4/lib/python3.8/site-packages/gym/spaces/box.py:112: UserWarning: WARN: Box bound precision lowered by casting to float32
  logger.warn(f"Box bound precision lowered by casting to {self.dtype}")
[Warning] [carb.gym.plugin] useGpu is set, forcing single scene (0 subscenes)
Not connected to PVD
+++ Using GPU PhysX
Physics Engine: PhysX
Physics Device: cuda:0
GPU Pipeline: enabled
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

[Error] [carb.gym.plugin] *** Failed to load './/../assets/glb/ingenuity/chassis.glb'!

Segmentation fault (core dumped)

Problem: The path to the assets is relative only to the isaacgymenvs python package.

Steps to reproduce:

  1. Open python (interactive terminal) in any folder except IsaacGymEnvs/isaacgymenvs
  2. Execute the following code
    import isaacgym
    import isaacgymenvs
    env = isaacgymenvs.make(seed=42, 
                        task="Ingenuity", 
                        num_envs=4096, 
                        sim_device="cuda:0",
                        rl_device="cuda:0",
                        graphics_device_id=0,
                        headless=False)
dulucas commented 1 year ago

Hi, have you fixed this error? I met similar errors as yours.

Toni-SM commented 1 year ago

Hi @dulucas

Nop...

Each time I want to play with this task, I need to copy the main script to the IsaacGymEnvs/isaacgymenvs folder and run it from there