ERROR: launch slam program of turtlebot3 on remote pc

asked 2020-03-11 21:00:26 -0500

小楠zjc gravatar image

updated 2020-03-12 02:25:27 -0500

gvdhoorn gravatar image

all of code has been installed properly, and ROS master is my PC, when i run turtlebot3_slam after starting ros, i met some error as follows:

robot@thinkcenter:~/catkin_ws$ roslaunch turtlebot3_bringup turtlebot3_robot.launch 

... logging to /home/robot/.ros/log/5afeb77e-63fd-11ea-875a-40a5efdd58c2/roslaunch-thinkcenter-7700.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://thinkcenter:36901/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.3
 * /turtlebot3_core/baud: 115200
 * /turtlebot3_core/port: /dev/ttyACM0
 * /turtlebot3_core/tf_prefix: 
 * /turtlebot3_lds/frame_id: base_scan
 * /turtlebot3_lds/port: /dev/ttyUSB0

NODES
  /
    turtlebot3_core (rosserial_python/serial_node.py)
    turtlebot3_diagnostics (turtlebot3_bringup/turtlebot3_diagnostics)
    turtlebot3_lds (hls_lfcd_lds_driver/hlds_laser_publisher)

ROS_MASTER_URI=http://192.168.8.102:11311

process[turtlebot3_core-1]: started with pid [7715]
process[turtlebot3_lds-2]: started with pid [7716]
[ERROR] [1583975822.967607961]: An exception was thrown: open: No such file or directory
process[turtlebot3_diagnostics-3]: started with pid [7717]
[turtlebot3_lds-2] process has died [pid 7716, exit code 255, cmd /home/robot/turtlebot3_ws/devel/lib/hls_lfcd_lds_driver/hlds_laser_publisher __name:=turtlebot3_lds __log:=/home/robot/.ros/log/5afeb77e-63fd-11ea-875a-40a5efdd58c2/turtlebot3_lds-2.log].
log file: /home/robot/.ros/log/5afeb77e-63fd-11ea-875a-40a5efdd58c2/turtlebot3_lds-2*.log
[INFO] [1583975823.299802]: ROS Serial Python Node
[INFO] [1583975823.310788]: Connecting to /dev/ttyACM0 at 115200 baud
[ERROR] [1583975823.316118]: Error opening serial: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[ERROR] [1583975826.321791]: Error opening serial: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[ERROR] [1583975829.326707]: Error opening serial: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[ERROR] [1583975832.332852]: Error opening serial: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[ERROR] [1583975835.339078]: Error opening serial: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[ERROR] [1583975838.345209]: Error opening serial: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
^C[turtlebot3_diagnostics-3] killing on exit
[turtlebot3_core-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
edit retag flag offensive close merge delete

Comments

1

Quik comment:

Error opening serial: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'

is there actually a /dev/ttyACM0 device file on the machine you are trying to start this?

If not, that would be the thing to investigate here.


If you are trying to run this distributed over two PCs, you must make sure the turtlebot driver is only launched on the turtlebot, not on your other PC.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-12 02:26:13 -0500 )edit