Skip to content

Commit

Permalink
Fix after update to main
Browse files Browse the repository at this point in the history
  • Loading branch information
szylis committed Jul 19, 2024
1 parent ef541e0 commit 9973f98
Show file tree
Hide file tree
Showing 2 changed files with 426 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Assets/Tests/PlayMode/Sensors/SensorsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private void LidarOutputRestrictionTestSetup(RGLUnityPlugin.LidarSensor lidarSen
/// <summary>
/// Test Outline:
/// - Validate the simulation of the LiDAR.
/// - LiDAR sensor is placed inside a 5m radius sphere.
/// - LiDAR sensor placed inside 4 walls.
/// Test Target:
/// - Verify that the LiDAR is publishing the correct number of messages for the specified time.
/// Expected Result:
Expand All @@ -190,14 +190,16 @@ private void LidarOutputRestrictionTestSetup(RGLUnityPlugin.LidarSensor lidarSen
[UnityTest]
public IEnumerator LiDAR()
{
string testScenario = "LidarVLP16_Sphere5m";
string testScenario = "LidarVLP16_Walls";
yield return SetupEnvironment(testScenario);
yield return new WaitForFixedUpdate();

RGLUnityPlugin.LidarSensor lidarSensor = GameObject.FindObjectOfType<RGLUnityPlugin.LidarSensor>();
Assert.NotNull(lidarSensor);

LidarOutputRestrictionTestSetup(lidarSensor);

// Subscribe LiDAR output validation
lidarSensor.onNewData += OnNewLidarData;

RglLidarPublisher lidarRos2Publisher = lidarSensor.GetComponent<RglLidarPublisher>();
Expand Down
Loading

0 comments on commit 9973f98

Please sign in to comment.