For a USB camera, we need to specify the video device we want to use. If your
computer has an internal camera (as many laptops do), it will likely be on
/dev/video0 while an externally attached USB camera will probably be on

/dev/video1 .

Testing your USB Webcam开摄像头

errors:

1、Testing your USB Webcam开摄像头

~/catkin_ws$ roslaunch rbx1_vision usb_cam.launch video_device:=/v/video0

Testing your USB Webcam开摄像头

rbx1的功能包需要在catkin_ws工作空间下,进行工作。而不能在新开的终端下工作。

最后解决了问题。成功开启摄像头。

$ rosrun image_view image_view image:=/camera/rgb/image_raw

NOTE: By default, the usb_cam node publishes the image on the topic
/usb_cam/image_raw . Our launch file usb_cam.launch remaps the topic to
/camera/rgb/image_raw which is the topic used by the openni and freenect launch
files for depth cameras. This way we can use the same code below for either type of
camera.

相关文章:

  • 2021-08-29
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-12-28
  • 2021-07-05
  • 2021-09-29
猜你喜欢
  • 2021-05-01
  • 2021-06-19
  • 2021-11-20
  • 2022-02-09
  • 2022-01-01
  • 2022-01-01
  • 2021-10-28
相关资源
相似解决方案