Dynamixel driver with usb2ax issue [closed]
Hi,
I experienced connexion issue when using ROS package dynamixel_contollers to manage dynamixel motor with usb2ax adaptator. The modification in file dynamixel_io.py solved this issue:
class DynamixelIO(object): """ Provides low level IO with the Dynamixel servos through pyserial. Has the ability to write instruction packets, request and read register value packets, send and receive a response to a ping packet, and send a SYNC WRITE multi-servo instruction packet. """
def __init__(self, port, baudrate):
""" Constructor takes serial port and baudrate as arguments. """
try:
self.serial_mutex = Lock()
self.ser = None
"""
self.ser = serial.Serial(port)
self.ser.setTimeout(0.015)
self.ser.baudrate = baudrate
self.port_name = port
"""
#To add
self.ser = serial.Serial(port,baudrate,timeout=0.04)
Regards,
J.Favrichon
This is not a question. Please submit this directly to the dynamixel_controllers github repository as a pull request or a ticket.
This totally fixed a problem I was having. Thanks!