RAZOR IMU interface for Pypot

Yep that’s a good idea! So I just add it:

You can used it like this:


from pypot.dynamixel import DxlIO

io1 = DxlIO('/dev/ttyUSB0')
io2 = DxlIO('/dev/ttyACM0')

print DxlIO.get_used_ports()
>>> ['/dev/ttyACM0', '/dev/ttyUSB0']

I also add an extra argument to the get_available_ports so you can now get only the “free” ones:


from pypot.dynamixel import get_available_ports

print get_available_ports()
>>> ['/dev/ttyACM0', '/dev/ttyUSB0', '/dev/ttyUSB1']

print get_available_ports(only_free=True)
>>> ['/dev/ttyUSB1']
2 Likes