Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stability Test question #10

Open
zihuuuu opened this issue Jul 6, 2023 · 2 comments
Open

Stability Test question #10

zihuuuu opened this issue Jul 6, 2023 · 2 comments

Comments

@zihuuuu
Copy link

zihuuuu commented Jul 6, 2023

when I run python run_grasp_test.py --robot_name=shadowhand --dataset=SqrtUnseenShadowhand-SharpClamp_A3 --domain=ood --base_name=align_dist --comment=example,The following error will be reported, how to solve these problems.
Failed to load 'envs/assets/franka_description/robots/movable_dexterous_hand_new.urdf'[Error] [carb.gym.plugin] Failed to parse URDF file 'franka_description/robots/movable_dexterous_hand_new.urdf'
[Error] [carb.gym.plugin] Failed to import URDF file 'franka_description/robots/movable_dexterous_hand_new.urdf'
[Error] [carb.gym.plugin] *** Failed to load 'franka_description/robots/movable_dexterous_hand_new.urdf' from 'envs/assets'
Enumerating envs:: 0%| | 0/64 [00:00<?, ?it/s]
Traceback (most recent call last):
File "run_grasp_test.py", line 177, in
isaac_model = IsaacGraspTestForce(cfg, sim_params, gymapi.SIM_PHYSX, "cuda", 0, headless=sim_headless,
File "/home/czl/GenDexGrasp2/envs/tasks/grasp_test_force_shadowhand.py", line 95, in init
super().init(cfg=self.cfg, enable_camera_sensors=cfg["env"]["enableCameraSensors"],
File "/home/czl/GenDexGrasp2/envs/tasks/base_task.py", line 81, in init
self.create_sim()
File "/home/czl/GenDexGrasp2/envs/tasks/grasp_test_force_shadowhand.py", line 338, in create_sim
self._place_agents(
File "/home/czl/GenDexGrasp2/envs/tasks/grasp_test_force_shadowhand.py", line 636, in _place_agents
self._load_agent(env_ptr, env_id)
File "/home/czl/GenDexGrasp2/envs/tasks/grasp_test_force_shadowhand.py", line 397, in _load_agent
dexterous_dof_state["pos"] = default_dof_pos
ValueError: could not broadcast input array from shape (30,) into shape (0,)

@jmchumbo
Copy link

jmchumbo commented Jul 7, 2023

Greetings!

I have encountered the same issue you are currently facing.

To resolve the problem, modify line 346 in the file grasp_test_force_shadowhand.py as follows:

Change:

dexterous_asset_file = "franka_description/robots/movable_dexterous_hand_new.urdf"

To:

dexterous_asset_file = "movable_hand_urdf/RH8DL/robots/movable_shadowhand.urdf"

Hope it works!

@Xiaoyao-Li
Copy link
Contributor

Thanks the reply by @jmchumbo .

It seems like you fail to load the urdf file, please make sure the file is correct and be placed at the correct path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants