Skip to content

Commit

Permalink
Add equidistant distortion model (#160)
Browse files Browse the repository at this point in the history
This is a forward-port from ROS1 noetic:

ros/common_msgs#109

The model is based on the following publication:

J. Kannala and S. Brandt (2006). A Generic Camera Model and Calibration
Method for Conventional, Wide-Angle, and Fish-Eye Lenses, IEEE
Transactions on Pattern Analysis and Machine Intelligence, vol. 28, no.
8, pp. 1335-1340

There are many different names for this distortion model:

* Kannala and Brandt call it "Generic Camera Model". Sometimes they also
  call it "equidistance projection model".
* Kalibr calls it "equidistant": https://github.com/ethz-asl/kalibr/wiki/supported-models
* Camodocal calls it "kannala-brandt": https://github.com/hengli/camodocal
* OpenCV calls it "fisheye": https://stackoverflow.com/a/34309644/3036576

All of these are just different names for the same model.

Signed-off-by: Martin Günther <martin.guenther@dfki.de>
(cherry picked from commit f22c436)
  • Loading branch information
mintar authored and mergify-bot committed Nov 30, 2021
1 parent 151a3eb commit 6115768
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sensor_msgs/include/sensor_msgs/distortion_models.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ namespace distortion_models
{
const char PLUMB_BOB[] = "plumb_bob";
const char RATIONAL_POLYNOMIAL[] = "rational_polynomial";
const char EQUIDISTANT[] = "equidistant";
}
}

Expand Down

0 comments on commit 6115768

Please sign in to comment.