Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Jun 28, 2024
1 parent d6ff3d5 commit 5df10a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/gpu_rays.cc
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ TEST_F(GpuRaysTest, GZ_UTILS_TEST_DISABLED_ON_WIN32(SingleRay))
int mid = 0;
double unitBoxSize = 1.0;
double expectedRangeAtMidPointBox = testPose.Pos().Z() -
(abs(box01Pose.Pos().Z()) + unitBoxSize/2);
(std::abs(box01Pose.Pos().Z()) + unitBoxSize / 2);

// ray should detect box
EXPECT_NEAR(scan[mid], expectedRangeAtMidPointBox, LASER_TOL);
Expand All @@ -764,7 +764,7 @@ TEST_F(GpuRaysTest, GZ_UTILS_TEST_DISABLED_ON_WIN32(SingleRay))
visualBox1->SetWorldPosition(newBox01Pose.Pos());
gpuRays->Update();
expectedRangeAtMidPointBox = testPose.Pos().Z() -
(abs(newBox01Pose.Pos().Z()) + unitBoxSize/2);
(std::abs(newBox01Pose.Pos().Z()) + unitBoxSize / 2);
EXPECT_NEAR(scan[mid], expectedRangeAtMidPointBox, LASER_TOL);

c.reset();
Expand Down

0 comments on commit 5df10a0

Please sign in to comment.