Skip to content

Commit

Permalink
fix float comparison warning
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <ichen@openrobotics.org>
  • Loading branch information
iche033 committed Oct 3, 2023
1 parent b6f5d22 commit 5fbd8c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Camera_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,12 @@ void CameraTest::IntrinsicMatrix(const std::string &_renderEngine)
EXPECT_DOUBLE_EQ(cameraIntrinsics(1, 2), 120);

// Verify rest of the intrinsics
EXPECT_EQ(cameraIntrinsics(0, 1), 0);
EXPECT_EQ(cameraIntrinsics(1, 0), 0);
EXPECT_EQ(cameraIntrinsics(0, 1), 0);
EXPECT_EQ(cameraIntrinsics(2, 0), 0);
EXPECT_EQ(cameraIntrinsics(2, 1), 0);
EXPECT_EQ(cameraIntrinsics(2, 2), 1);
EXPECT_DOUBLE_EQ(cameraIntrinsics(0, 1), 0);
EXPECT_DOUBLE_EQ(cameraIntrinsics(1, 0), 0);
EXPECT_DOUBLE_EQ(cameraIntrinsics(0, 1), 0);
EXPECT_DOUBLE_EQ(cameraIntrinsics(2, 0), 0);
EXPECT_DOUBLE_EQ(cameraIntrinsics(2, 1), 0);
EXPECT_DOUBLE_EQ(cameraIntrinsics(2, 2), 1);

// Verify that changing camera size changes intrinsics
height = 1000;
Expand Down

0 comments on commit 5fbd8c6

Please sign in to comment.