ros2_usb_camera
ros2_usb_camera copied to clipboard
usb_camera_node.launch.py error
hello. I use ubuntu 20.04, foxy. First of all, thank you for making this package. But when I use
ros2 launch usb_camera_driver usb_camera_node.launch.py
, I get an error. This will only show a black window in the rqt image view. The camera turns on and the coordinates of the markers are displayed, but the camera screen does not turn on. I googled to fix it, but it doesn't work. If you know a solution, please comment.
This is error [usb_camera_driver_node-1] [ WARN:0] global /home/choi/opencv/opencv-4.4.0/modules/videoio/src/cap_gstreamer.cpp (935) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
And attach all the execution results.
choi@choi:~/ros2_aruco$ ros2 launch usb_camera_driver usb_camera_node.launch.py [INFO] [launch]: All log files can be found below /home/choi/.ros/log/2022-08-10-14-52-18-544366-choi-45529 [INFO] [launch]: Default logging verbosity is set to INFO [INFO] [usb_camera_driver_node-1]: process started with pid [45531] [INFO] [static_transform_publisher-2]: process started with pid [45533] [static_transform_publisher-2] [INFO] [1660110738.658691050] [static_transform_publisher_J0tA0KYzc1zi74vc]: Spinning until killed publishing transform from 'world' to 'camera' [usb_camera_driver_node-1] [INFO] [1660110738.734835770] [camera.usb_camera_driver]: camera calibration URL: file:///home/choi/ros2_aruco/install/usb_camera_driver/share/usb_camera_driver/config/0809camera.yaml [usb_camera_driver_node-1] [ WARN:0] global /home/choi/opencv/opencv-4.4.0/modules/videoio/src/cap_gstreamer.cpp (935) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1 ^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT) [usb_camera_driver_node-1] [INFO] [1660110752.784669335] [rclcpp]: signal_handler(signal_value=2) [static_transform_publisher-2] [INFO] [1660110752.784682264] [rclcpp]: signal_handler(signal_value=2) [INFO] [static_transform_publisher-2]: process has finished cleanly [pid 45533] [INFO] [usb_camera_driver_node-1]: process has finished cleanly [pid 45531]