rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 on RasPi giving "could not open port /dev/ttyUSB0" error
I have installed rosserial_arduino
on my RasPi and my Arduino code for Push Button has been uploaded successfully.
To run the code, I am following the following steps as mentioned in the tutorial:
1. Startup roscore using roscore
2. Run the run the rosserial_python serial_node.py using rosrun rosserial_python serial_node.py _port:=/dev/ttyUSB0
3. Watch button status on rostopic echo pushed
Now, the issue here is that when I try step 2 using rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0
(my Arduino is on ACM0), the error message I receive is
[ERROR] [WallTime: 1411295710.119812] Error opening serial: could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
For some reason, it keeps taking USB0
as the input even if I specify ACM0
as the port. This error does not occur on my Ubuntu 14.04 distro running _Indigo_. My RasPi is running _Groovy_.
I have also added the necessary group permissions (adding user to dialout
, etc.) but to no avail. Please suggest methods to solve this issue.
Thanks to ahendrix for having found out the problem. But there is a follow up issue here. Please check.