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

rosserial_python Error

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

naqi.nick gravatar image

i am trying to connect my arduino with ROS i am following the hello world tutorial: http://wiki.ros.org/rosserial_arduino... i am using ROS Jade

when i come to the step following step: rosrun rosserial_python serial_node.py /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

Comments

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 -0600 )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 -0600 )edit

2 Answers

Sort by » oldest newest most voted
0

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

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

Comments

thank you that solved the problem

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

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

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

Question Tools

1 follower

Stats

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

Seen: 1,693 times

Last updated: Apr 09 '16