OUI il est long
---------------------------------------------------------------------------
DxlCommunicationError Traceback (most recent call last)
<ipython-input-1-aad9218939b9> in <module>()
1 from poppy.creatures import PoppyErgoJr
2
----> 3 poppy = PoppyErgoJr()
/home/poppy/miniconda/lib/python2.7/site-packages/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, start_background_services, sync, **extra)
117 else:
118 try:
--> 119 poppy_creature = from_json(config, sync, **extra)
120 except IndexError as e:
121 raise IOError('Connection to the robot failed! {}'.format(e.message))
/home/poppy/miniconda/lib/python2.7/site-packages/pypot/robot/config.pyc in from_json(json_file, sync, strict, use_dummy_io, **extra)
270 config = json.load(f, object_pairs_hook=OrderedDict)
271
--> 272 return from_config(config, sync=sync, strict=strict, use_dummy_io=use_dummy_io, **extra)
273
274
/home/poppy/miniconda/lib/python2.7/site-packages/pypot/robot/config.pyc in from_config(config, strict, sync, use_dummy_io, **extra)
60 attached_ids = [m.id for m in attached_motors]
61 if not use_dummy_io:
---> 62 dxl_io = dxl_io_from_confignode(config, c_params, attached_ids, strict)
63
64 check_motor_eprom_configuration(config, dxl_io, motor_names)
/home/poppy/miniconda/lib/python2.7/site-packages/pypot/robot/config.pyc in dxl_io_from_confignode(config, c_params, ids, strict)
174 error_handler_cls=handler)
175
--> 176 found_ids = dxl_io.scan(ids)
177 if ids != found_ids:
178 missing_ids = tuple(set(ids) - set(found_ids))
/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/io/abstract_io.pyc in scan(self, ids)
218 def scan(self, ids=range(254)):
219 """ Pings all ids within the specified list, by default it finds all the motors connected to the bus. """
--> 220 return [id for id in ids if self.ping(id)]
221
222 # MARK: - Specific Getter / Setter
/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/io/abstract_io.pyc in ping(self, id)
211
212 try:
--> 213 self._send_packet(pp, error_handler=None)
214 return True
215 except DxlTimeoutError:
/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/io/abstract_io.pyc in _send_packet(self, instruction_packet, wait_for_status_packet, error_handler, _force_lock)
524
525 if not error_handler:
--> 526 return self.__real_send(instruction_packet, wait_for_status_packet, _force_lock)
527
528 try:
/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/io/abstract_io.pyc in __real_send(self, instruction_packet, wait_for_status_packet, _force_lock)
492 return
493
--> 494 status_packet = self.__real_read(instruction_packet, _force_lock=True)
495
496 logger.debug('Receiving %s', status_packet,
/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/io/abstract_io.pyc in __real_read(self, instruction_packet, _force_lock)
514 except ValueError:
515 msg = 'could not parse received data {}'.format(bytearray(data))
--> 516 raise DxlCommunicationError(self, msg, instruction_packet)
517
518 return status_packet
DxlCommunicationError: could not parse received data ���aU�ea after sending DxlPingPacket(id=5)