Ask Your Question

chikichiki's profile - activity

2017-04-04 10:01:03 -0500 received badge  Notable Question (source)
2016-12-26 03:31:59 -0500 received badge  Popular Question (source)
2016-10-14 09:54:42 -0500 asked a question problem of camera of SLAM when using ROS

i am totally new to ROS and SLAM ,just started this like 2 weeks ago.i am using ubuntu 14.04 + ROS indigo

my problem is that.when i am using ROS to launch the SLAM software.I type in

 rosrun lsd_slam_core live_slam /image:=image_raw _calib:=<your path>/LSD_room/cameraCalibration.cfg

and the laptop always want to launch the internal camera(video0),but actually i want to use the external camera (Logitech C920)(video1).what i want to do is that i want to deactivate the internal camera.so i type in

sudo rm /dev/video0

to deactivate the internal camera and i had only one external camera now.after that i tried again the

rosrun lsd_slam_core live_slam /image:=image_raw _calib:=<your path>/LSD_room/cameraCalibration.cfg

now came something weird.

yukan@yukan-TP300LA:~/rosbuild_ws/package_dir$ ls /dev/video*
/dev/video1
yukan@yukan-TP300LA:~/rosbuild_ws/package_dir$ rosrun uvc_camera
uvc_camera_node device:=/dev/video1

[ INFO] [1476452216.489423243]: using default calibration URL
[ INFO] [1476452216.489512363]: camera calibration URL:
file:///home/yukan/.ros/camera_info/camera.yaml
[ INFO] [1476452216.489588606]: Unable to open camera calibration file
[/home/yukan/.ros/camera_info/camera.yaml]
[ WARN] [1476452216.489615448]: Camera calibration file
/home/yukan/.ros/camera_info/camera.yaml not found.
opening /dev/video0
terminate called after throwing an instance of 'std::runtime_error'
  what():  couldn't open /dev/video0
Aborted (core dumped)

I take a close look at the response ,it seems to me that the ROS was always trying to communicate with video0,am I the only one who has feeling like this? but i need it to be video1 for god sake. I am totally newbee and anyhelp will be really appreciated.