christianrauch / camera_ros

ROS 2 node for libcamera supported cameras (V4L2, Raspberry Pi Camera Modules)
https://libcamera.org
MIT License
68 stars 30 forks source link

Upper limit of ExposureTime is 0 #42

Closed modbas closed 6 months ago

modbas commented 6 months ago

With RPI Global Shutter Camera camera_info/imx296__base_axi_pcie_120000_rp1_i2c_80000_imx296_1a_800x600 the valid ExposureTime range is from min=29 to max=0, so that a parameter change of ExposureTime is not possible.

Debugging CameraNode.cpp:448 shows that info.max() returns 0.

But I could not figure out the issue in libcamera (head of origin/main).

christianrauch commented 6 months ago

Is this a duplicate of https://github.com/christianrauch/camera_ros/issues/33? See if you can reproduce this with rpicam-vid as instructed here: https://github.com/raspberrypi/rpicam-apps/issues/673.

modbas commented 6 months ago

Many thanks. Yes, this is a duplicate. The libcamera patch according to https://github.com/christianrauch/camera_ros/issues/33 fixed this issue. Now this works as expected (even without setting AeEnable):

ros2 param describe /camera ExposureTime

Parameter name: ExposureTime Type: integer Description: Integer32 scalar range {29}..{15534385} Constraints: Min value: 29 Max value: 15534385

I am closing this issue.