Robotics StackExchange | Archived questions

Dynamixel driver with usb2ax issue

Hi,

I experienced connexion issue when using ROS package dynamixelcontollers to manage dynamixel motor with usb2ax adaptator. The modification in file dynamixelio.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

Asked by juju73 on 2015-12-11 15:28:28 UTC

Comments

This is not a question. Please submit this directly to the dynamixel_controllers github repository as a pull request or a ticket.

Asked by ahendrix on 2015-12-11 16:22:30 UTC

This totally fixed a problem I was having. Thanks!

Asked by bkinman on 2015-12-18 18:06:55 UTC

Answers