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

ValueError: XML Error: Schema violation: unrecognized attribute: 'sensornoise' #33

Open
LutzFassl opened this issue Dec 25, 2024 · 1 comment

Comments

@LutzFassl
Copy link

Describe the bug
I wanted to give this a try and installed as suggested. However immediately get this error when running.
Suggestion: use versions in your requirements.txt file to make sure your tutorial still works after breaking changes of dependencies

To Reproduce
Steps to reproduce the behavior:

  1. Install in a new conda environment on Win10 as you described
  2. python run.py
  3. See error:
(mujoco-tut)` D:\Eigene Dateien\Eigene Dokumente\Programmierung\20 Python\38 RL Ant\01 Tests\Mujoco-Tutorial>python run.py
Traceback (most recent call last):
  File "D:\Eigene Dateien\Eigene Dokumente\Programmierung\20 Python\38 RL Ant\01 Tests\Mujoco-Tutorial\run.py", line 13, in <module>
    main()
  File "D:\Eigene Dateien\Eigene Dokumente\Programmierung\20 Python\38 RL Ant\01 Tests\Mujoco-Tutorial\run.py", line 7, in main
    sim = Biped(xml_path)
  File "D:\Eigene Dateien\Eigene Dokumente\Programmierung\20 Python\38 RL Ant\01 Tests\Mujoco-Tutorial\examples\biped.py", line 21, in __init__
    super().__init__(xml_path)
  File "D:\Eigene Dateien\Eigene Dokumente\Programmierung\20 Python\38 RL Ant\01 Tests\Mujoco-Tutorial\mujoco_base.py", line 15, in __init__
    self.model = mj.MjModel.from_xml_path(xml_path)  # MuJoCo model
ValueError: XML Error: Schema violation: unrecognized attribute: 'sensornoise'

Element 'flag', line 8

Desktop (please complete the following information):

  • Windows 10
@Hollow-D
Copy link

Hollow-D commented Jan 8, 2025

If you just want to run run.py, you can comment out sensornoise and change xml/biped.xml line 8 to <flag contact="enable" energy="enable"/>, I don't know if this is the same as the original, btw I'm a newbie in learning mujoco.

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