问题描述
在使用ROS启动usb_cam
包的usb_cam-test.launch
时,
$ roslaunch usb_cam usb_cam-test.launch
出现以下错误
[usb_cam-2] process has died [pid 6064, exit code -11, cmd /opt/ros/kinetic/lib/usb_cam/usb_cam_node __name:=usb_cam __log:=/home/ubuntu/.ros/log/50cba4e8-5eb1-11ea-b33c-080027ffdb07/usb_cam-2.log].
log file: /home/ubuntu/.ros/log/50cba4e8-5eb1-11ea-b33c-080027ffdb07/usb_cam-2*.log
解决方法
$ cd ~/catkin_ws/src
$ git clone https://github.com/bosch-ros-pkg/usb_cam.git
$ cd ~/catkin_ws
$ catkin_make
$ cd ~/catkin_ws/src/usb_cam/launch
$roslaunch usb_cam-test.launch
其他相关问题
1、首先要保证usb摄像头已经连接,查看有没有video0
$ls /dev
2、[ERROR] [1582880044.882793093]: select timeout
解决这个问题需要在虚拟机上设置usb为3.0兼容模式,提供两中虚拟机的设置方式: