---------------------------------------------------------------------------
SerialException Traceback (most recent call last)
<ipython-input-2-dd9588846b2f> in <module>()
----> 1 cherry = Cherry()
2 cherry.setup()
3 poppy = cherry.robot
C:\Users\laura\Desktop\Defis H\Code\cherry-project\src\cherry.pyc in __init__(self, simulator)
88 #Vrai :
89 else:
---> 90 self.robot = from_json("../utils/poppy_torso_config.json")
91 self.robot.start_sync()
92
C:\Python27\lib\site-packages\pypot-2.3.0-py2.7.egg\pypot\robot\config.pyc in from_json(json_file, sync)
198 config = json.load(f)
199
--> 200 return from_config(config, sync=sync)
201
202
C:\Python27\lib\site-packages\pypot-2.3.0-py2.7.egg\pypot\robot\config.pyc in from_config(config, strict, sync)
54
55 attached_ids = [m.id for m in attached_motors]
---> 56 dxl_io = dxl_io_from_confignode(config, c_params, attached_ids, strict)
57
58 check_motor_limits(config, dxl_io, motor_names)
C:\Python27\lib\site-packages\pypot-2.3.0-py2.7.egg\pypot\robot\config.pyc in dxl_io_from_confignode(config, c_params, ids, strict)
103
104 if port == 'auto':
--> 105 port = pypot.dynamixel.find_port(ids, strict)
106 logger.info('Found port {} for ids {}'.format(port, ids))
107
C:\Python27\lib\site-packages\pypot-2.3.0-py2.7.egg\pypot\dynamixel\__init__.pyc in find_port(ids, strict)
47 for DxlIOCls in (DxlIO, Dxl320IO):
48 try:
---> 49 with DxlIOCls(port) as dxl:
50 founds = len(dxl.scan(ids))
51
C:\Python27\lib\site-packages\pypot-2.3.0-py2.7.egg\pypot\dynamixel\io\abstract_io.pyc in __init__(self, port, baudrate, timeout, use_sync_read, error_handler_cls, convert)
70 self._serial_lock = threading.Lock()
71
---> 72 self.open(port, baudrate, timeout)
73
74 def __enter__(self):
C:\Python27\lib\site-packages\pypot-2.3.0-py2.7.egg\pypot\dynamixel\io\abstract_io.pyc in open(self, port, baudrate, timeout)
93
94 """
---> 95 self._open(port, baudrate, timeout)
96 logger.info("Opening port '%s'", self.port,
97 extra={'port': port,
C:\Python27\lib\site-packages\pypot-2.3.0-py2.7.egg\pypot\dynamixel\io\abstract_io.pyc in _open(self, port, baudrate, timeout, max_recursion)
125 self._serial.close()
126
--> 127 self._serial = serial.Serial(port, baudrate, timeout=timeout)
128 self.__used_ports.add(port)
129
C:\Python27\lib\site-packages\pyserial-2.7-py2.7-win32.egg\serial\serialwin32.pyc in __init__(self, *args, **kwargs)
36
37
---> 38 SerialBase.__init__(self, *args, **kwargs)
39
40 def open(self):
C:\Python27\lib\site-packages\pyserial-2.7-py2.7-win32.egg\serial\serialutil.pyc in __init__(self, port, baudrate, bytesize, parity, stopbits, timeout, xonxoff, rtscts, writeTimeout, dsrdtr, interCharTimeout)
280
281 if port is not None:
--> 282 self.open()
283
284 def isOpen(self):
C:\Python27\lib\site-packages\pyserial-2.7-py2.7-win32.egg\serial\serialwin32.pyc in open(self)
64 if self.hComPort == win32.INVALID_HANDLE_VALUE:
65 self.hComPort = None # 'cause __del__ is called anyway
---> 66 raise SerialException("could not open port %r: %r" % (self.portstr, ctypes.WinError()))
67
68 try:
SerialException: could not open port 'COM8': WindowsError(5, 'Acc\xe8s refus\xe9.')