I have installed `rosserial_arduino` on my RasPi and my Arduino code for [**Push Button**](http://wiki.ros.org/rosserial_arduino/Tutorials/Push%20Button "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](http://answers.ros.org/question/193183/rosserial_python-failed-packet-flags/). Please check.
↧