Voila l’erreur que je récupère avec ipython
from poppy.creatures import PoppyErgoJrergo = PoppyErgoJr()---------------------------------------------------------------------------
DxlCommunicationError Traceback (most recent call last)
<ipython-input-3-531aafc6b8f0> in <module>()
1 from poppy.creatures import PoppyErgoJr
2
----> 3 ergo = PoppyErgoJr()
/home/poppy/miniconda/lib/python2.7/site-packages/poppy_creature-1.8.0rc1-py2.7.egg/poppy/creatures/abstractcreature.pyc in __new__(cls, base_path, config, simulator, scene, host, port, id, use_snap, snap_host, snap_port, snap_quiet, use_http, http_host, http_port, http_quiet, use_remote, remote_host, remote_port, sync)
98 else:
99 try:
--> 100 poppy_creature = from_json(config, sync)
101 except IndexError as e:
102 raise IOError('Connection to the robot failed! {}'.format(e.message))
/home/poppy/miniconda/lib/python2.7/site-packages/pypot-2.11.0rc1-py2.7.egg/pypot/robot/config.pyc in from_json(json_file, sync, strict, use_dummy_io)
242 config = json.load(f)
243
--> 244 return from_config(config, sync=sync, strict=strict, use_dummy_io=use_dummy_io)
245
246
/home/poppy/miniconda/lib/python2.7/site-packages/pypot-2.11.0rc1-py2.7.egg/pypot/robot/config.pyc in from_config(config, strict, sync, use_dummy_io)
58 attached_ids = [m.id for m in attached_motors]
59 if not use_dummy_io:
---> 60 dxl_io = dxl_io_from_confignode(config, c_params, attached_ids, strict)
61
62 check_motor_limits(config, dxl_io, motor_names)
/home/poppy/miniconda/lib/python2.7/site-packages/pypot-2.11.0rc1-py2.7.egg/pypot/robot/config.pyc in dxl_io_from_confignode(config, c_params, ids, strict)
160 error_handler_cls=handler)
161
--> 162 found_ids = dxl_io.scan(ids)
163 if ids != found_ids:
164 missing_ids = tuple(set(ids) - set(found_ids))
/home/poppy/miniconda/lib/python2.7/site-packages/pypot-2.11.0rc1-py2.7.egg/pypot/dynamixel/io/abstract_io.pyc in scan(self, ids)
219 def scan(self, ids=range(254)):
220 """ Pings all ids within the specified list, by default it finds all the motors connected to the bus. """
--> 221 return [id for id in ids if self.ping(id)]
222
223 # MARK: - Specific Getter / Setter
/home/poppy/miniconda/lib/python2.7/site-packages/pypot-2.11.0rc1-py2.7.egg/pypot/dynamixel/io/abstract_io.pyc in ping(self, id)
212
213 try:
--> 214 self._send_packet(pp, error_handler=None)
215 return True
216 except DxlTimeoutError:
/home/poppy/miniconda/lib/python2.7/site-packages/pypot-2.11.0rc1-py2.7.egg/pypot/dynamixel/io/abstract_io.pyc in _send_packet(self, instruction_packet, wait_for_status_packet, error_handler, _force_lock)
525
526 if not error_handler:
--> 527 return self.__real_send(instruction_packet, wait_for_status_packet, _force_lock)
528
529 try:
/home/poppy/miniconda/lib/python2.7/site-packages/pypot-2.11.0rc1-py2.7.egg/pypot/dynamixel/io/abstract_io.pyc in __real_send(self, instruction_packet, wait_for_status_packet, _force_lock)
493 return
494
--> 495 status_packet = self.__real_read(instruction_packet, _force_lock=True)
496
497 logger.debug('Receiving %s', status_packet,
/home/poppy/miniconda/lib/python2.7/site-packages/pypot-2.11.0rc1-py2.7.egg/pypot/dynamixel/io/abstract_io.pyc in __real_read(self, instruction_packet, _force_lock)
515 except ValueError:
516 msg = 'could not parse received data {}'.format(bytearray(data))
--> 517 raise DxlCommunicationError(self, msg, instruction_packet)
518
519 return status_packet
DxlCommunicationError: could not parse received data ���� after sending DxlPingPacket(id=1)