ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rosserial w/ Arduino Leonardo

asked 2014-02-04 00:55:53 -0600

rflmota gravatar image

updated 2014-02-04 00:57:06 -0600

I'm trying to use the rosserial_arduino package with an Arduino Leonardo but I keep getting the error:

> [ERROR] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

whenever I try to run the from the rosserial package...

Can anybody please helpe me?! Thanks in advance ;)

edit retag flag offensive close merge delete


So, what about the version mismatch in the error message? What code is on the arduino and what are you running on the ROS machine? The actual workspace might be relevant (i.e. one built from source, one from system)

dornhege gravatar image dornhege  ( 2014-02-04 00:59:28 -0600 )edit

I'm using the rosserial version pulled directly from the repository at [rosserial @ GitHub]( and I'm using the Hydro distribution for ROS. About the Arduino code, I'm compiling the source code against the generated compiled ros_lib libraries generated by the command: > rosrun rosserial_arduino ~/sketchbook/libraries

rflmota gravatar image rflmota  ( 2014-02-04 01:19:55 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2014-02-04 02:32:37 -0600

I use some 32U4-based PCBs for test fixtures, prototypes, etc. Here's an example project which builds and downloads an example rosserial firmware to a Leonardo board:

Note that this bypasses the Arduino IDE, assuming that you will use a text editor and catkin_make it from the command line. I also have a more generalized version of this example which I haven't got clearance to release yet—if that's of interest to anyone, let me know and I can move things along with it.

edit flag offensive delete link more


Very interested!

tonybaltovski gravatar image tonybaltovski  ( 2014-02-04 06:14:43 -0600 )edit

answered 2022-11-24 09:47:27 -0600

martinerk0 gravatar image

I had the same problem, I used the

 #define USE_USBCON

hint from post and it worked!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-02-04 00:55:53 -0600

Seen: 777 times

Last updated: Nov 24 '22