Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cameras are not connected through mutual observations #332

Closed
ns15417 opened this issue Dec 7, 2019 · 4 comments
Closed

Cameras are not connected through mutual observations #332

ns15417 opened this issue Dec 7, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@ns15417
Copy link

ns15417 commented Dec 7, 2019

when running kalibr_calibrate_cameras i encountered a problem which is listed below:
`timestamp cam0 cam1
1575683268.01 84 -
1575683268.06 - 56
1575683268.27 108 -
1575683268.32 - 71
1575683268.81 - 72
1575683269.02 52 -
1575683269.07 - 71
1575683269.26 103 -
1575683269.32 - 123
1575683269.51 108 -
1575683269.56 - 101
1575683269.77 124 -

Cameras are not connected through mutual observations, please check the dataset. Maybe adjust the approx. sync. tolerance.
Traceback (most recent call last):
File "/home/shinan/Project/kalibr_workspace/devel/bin/kalibr_calibrate_cameras", line 15, in
exec(compile(fh.read(), python_script, 'exec'), context)
File "/home/shinan/Project/kalibr_workspace/src/kalibr-master/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 447, in
main()
File "/home/shinan/Project/kalibr_workspace/src/kalibr-master/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 204, in main
graph.plotGraph()
File "/home/shinan/Project/kalibr_workspace/src/kalibr-master/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/MulticamGraph.py", line 308, in plotGraph
edge_label=self.G.es["weight"],
KeyError: 'Attribute does not exist'
`
above is part of the log, I am not sure what is the exact reason of this bug, but according to the bold log, it is said that the cameras are not synchronous. i guess the reason must be that i set my camera frame rate to 4HZ which leads to the two cameras cannot get images at the same time. I think the timestamp also tells the same thing.

I solved this by changing the frame rate of both cameras to 20HZ.
Just list this here, if anyone have other explanation please tell me.

@kannidekan
Copy link

execuse me, do you know how could i get the IMU YAML file of the requirements in the camera-imu calibration? #341

Thanks very much!

@AbnerCSZ
Copy link

Comment this code on line 201 of src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras to solve your problem:

    if not graph.isGraphConnected():
        obsdb.printTable()
        print "Cameras are not connected through mutual observations, please check the dataset. Maybe adjust the approx. sync. tolerance."
        graph.plotGraph()
        sys.exit(-1)

@huonggiangdhtn
Copy link

@ns15417 thank you, I had the same propblem, and I changed to 20Hz, it is ok. But I got error at plotGraph

@goldbattle goldbattle added the bug Something isn't working label Apr 28, 2022
@goldbattle
Copy link
Collaborator

goldbattle commented Apr 28, 2022

Please try PR #515 to see if you still get this issue. If so, please provide a bag file this fails on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants