I have 2 AX-12+ (id [1,2] and baudrate=1000000) plugged on a USB2AX and I run python under a virtual machine with Ubuntu (because the USB2AX behavior is not very clear on Mac).
I never played with the auto robot but when I do:
from pypot.dynamixel import autodetect_robot
my_robot = autodetect_robot()
I get:
/usr/local/lib/python2.7/dist-packages/pypot/dynamixel/io/abstract_io.pyc in _open(self, port, baudrate, timeout, max_recursion)
115
116 if port in self.__used_ports:
--> 117 raise DxlError('port already used {}'.format(port))
118
119 # Dirty walkaround to fix a strange bug.
DxlError: port already used /dev/ttyACM0
I guess the “Dirty walkaround” comment means there is something not clear ?
PS:
import pypot.dynamixel
dxl = pypot.dynamixel.DxlIO('/dev/ttyACM0')
dxl.scan(range(10))
>> [1, 2]