-
Notifications
You must be signed in to change notification settings - Fork 104
Closed
Labels
Description
It seems that most (all) camera principal point coordinates in model.sdf
files and consequently in sensor_msgs/CameraInfo
are off by 1. For example, 640x480 VGA RGBD camera has principal point set to (320.5, 240.5). Assuming the lowest pixel coordinates of (0, 0), principal point (geometric center of image sensor) of this camera is (319.5, 239.5). It is given by (width/2-0.5, height/2-0.5)
equation not ((width+1)/2, (height+1)/2)
used in model.sdf
file.
Theoretically, the principal point can be placed anywhere on image sensor plane, but I'm assuming that your intention was to place it centrally to achieve a symmetric pinhole camera model.
zbynekwinkler