Skip to content

Commit 34b648d

Browse files
committed
add note about pincusion model
1 parent 783e841 commit 34b648d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

camera_distortion/tutorial.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
Cameras lenses typically exhibit some degree of optical distortions, which result in warping of images. An example is a fisheye camera that is commonly used in robotics applications to obtain a wider field of view of the environment for object recognition or navigation tasks.
44

5-
Using camera calibration tools such as Matlab or OpenCV, it is possible to extract distortion coefficients along with other camera intrinsic parameters. With these distortion coefficient, users can now create a distorted camera sensor in Gazebo.
5+
Using camera calibration tools such as Matlab or OpenCV, it is possible to extract distortion coefficients along with other camera intrinsic parameters. With these distortion coefficient, users can now create distorted camera sensor image data in Gazebo.
66

77
## Current Implementation
88

99
Gazebo currently supports simulation of camera based on the [Brown's distortion model](http://en.wikipedia.org/wiki/Distortion_(optics)#Software_correction). It expects 5 distortion coefficients `k1`, `k2`, `k3`, `p1`, `p2` that you can get from the camera calibration tools. The `k` coefficients are the radial components of the distortion model, while the `p` coefficients are the tangential components.
1010

1111
There are a few limitations with the current implementation that needs to be taken into account:
1212

13-
1. Only barrel distortion is supported at the moment, which typically has a negative `k1` value.
13+
1. In Gazebo versions 5 and 6, only barrel distortion is supported, which typically has a negative `k1` value. Pincushion model is added in Gazebo 7.
1414

1515
1. Distortion is applied to the camera image texture. This means taking the generated image data and just warping it. This has the caveat that the final image (especially at the corners) has a narrower field of view than a real camera lens with barrel distortion. One workaround to compensate for this effect is to increase the field of view of the camera sensor in Gazebo.
1616

0 commit comments

Comments
 (0)