morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
350 stars 155 forks source link

KeyError when running scripts - Gyroscope #790

Open mrphaell opened 6 years ago

mrphaell commented 6 years ago

When I'm trying to run a simple script, I'm getting the output:

Traceback (most recent call last):
File "/home/phael/Desktop/Morse/mysim/scripts/mysim_client.py", line 25, in <module>
  gyro = simu.robot.gyroscope
File "/usr/local/lib/python3.5/dist-packages/pymorse/pymorse.py", line 390, in __getattr__ 
  comp = dict.__getitem__(self, name)
KeyError: 'gyroscope'

After that, I get nothing, and the script doesn't work. The script has the auto generated content, with the addition of that single line 25 listed above. Can anybody help? I'm kinda new to Morse.