When using the kalibr tool to calibrate the ZED binocular camera, it prompts that april_6x6_50x50cm.yaml cannot be read.

asked 2020-09-29 03:33:32 -0500

xdj gravatar image

I use the command: rosrun kalibr kalibr_calibrate_cameras --bag /home/catkin_ws_xdj/data/zed_01.bag --topics /img_left /img_right --models pinhole-equi pinhole-radtan --target /home/catkin_ws_xdj/data/april_6x6_50x50cm.yaml

But at the end an error was reported when running: Traceback (most recent call last): File "/home/kaka/catkin_ws_xdj/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 447, in <module> main() File "/home/kaka/catkin_ws_xdj/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 152, in main targetConfig = kc.CalibrationTargetParameters(parsed.targetYaml) File "/home/kaka/catkin_ws_xdj/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 529, in __init__ ParametersBase.__init__(self, yamlFile, "CalibrationTargetConfig", createYaml) File "/home/kaka/catkin_ws_xdj/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 200, in __init__ self.data = self.readYaml() File "/home/kaka/catkin_ws_xdj/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 211, in readYaml self.raiseError( "Could not read configuration from {0}".format(self.yamlFile) ) File "/home/kaka/catkin_ws_xdj/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 234, in raiseError raise RuntimeError( "{0}{1}".format(header, message) ) RuntimeError: [CalibrationTargetConfig Reader]: Could not read configuration from /home/catkin_ws_xdj/data/april_6x6_50x50cm.yaml

I have checked that there is no problem with the file name and path. I hope someone helps me solve this problem。

edit retag flag offensive close merge delete