We’d like to test Pypot with Dynamixel in order to learn how to make a Poppy at la cité des sciences et de l’industrie on march 22 and 23.
I start with just on Dynamixel AX-12. It works.
But with two AX-12, I received an error in the scan.
The python program is :
import pypot
import pypot.dynamixel
print(pypot.dynamixel.get_available_ports())
dxl_io = pypot.dynamixel.DxlIO('COM9')
print(dxl_io.scan())
and the result:
['COM3', 'COM5', 'COM4', 'COM9']
Traceback (most recent call last):
File "D:\Dossiers\th_perso\Poppy\Examples\ex01.py", line 9, in <module>
print(dxl_io.scan())
File "C:\Python33\lib\site-packages\pypot-1.5.2-py3.3.egg\pypot\dynamixel\io.py", line 207, in scan
return [id for id in ids if self.ping(id)]
File "C:\Python33\lib\site-packages\pypot-1.5.2-py3.3.egg\pypot\dynamixel\io.py", line 207, in <listcomp>
return [id for id in ids if self.ping(id)]
File "C:\Python33\lib\site-packages\pypot-1.5.2-py3.3.egg\pypot\dynamixel\io.py", line 200, in ping
self._send_packet(pp, error_handler=None)
File "C:\Python33\lib\site-packages\pypot-1.5.2-py3.3.egg\pypot\dynamixel\io.py", line 528, in _send_packet
return self.__real_send(instruction_packet, wait_for_status_packet, _force_lock)
File "C:\Python33\lib\site-packages\pypot-1.5.2-py3.3.egg\pypot\dynamixel\io.py", line 513, in __real_send
msg = 'could not parse received data {}'.format(list(map(ord, data)))
TypeError: ord() expected string of length 1, but int found
What is wrong ?
Thank you