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

AttributeError: 'AslamCamera object has no attribute 'geometry' #459

Open
Enes1097 opened this issue Aug 24, 2021 · 4 comments
Open

AttributeError: 'AslamCamera object has no attribute 'geometry' #459

Enes1097 opened this issue Aug 24, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@Enes1097
Copy link

Thanks for providing this package, it seems to be very useful-

I was just trying out the Camera-IMU Calibration with a Rolling-Shutter Camera and an IMU, but encountered some problems.
I read through a few issues already talking about calibrating a rolling-shutter camera with an imu instead of a global shutter camera and realized that it's harder to do than it seems. I also tried to implement every hint mentioned in these issues (f.e. minimum exposure time, high fps, slow movements), but it still didn't work.

This is what my system puts out after the starting the calibration:
Kalibr_error1

I suspect that the Corner Detection of the Aprilgrid doesn't work with the images my camera puts out, that's why I attached an example picture from the rosbag here:
1629499935611201156

P.S.: The Camera I'm using is an Azure Kinect DK Camera which makes use of a rational-polynomial distortion model. This model is not supported by kalibr which is why I was using the famous image-proc package to undistorted it and then fill the rosbag with the monochrome undistorted image (/rgb/image_mono) which the image_proc puts out.

If anyone could help me, I would really appreciate it.

@mhyoosefian
Copy link

Hi,

Have you tried calibrating your camera-IMU system, using the global shutter process? Although it is not perfect, it must give you acceptable results.

I faced the error you encountered quite a while ago, but the problem was that some of the images were not recorded successfully, which does not seem to be your case.

Regards

@Enes1097
Copy link
Author

Enes1097 commented Dec 13, 2021

Hi,

Have you tried calibrating your camera-IMU system, using the global shutter process? Although it is not perfect, it must give you acceptable results.

I faced the error you encountered quite a while ago, but the problem was that some of the images were not recorded successfully, which does not seem to be your case.

Regards

Hey,

The only camera that I was able to use in that period of time was the Azure Kinect DK camera, which has a rolling-shutter sensor. That way I couldn't make use of the global shutter process, as you pointed out.

By using this package https://github.com/JzHuai0108/kalibr, a Kalibr ROS-Package for RS-cameras, I did not get this error message and the calculation succeeded.

Cheers

@mhyoosefian
Copy link

Hi,
Have you tried calibrating your camera-IMU system, using the global shutter process? Although it is not perfect, it must give you acceptable results.
I faced the error you encountered quite a while ago, but the problem was that some of the images were not recorded successfully, which does not seem to be your case.
Regards

Hey,

The only camera that I was able to use in that period of time was the Azure Kinect DK camera, which has a rolling-shutter sensor. That way I couldn't make use of the global shutter process, as you pointed out.

By using this package https://github.com/JzHuai0108/kalibr, a Kalibr ROS-Package for RS-cameras, I did not get this error message and the calculation succeeded.

Cheers

Glad to hear that you successfully ran the Kalibr. I have done the calibration using the global-shutter scheme, even though my camera was a rolling-shutter. However, it worked properly.

@jacobly0
Copy link

I also ran into this issue, which happens when you try to use distortion_model: none (in my case I'm trying to run it on already undistorted images), so for anyone else having this issue, the fix is to simply go to aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py and change the one instance of self.camera to self.geometry.

@goldbattle goldbattle added the bug Something isn't working label Apr 22, 2022
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

4 participants