Skip to content

Commit

Permalink
Added a comment
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Nov 30, 2022
1 parent b1cd55d commit f4b7753
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CameraSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ bool CameraSensor::CreateCamera()
cameraSdf->SetLensIntrinsicsCy(intrinsicMatrix(1, 2));
}

// Update the DOM object intrinsics to have consistent
// projection matrix values between ogre camera and camera_info msg
// If these values are not defined in the SDF then we need to update
// these values to something reasonable. The projection matrix is
// the cumulative effect of intrinsic and extrinsic parameters
if(!cameraSdf->HasLensProjection())
{
auto intrinsicMatrix =
Expand Down

0 comments on commit f4b7753

Please sign in to comment.