Ask Your Question
0

Rosserial Arduino Problem

asked 2014-06-15 13:30:52 -0500

Wedontplay gravatar image

Hi, i just started using ROS and i'm trying to use rosserial_arduino. I'm trying to get the examples working but I have some problems, when I launch:

rosrun rosserial_python serial_node.py /dev/ttyACM0

I have this error on the console:

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

I read other threads and i loaded the sketch on a Mega 2650 and a UNO with atmega328 to exclude memory issues but i have always the same error.

Some additional information:

$rospack find rosserial
[rospack] Error: stack/package rosserial not found

$rospack find rosserial_arduino
/opt/ros/hydro/share/rosserial_arduino

$rospack find rosserial_python
/opt/ros/hydro/share/rosserial_python

$rosmsg show Adc
[rosserial_arduino/Adc]:
uint16 adc0
uint16 adc1
uint16 adc2
uint16 adc3
uint16 adc4
uint16 adc5

I'm running Hydro on Ubuntu 13.04 64-bit

Any help would be appreciated

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-06-15 16:57:32 -0500

ahendrix gravatar image

I don't think you're specifying the port parameter to the rosserial_python node properly.

Try specifying the ROS ~port parameter:

rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0
edit flag offensive delete link more

Comments

Tx for the answer and sorry for the late reply. Actually it was a trivial problem related to the fact i was running ubuntu on a virtual machine and arduino program had some problems handling the serial port itself.

Wedontplay gravatar image Wedontplay  ( 2014-07-11 16:50:16 -0500 )edit

Can you specify the solution, because I have the same problem.

BigAnt gravatar image BigAnt  ( 2019-02-27 09:55:55 -0500 )edit

@BigAnt please ask a new question instead of commenting on a 5-year-old question.

ahendrix gravatar image ahendrix  ( 2019-02-27 12:09:46 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-06-15 13:30:52 -0500

Seen: 2,708 times

Last updated: Jun 15 '14