Skip to content

Commit

Permalink
Links to issues
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Apr 20, 2021
1 parent b19074b commit 8c2a952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/gpu_lidar_sensor_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ void GpuLidarSensorTest::TestThreeBoxes(const std::string &_renderEngine)
EXPECT_NEAR(sensor1->Range(0), expectedRangeAtMidPointBox2, LASER_TOL);
EXPECT_NEAR(sensor1->Range(mid), expectedRangeAtMidPointBox1, LASER_TOL);
#ifndef __APPLE__
// See https://github.com/ignitionrobotics/ign-sensors/issues/66
EXPECT_DOUBLE_EQ(sensor1->Range(last), ignition::math::INF_D);
#endif

Expand Down Expand Up @@ -655,6 +656,7 @@ void GpuLidarSensorTest::VerticalLidar(const std::string &_renderEngine)
double expectedRange = expectedRangeAtMidPoint / cos(angleStep);

#ifndef __APPLE__
// See https://github.com/ignitionrobotics/ign-sensors/issues/66
EXPECT_NEAR(sensor->Range(i * horzSamples + mid),
expectedRange, VERTICAL_LASER_TOL);
#endif
Expand Down Expand Up @@ -795,13 +797,15 @@ void GpuLidarSensorTest::ManualUpdate(const std::string &_renderEngine)
EXPECT_DOUBLE_EQ(sensor1->Range(0), ignition::math::INF_D);
EXPECT_NEAR(sensor1->Range(mid), expectedRangeAtMidPointBox1, LASER_TOL);
#ifndef __APPLE__
// See https://github.com/ignitionrobotics/ign-sensors/issues/66
EXPECT_DOUBLE_EQ(sensor1->Range(last), ignition::math::INF_D);
#endif

// Sensor 2 should see box01 to the right of it
EXPECT_NEAR(sensor2->Range(0), expectedRangeAtMidPointBox1, LASER_TOL);
EXPECT_DOUBLE_EQ(sensor2->Range(mid), ignition::math::INF_D);
#ifndef __APPLE__
// See https://github.com/ignitionrobotics/ign-sensors/issues/66
EXPECT_DOUBLE_EQ(sensor2->Range(last), ignition::math::INF_D);
#endif

Expand Down
2 changes: 2 additions & 0 deletions test/integration/rgbd_camera_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ void RgbdCameraSensorTest::ImagesWithBuiltinSDF(
EXPECT_EQ(0u, mr);
EXPECT_EQ(0u, mg);
#ifndef __APPLE__
// See https://github.com/ignitionrobotics/ign-sensors/issues/66
EXPECT_GT(mb, 0u);
#endif

Expand Down Expand Up @@ -439,6 +440,7 @@ void RgbdCameraSensorTest::ImagesWithBuiltinSDF(
EXPECT_EQ(0u, mr);
EXPECT_EQ(0u, mg);
#ifndef __APPLE__
// See https://github.com/ignitionrobotics/ign-sensors/issues/66
EXPECT_GT(mb, 0u);
#endif

Expand Down

0 comments on commit 8c2a952

Please sign in to comment.