Skip to content

Commit

Permalink
Merge pull request #347 from agri-gaia/bug/conversionDistortionNotSet
Browse files Browse the repository at this point in the history
set distortion to 0 if not set
  • Loading branch information
Mark-Niemeyer authored Dec 19, 2023
2 parents d7e82e6 + 9729858 commit 793129c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,10 @@ flatbuffers::Offset<seerep::fb::CameraIntrinsics> toFlat(const sensor_msgs::Came
{
distortion.push_back(d);
}
if (distortion.size() == 0)
{
distortion.push_back(0.0);
}
auto distortionVector = builder.CreateVector(distortion);

std::vector<double> intrinsicMatrix;
Expand Down

0 comments on commit 793129c

Please sign in to comment.