tayalmanan28 / MuJoCo-Tutorial

Tutorial on how to get started with MuJoCo Simulation Platform. MuJoCo stands for Multi-Joint dynamics with Contact. It was acquired and made freely available by DeepMind in October 2021, and open sourced in May 2022. Feel free to contribute. Show your support by ✨this repository.
MIT License
135 stars 25 forks source link

I can not find the lqr controller. It is imported in iiwa.py. #29

Open mohammad200h opened 11 months ago

mohammad200h commented 11 months ago

Describe the bug I changed run.py to see how the iiwa example works.

` from mujoco_base import MuJoCoBase from examples.iiwa import Iiwa

def main(): xml_path = "./xml/iiwa/iiwa.xml" sim = Iiwa(xml_path) sim.reset() sim.simulate()

if name == "main": main()

`

I am getting error:

Traceback (most recent call last): File "run.py", line 2, in from examples.iiwa import Iiwa File "/home/mamad/Mujoco_ws/MuJoCo-Tutorial/examples/iiwa.py", line 7 from ../controllers.lqr import lqr ^ SyntaxError: invalid syntax

To Reproduce Steps to reproduce the behavior:

  1. Open run.py and copy code mentioned above.
  2. You should see the error above
wustHuangwenhui commented 9 months ago

I met the same error