Ask Your Question

rosserial_python Error

asked 2016-02-16 03:59:31 -0500

naqi.nick gravatar image

i am trying to connect my arduino with ROS i am following the hello world tutorial: i am using ROS Jade

when i come to the step following step: rosrun rosserial_python /dev/ttyUSB0

i receive an error of serial port as: [ERROR] [WallTime: 1455616377.748461] Error opening serial: could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'

i know its an error of the serial port but i am not able to solve it plz help me i really need help with this matter.

edit retag flag offensive close merge delete


The error says that /dev/ttyUSB0 does not exist. Did you check if you find this port with ls /dev/ttyUSB0? Otherwise, you need to replace ttyUSB0 with your correct serial port, as it says in the tutorial.

mgruhler gravatar image mgruhler  ( 2016-02-17 01:49:54 -0500 )edit

thank you but how do I find the correct serial port? I want to use Bluetooth for the communication

naqi.nick gravatar image naqi.nick  ( 2016-02-19 05:05:07 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-03-18 19:56:04 -0500

jcardenasc93 gravatar image

A simple way to check the correct serial port is using the Arduino IDE , on the tools menu go to "Port" and it shows the current port where Arduino is connect. Once you check the arduino the _port:= param has to be the same

edit flag offensive delete link more


thank you that solved the problem

naqi.nick gravatar image naqi.nick  ( 2016-04-09 11:45:48 -0500 )edit

answered 2016-04-09 11:49:46 -0500

naqi.nick gravatar image

one problem was that i have to define the port at which i have connected the bluetooth the second is that first before using this command it requires a bluetooth module to be connected at that port it can be done by using the following command sudo rfcomm connect 0 <mac address="" of="" the="" bluetooth="" module="">

edit flag offensive delete link more

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


Asked: 2016-02-16 03:59:31 -0500

Seen: 1,129 times

Last updated: Apr 09 '16