Open abaeyens-imod opened 3 days ago
Did you use the Luxonis ROS package for calibrating? You can also get the calibration data from the depthai SDK using the calibrate.py file. It will save a file of calibration data if used correctly.
Did you use the Luxonis ROS package for calibrating?
This is with the factory calibrations published on the *camera_info
topics. I'll edit the initial post to clarify this.
I am not associated with Luxonis. I am just trying to help you. Are you using a FFC board? If you calibrate using the file I suggested, then that code will flash the device memory, I think, and the ROS messages will show the updated calibration data.
Check if issue already exists Here's the same issue on the Luxonis forum.
Describe the bug Applying the factory calibration published in the CameraInfo message does not deliver sensible results. Recalibrating the camera using standard tools resulted in a very different calibration which does work, but preferably we would like to use what gets published on the camera_info topics.
Minimal Reproducible Example Here's an MRE, including a bag file. It uses a marker detection library to generate a set of 3D points from the right camera image and then projects these back onto image space for all three cameras.
Key code used for projecting 3D points to image coordinates using the Luxonis calibration:
Expected behavior The centers of the red circles align with the fiducial marker centers in all three images in the screenshot below.
Observed behavior The centers align in the image of the right camera, indicating that the projections of the made node (see the linked MRE code) match those of the marker detection library. This is good. However, the centers don't align in the images of the left and the rgb camera, indicating a severe calibration (interpretation) issue.
Screenshots![image](https://github.com/luxonis/depthai-ros/assets/107043154/d980bf95-01fe-4983-bb42-f4cddd66618c)
Pipeline Graph Standard pipeline
RGBStereo
.Attach system log
depthai-ros
built from source or installed from apt? Occurs with bothdepthai/depthai-core
library installed from rosdep or manually? For rosdep install, check ifros-<rosdistro>-depthai
package is installed, manual install can be checked withldconfig -p | grep depthai
. ros-noetic-depthai is installedapt show ros-$ROS_DISTRO-depthai ros-$ROS_DISTRO-depthai-ros ros-$ROS_DISTRO-depthai-bridge ros-$ROS_DISTRO-depthai-ros-msgs ros-$ROS_DISTRO-depthai-ros-driver
DEPTHAI_DEBUG=1
and paste the logs, either from command line or from latest log in~/.ros/log
Additional context Thanks for taking your time to look into this.