Skip to content

Commit

Permalink
Fix boundingbox_camera integration test (#443)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Jul 4, 2024
1 parent 410a999 commit ad95288
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/BoundingBoxCameraSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,13 @@ bool BoundingBoxCameraSensor::CreateCamera()
this->AddSensor(this->dataPtr->boundingboxCamera);
this->AddSensor(this->dataPtr->rgbCamera);

// use a copy so we do not modify the original sdfCamera
// when updating bounding box camera
auto sdfCameraCopy = *sdfCamera;
this->UpdateLensIntrinsicsAndProjection(this->dataPtr->rgbCamera,
*sdfCamera);
sdfCameraCopy);
this->UpdateLensIntrinsicsAndProjection(this->dataPtr->boundingboxCamera,
*sdfCamera);

// Camera Info Msg
this->PopulateInfo(sdfCamera);

Expand Down

0 comments on commit ad95288

Please sign in to comment.