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

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

Open
mohammad200h opened this issue Oct 14, 2023 · 1 comment
Open

Comments

@mohammad200h
Copy link

mohammad200h commented Oct 14, 2023

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
Copy link

I met the same error

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