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

rosserial helloworld

asked 2013-01-12 20:00:56 -0600

c22shen gravatar image

Hi all,

I am trying to get the example helloWorld working from the rosserial package, and everything went smooth until the command: rosrun rosserial_python serial_node.py /dev/ttyACM0

the error msg is: raise SerialException("could not open port %s: %s" % (self._port, msg)) serial.serialutil.SerialException: could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'

I verified on the Arduino IDE that serial port is indeed /dev/ttyACM0 and #include "WProgram.h" has been changed to #include "Arduino.h".

My system is running ubuntu 12.04 fuerte build, and using Arduino 1.0 IDE.

Please let me know if anyone has encountered similiar problems, and how you solved this issue. Thank you very much in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-01-15 09:32:43 -0600

c22shen gravatar image

updated 2013-01-15 09:33:46 -0600

Thank you for your answer, this issue has been resolved by adding my own username to the dailout group.

sudo adduser <username> dialout and after restarting my computer, there was no longer any permission issue involved.

Thanks again!

edit flag offensive delete link more
2

answered 2013-01-13 13:10:07 -0600

Gav gravatar image

Check the permissions of your USB device. ls -l /dev/ttyACM0

if they're not sufficient, you can add them by typing 'sudo chmod a+rw /dev/ttyACM0'.

However this will need redoing every time you unplug and replug it in. (This is due to how Ubuntu handles device permissions). To make it permanent you need do change/add the 'udev' rules for the arduino device. Here's a similar question about udevs, which might help: http://answers.ros.org/question/9097/how-can-i-get-a-unique-device-path-for-my-arduinoftdi-device/

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-12 20:00:56 -0600

Seen: 4,913 times

Last updated: Jan 15 '13