You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,when use kalibr_calibrate_cameras, there is an err like this:
sycon@Sycon:~/kalibr_ws$ kalibr_calibrate_cameras --bag fisheye_calibra.bag --topics /left --models pinhole-radtan --target april_3x2_5cm_A1.yaml
importing libraries
Initializing cam0:
Camera model: pinhole-radtan
Dataset: fisheye_calibra.bag
Topic: /left
Number of images: 191
Traceback (most recent call last):
File "/home/sycon/kalibr_ws/devel/bin/kalibr_calibrate_cameras", line 15, in
exec(compile(fh.read(), python_script, 'exec'), context)
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 447, in
main()
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 172, in main
cam = kcc.CameraGeometry(cameraModel, targetConfig, dataset, verbose=(parsed.verbose or parsed.showextraction))
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraCalibrator.py", line 47, in init
self.ctarget = TargetDetector(targetConfig, self.geometry, showCorners=verbose, showReproj=verbose)
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraCalibrator.py", line 80, in init
targetParams = targetConfig.getTargetParams()
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 186, in func
return f(*args, **kwargs)
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 610, in getTargetParams
errList.append("invalid tagRows (int>=3)")
NameError: global name 'errList' is not defined
Can anyone tell me why it happened and how to solve it.
Thanks!
The text was updated successfully, but these errors were encountered:
I am not very understand, but I am glad that I have solved the problem, my Ubuntu system is 18.04, should be related to the installation problems, must adapt to their own system, if you are 18.04 system, can follow this tutorial to do :https://blog.csdn.net/ndwonduosk_/article/details/124718186?spm=1001.2014.3001.5506
18.04Do not use the catkin _ make command
Hello,when use kalibr_calibrate_cameras, there is an err like this:
sycon@Sycon:~/kalibr_ws$ kalibr_calibrate_cameras --bag fisheye_calibra.bag --topics /left --models pinhole-radtan --target april_3x2_5cm_A1.yaml
importing libraries
Initializing cam0:
Camera model: pinhole-radtan
Dataset: fisheye_calibra.bag
Topic: /left
Number of images: 191
Traceback (most recent call last):
File "/home/sycon/kalibr_ws/devel/bin/kalibr_calibrate_cameras", line 15, in
exec(compile(fh.read(), python_script, 'exec'), context)
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 447, in
main()
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 172, in main
cam = kcc.CameraGeometry(cameraModel, targetConfig, dataset, verbose=(parsed.verbose or parsed.showextraction))
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraCalibrator.py", line 47, in init
self.ctarget = TargetDetector(targetConfig, self.geometry, showCorners=verbose, showReproj=verbose)
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraCalibrator.py", line 80, in init
targetParams = targetConfig.getTargetParams()
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 186, in func
return f(*args, **kwargs)
File "/home/sycon/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 610, in getTargetParams
errList.append("invalid tagRows (int>=3)")
NameError: global name 'errList' is not defined
Can anyone tell me why it happened and how to solve it.
Thanks!
The text was updated successfully, but these errors were encountered: