image_pipeline icon indicating copy to clipboard operation
image_pipeline copied to clipboard

image_view and camera_calibration not working for gazebo camera

Open Kaiser-Wang opened this issue 3 years ago • 3 comments

Hi, I'm using image_view and camera_calibration to preview and calibrate my webcam and they worked really well. However, when I used them for a simulated gazebo camera with a published topic /camera/image_raw, it didn't work. I used the following command to view /camera/image_raw topic: ros2 run image_view image_view --ros-args --remap image:=/camera/image_raw and it printed the following line but didn't open up the preview window: [INFO] [1620803840.239610932] [image_view_node]: Using transport "raw" Same thing happened for the camera calibration: ros2 run camera_calibration cameracalibrator --size 9x6 --square 0.025 --ros-args image:=/camera/image_raw which returns Waiting for service camera/set_camera_info ... OK Waiting for service left_camera/set_camera_info ... OK Waiting for service right_camera/set_camera_info ... OK Again, it didn't open up the calibration window. I tested this with my webcam and it worked properly. I built the image_pipeline package with ros2 branch from source. I'm using Ubuntu 20.04 and ROS2 foxy. Thank you.

Kaiser-Wang avatar May 12 '21 07:05 Kaiser-Wang

Facing a similar behavior. Did you resolve your problem?

bastianhjaeger avatar Sep 20 '21 10:09 bastianhjaeger

add the flag --no-service-check

chinitaberrio avatar Oct 08 '21 06:10 chinitaberrio

To make it work for gazebo camera, you can try to modify QoS profile applied to the image subscriber from reliable to best effort in camera_calibrator.py source code, and then build it again.

Kaiser-Wang avatar Oct 13 '21 00:10 Kaiser-Wang

Looks like this is a QoS mismatch - we're going to clobber these in https://github.com/ros-perception/image_pipeline/issues/847

mikeferguson avatar Jan 17 '24 23:01 mikeferguson