Closed kaichie closed 10 months ago
Hi, camera.i_external_calibration_path
works only with .json calibration files that are generated with Depthai calibration. To load ROS calibration (.yaml), you should use parameter for specific sensor, let's say left.i_calibration_file. As for converting between formats, it's on the roadmap, not sure on the exact ETA yet.
Closing due to inactivity, please reopen if there are still questions.
Describe the bug Unable to use external calibrated file by providing the path to
i_external_calibration_path
.Minimal Reproducible Example Minimal reproducible branch with
ros2 launch depthai_ros_driver camera.launch.py
using the default generated calibration file bycamera_calibration
.Expected behavior [ERROR 1689360746.952714966] [oak_container]: Component constructor threw an exception: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: 'i' (on_load_node() at ./src/component_manager.cpp:278)
Additional context It works with the
calib_xxx.json
file that is dumped by the example scriptQuestion: For short term, is it possible to convert the calibrated
rgb.yaml
,left.yaml
andright.yaml
to the expectedcalib_xxx.json
format?