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

models file not found #11

Closed
DedSecer opened this issue Jan 18, 2025 · 3 comments
Closed

models file not found #11

DedSecer opened this issue Jan 18, 2025 · 3 comments

Comments

@DedSecer
Copy link

I follow the install guide and run python3 discoverse/envs/airbot_play_base.py,
got the error:

mjcf found: /home/dedsecer/s2r/DISCOVERSE/models/mjcf/airbot_play_floor.xml
Traceback (most recent call last):
  File "/home/dedsecer/s2r/DISCOVERSE/discoverse/envs/airbot_play_base.py", line 103, in <module>
    exec_node = AirbotPlayBase(cfg)
                ^^^^^^^^^^^^^^^^^^^
  File "/home/dedsecer/s2r/DISCOVERSE/discoverse/envs/airbot_play_base.py", line 39, in __init__
    super().__init__(config)
  File "/home/dedsecer/s2r/DISCOVERSE/discoverse/envs/simulator.py", line 104, in __init__
    self.load_mjcf()
  File "/home/dedsecer/s2r/DISCOVERSE/discoverse/envs/simulator.py", line 149, in load_mjcf
    self.mj_model = mujoco.MjModel.from_xml_path(self.mjcf_file)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Error: Error opening file '/home/dedsecer/s2r/DISCOVERSE/models/mjcf/airbot_play/airbot_play/arm_base_0.obj': No such file or directory
Exception ignored in: <function SimulatorBase.__del__ at 0x7fc4c39c3a60>
Traceback (most recent call last):
  File "/home/dedsecer/s2r/DISCOVERSE/discoverse/envs/simulator.py", line 184, in __del__
    self.imshow_process.join()
    ^^^^^^^^^^^^^^^^^^^
AttributeError: 'AirbotPlayBase' object has no attribute 'imshow_process'
@DedSecer
Copy link
Author

I may need to download mjcf file from netdisk, but I couldn't find mjcf file from the netdisk link.

@TATP-233
Copy link
Owner

If the models folder looks like this:

models
├── meshes
│   ├── airbot_play
│   │   ├── arm_base_0.obj
│   │   ├── arm_base_1.obj
│   │   ├── left.obj
│   │   ├── link1.obj
│   │   ├── link2_0.obj
│   │   ├── link2_1.obj
│   │   ├── link3_0.obj
│   │   ├── link3_1.obj
│   │   ├── link4.obj
│   │   ├── link5_0.obj
│   │   ├── link5_1.obj
│   │   ├── link6.obj
│   │   └── right.obj
│   ├── mmk2
│   │   ├── head_black.obj
......

@DedSecer
Copy link
Author

Ok, Finally what I miss is the files in meshes folder.

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

2 participants