Results 1 to 5 of 5

Thread: USB2AX and ROS

  1. USB2AX and ROS

    Hi everyone, I have been trying to get my USB2AX working with ROS using the dynamixel_controllers package by following the tutorial on its Wiki. However I am getting the "No motors found" message.

    I'm trying to interface with a MX64 servo, and set the baud and ID to 1M and 1 respectively. I've also tried 57600. I'm using "/dev/ttyACM0" in the launch file and I'm pretty certain this is the correct port.

    Has anyone else tried this and got it working?

    Thanks

  2. #2
    Join Date
    Dec 2012
    Location
    Los Angeles, CA
    Posts
    851
    Images
    25
    Rep Power
    85

    Re: USB2AX and ROS

    Is it communicating outside of ROS? I ended up writing my own for ROS so I'm of little help.

  3. #3

    Re: USB2AX and ROS

    Sorry in advance if this is unclear or if I ramble too much ...

    Note: On the ROS stuff, I have been using Kevin's stuff so I may not be able to offer much direct help either. Also I believe that the package you mentioned is written in Python, which I don't have any experience with. Likewise I don't know how many servo controllers that this package has been developed for and tested with. Likewise I am using AX-12 servos (except for 1 mx12w for other stuff)

    However, it might throw out a couple of questions, ideas to see if that helps.

    First off it might help to know what type of processor you have connected up to the USB2AX? ie a PC or some linux board such as an RPI or the like? Warning: I mainly have used the USB2AX on other boards like RPI, ODroid, Edison, ...

    Side Note: The ROS code (Kevin's) I have used with an USB2AX on a PhantomX hexapod, is very close to some of the code I have used in my non ROS Linux based Hexapod code, which I keep up on github: https://www.github.com/kurte/Raspberry_pi, there is a directory in it call BioloidEx which I use to talk to the servos. This code is some of the same code that you can get from Xevels (USB2AX) code, which probably started off as from Robotis... Likewise for the HROS1 robot, it uses similar code but instead of using an USB2AX it has an Arbotix Pro who talks to the main processor through an FTDI chip. This board is semi-based on the Robotis CM730 (not sure if this uses FTDI as well?) Code for this robot is up at https://github.com/Interbotix/HROS1-Framework/

    One thing that I found with using this code when I then tried to use it with the new Arbotix-Pro and now in the last few days with my own code running on a Teensy 3.1, is that some of the initialization code for the Serial port to be able to configure it for the baud rate of 1000000 may change depending on which board I am talking to.

    Example Talking to Arbotix Pro through FTDI, if you look at the OpenPort code in: https://github.com/Interbotix/HROS1-...LinuxCM730.cpp

    On an FTDI serial port /dev/ttyUSBx - This works by first setting the baud rate to 38400 by the tcsetattr call, and the it used IOCTLS to first get the serial parameters (TIOCGSERIAL) and then setting up for non-standard baud rate, by setting some stuff and then doing an IOCTL to TIOCSSERIAL to update. This works fine on the Arbotix Pro. However if you try to run this same code for USB2AX(/dev/ttyACMx), the IOCTL to retrieve the current stuff TIOCGSERIAL fails. I also found with the Teensy 3.1 (/dev/ttyACMx), that the first IOCTL succeeded but the 2nd fails.

    So to Initialize these devices, instead of having the call to tcsetattr set the baud rate to 38400, I instead try to set it directly to 1000000. (As Xevel does in his version of the library code). And if this succeeds, I don't try to use the IOCTLS. Again an example of this is up on my file: https://github.com/KurtE/Raspberry_P...EX/dxl_hal.cpp in the dxl_hal_open code. Looks like I need to work on tabs/spaces... (again). ...

    So again sorry I don't have any direct answers, other than to suggest looking at the code on where the stream is initialized.

    Kurt

  4. Re: USB2AX and ROS

    Thanks for the help guys. I just ended up taking the Dynamixel SDK and including it in one of my nodes so I will just write my own code around that, and hopefully use it in conjunction with MoveIt eventually.

  5. #5
    Join Date
    Dec 2012
    Location
    Los Angeles, CA
    Posts
    851
    Images
    25
    Rep Power
    85

    Re: USB2AX and ROS

    Quote Originally Posted by dejamzo View Post
    Thanks for the help guys. I just ended up taking the Dynamixel SDK and including it in one of my nodes so I will just write my own code around that, and hopefully use it in conjunction with MoveIt eventually.
    That's what I did.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Udoo + usb2ax
    By Gertlex in forum Arbotix, Microcontrollers, Arduino
    Replies: 8
    Last Post: 05-10-2014, 11:16 PM
  2. DynamixelSDK for USB2AX
    By Xevel in forum Software and Programming
    Replies: 1
    Last Post: 02-25-2014, 02:02 AM
  3. USB2AX v3.0a feedback
    By Xevel in forum Arbotix, Microcontrollers, Arduino
    Replies: 65
    Last Post: 11-15-2013, 05:49 PM
  4. USB2AX v3.1
    By Xevel in forum Arbotix, Microcontrollers, Arduino
    Replies: 25
    Last Post: 04-08-2013, 02:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •