ça avance, j’ai listé, nommé et fait une première passe des limite d’angle.
mais si j’utilise un from_json pour créer ma creature, j’ai une série d’erreur :
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
from pypot.robot import from_json
my_robot = from_json(‘darwinoppy.json’)
Exception in thread Thread-3:
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/pypot/dynamixel/controller.py”, line 152, in setup
positions, speeds, loads = list(zip(*values))
ValueError: need more than 0 values to unpack
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.4/threading.py”, line 920, in _bootstrap_inner
self.run()
File “/usr/lib/python3.4/threading.py”, line 868, in run
self._target(*self._args, **self._kwargs)
File “/usr/local/lib/python3.4/dist-packages/pypot/utils/stoppablethread.py”, line 121, in _wrapped_target
self._setup()
File “/usr/local/lib/python3.4/dist-packages/pypot/dynamixel/controller.py”, line 154, in setup
raise DxlError(“Couldn’t initialize pos/speed/load sync loop!”)
pypot.dynamixel.io.abstract_io.DxlError: Couldn’t initialize pos/speed/load sync loop!
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python3.4/threading.py”, line 920, in _bootstrap_inner
self.run()
File “/usr/lib/python3.4/threading.py”, line 868, in run
self._target(*self._args, **self._kwargs)
File “/usr/local/lib/python3.4/dist-packages/pypot/utils/stoppablethread.py”, line 121, in _wrapped_target
self._setup()
File “/usr/local/lib/python3.4/dist-packages/pypot/dynamixel/syncloop.py”, line 22, in setup
[c.start() for c in self.controllers]
File “/usr/local/lib/python3.4/dist-packages/pypot/dynamixel/syncloop.py”, line 22, in
[c.start() for c in self.controllers]
File “/usr/local/lib/python3.4/dist-packages/pypot/robot/controller.py”, line 25, in start
self.wait_to_start()
File “/usr/local/lib/python3.4/dist-packages/pypot/utils/stoppablethread.py”, line 86, in wait_to_start
‘for details.’.format(self._thread.name))
RuntimeError: Setup failed, see Thread-3 Tracebackfor details.
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.4/dist-packages/pypot/robot/config.py”, line 272, in from_json
return from_config(config, sync=sync, strict=strict, use_dummy_io=use_dummy_io, **extra)
File “/usr/local/lib/python3.4/dist-packages/pypot/robot/config.py”, line 79, in from_config
robot = Robot(motor_controllers=controllers, sync=sync)
File “/usr/local/lib/python3.4/dist-packages/pypot/robot/robot.py”, line 49, in init
self.start_sync()
File “/usr/local/lib/python3.4/dist-packages/pypot/robot/robot.py”, line 64, in start_sync
[c.start() for c in self._controllers]
File “/usr/local/lib/python3.4/dist-packages/pypot/robot/robot.py”, line 64, in
[c.start() for c in self._controllers]
File “/usr/local/lib/python3.4/dist-packages/pypot/robot/controller.py”, line 25, in start
self.wait_to_start()
File “/usr/local/lib/python3.4/dist-packages/pypot/utils/stoppablethread.py”, line 86, in wait_to_start
‘for details.’.format(self._thread.name))
RuntimeError: Setup failed, see Thread-1 Tracebackfor details.
Le fichier de config est dans mon github
J’en déduis qu’il me manque des définitions (j’étais parti d’un fichier généré par l’autodetect de pypot)
La suite bientôt j’espère