Cannot bind to the specified serial port /dev/ttyUSB0.
HELLO. I am trying to use Rplidar and I am following the step below.
I done below .
$ sudo apt-get install git
$ cd ~/catkin_ws/src
$ git clone https://github.com/robopeak/rplidar_ros
$ cd ~/catkin_ws
$ catkin_make rplidarNode
$ catkin_make rplidarNodeClient
$ sudo nano /etc/udev/rules.d/70-persistent-net.rules
KERNEL=="ttyUSB*", MODE="0666"
From this part, I have several error.
When I input this,
$ roslaunch rplidar_ros rplidar.launch
it shows
[rplidar.launch] is neither a launch file in package [rplidar_ros] nor is [rplidar_ros] a launch file name
The traceback for the exception was written to the log file
However, if I input
ubuntu@ubuntu:~/catkin_ws$ source /home/ubuntu/catkin_ws/devel/setup.bash
ubuntu@ubuntu:~/catkin_ws$ roslaunch rplidar_ros rplidar.launch
... logging to /home/ubuntu/.ros/log/c256ffaa-e311-11e6-b38a-0022cffa2d4b/roslaunch-ubuntu-6458.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://ubuntu:45311/
SUMMARY
========
PARAMETERS
* /rosdistro: indigo
* /rosversion: 1.11.20
* /rplidarNode/angle_compensate: True
* /rplidarNode/frame_id: laser
* /rplidarNode/inverted: False
* /rplidarNode/serial_baudrate: 115200
* /rplidarNode/serial_port: /dev/ttyUSB0
NODES
/
rplidarNode (rplidar_ros/rplidarNode)
ROS_MASTER_URI=http://localhost:11311
core service [/rosout] found
process[rplidarNode-1]: started with pid [6476]
RPLIDAR running on ROS package rplidar_ros
SDK Version: 1.5.7
RPLIDAR S/N: ADFFFBF8C5E299F0C4E592F75C2A5B3E
Firmware Ver: 1.15
Hardware Rev: 0
RPLidar health status : 0
^C[rplidarNode-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
and I open new terminal
ubuntu@ubuntu:~$ rosrun rplidar_ros rplidarNodeClient
[rospack] Error: package 'rplidar_ros' not found
and I tried
ubuntu@ubuntu:~$ rviz
Segmentation fault (core dumped)
And ubuntu finally showed new windows and it says "Sorry, the application rviz has stopped unexpectedly. if you notic further problems, try restarting the computer. - send an error report to help fix this problem - ignore future problems of this type "
Finally, I tried this
ubuntu@ubuntu:~/catkin_ws$ roslaunch rplidar_ros rplidar.launch
... logging to /home/ubuntu/.ros/log/687ff54e-e312-11e6-a5f7-0022cffa2d4b/roslaunch-ubuntu-7014.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://ubuntu:54487/
SUMMARY
========
PARAMETERS
* /rosdistro: indigo
* /rosversion: 1.11.20
* /rplidarNode/angle_compensate: True
* /rplidarNode/frame_id: laser
* /rplidarNode/inverted: False
* /rplidarNode/serial_baudrate: 115200
* /rplidarNode/serial_port: /dev/ttyUSB0
NODES
/
rplidarNode (rplidar_ros/rplidarNode)
ROS_MASTER_URI=http://localhost:11311
core service [/rosout] found
process[rplidarNode-1]: started with pid [7032]
RPLIDAR running on ROS package rplidar_ros
SDK Version: 1.5.7
Error, cannot bind to the specified serial port /dev/ttyUSB0.
[rplidarNode-1] process has died [pid 7032, exit code 255, cmd /home/ubuntu/catkin_ws/devel/lib/rplidar_ros/rplidarNode __name:=rplidarNode __log:=/home/ubuntu/.ros/log/687ff54e-e312-11e6-a5f7-0022cffa2d4b/rplidarNode-1.log].
log file: /home/ubuntu/.ros/log/687ff54e-e312-11e6-a5f7-0022cffa2d4b/rplidarNode-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
Asked by sophie.shin on 2017-01-25 10:53:54 UTC
Comments
Please let me know if you need more information about this problem.
Asked by sophie.shin on 2017-01-25 16:56:09 UTC
Duplicate of #q253196.
Asked by gvdhoorn on 2017-01-28 06:58:31 UTC