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

What version of mujoco base do you use? #31

Open
husnoo opened this issue Jan 17, 2024 · 0 comments
Open

What version of mujoco base do you use? #31

husnoo opened this issue Jan 17, 2024 · 0 comments

Comments

@husnoo
Copy link

husnoo commented Jan 17, 2024

git clone https://github.com/BolunDai0216/PyMuJoCoBase.git
cd PyMuJoCoBase
python3 -m pip install .

and edited gymnast.py to use
from PyMuJoCoBase.mujoco_base import MuJoCoBase

error:

Traceback (most recent call last):
  File "/home/nawal/data/software-exercises/mujoco/MuJoCo-Tutorial/examples/gymnast.py", line 100, in <module>
    main()
  File "/home/nawal/data/software-exercises/mujoco/MuJoCo-Tutorial/examples/gymnast.py", line 96, in main
    sim.simulate()
  File "/home/nawal/data/software-exercises/mujoco/MuJoCo-Tutorial/examples/gymnast.py", line 65, in simulate
    mj.mj_step(self.model, self.data)
  File "/home/nawal/data/software-exercises/mujoco/MuJoCo-Tutorial/examples/gymnast.py", line 37, in controller
    J = data.efc_J[:3, :3]
        ~~~~~~~~~~^^^^^^^^
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

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

1 participant