From 863fae2f19ba1d54406b4c722fb758ef814796af Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 14 May 2024 11:58:51 +0200 Subject: [PATCH] Fix tests --- test/BB2B_Test.cc | 3 +++ test/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/BB2B_Test.cc b/test/BB2B_Test.cc index c09bc4c..2e79882 100644 --- a/test/BB2B_Test.cc +++ b/test/BB2B_Test.cc @@ -128,6 +128,7 @@ TEST(BB2B, ObstacleLeft) { Sensor *sensors[] = {sensorLeft, sensorRight}; Perception *perception = new Perception(sensors, 2); + perception->nearbyDistance = 0.2f; DifferentialDrive *propulsion = new DifferentialDrive(motorLeft, motorRight); propulsion->SetDimensions( @@ -229,6 +230,7 @@ TEST(BB2B, ObstacleRight) { Sensor *sensors[] = {sensorLeft, sensorRight}; Perception *perception = new Perception(sensors, 2); + perception->nearbyDistance = 0.2f; DifferentialDrive *propulsion = new DifferentialDrive(motorLeft, motorRight); propulsion->SetDimensions( @@ -328,6 +330,7 @@ TEST(BB2B, ObstacleBoth) { Sensor *sensors[] = {sensorLeft, sensorRight}; Perception *perception = new Perception(sensors, 2); + perception->nearbyDistance = 0.2f; DifferentialDrive *propulsion = new DifferentialDrive(motorLeft, motorRight); propulsion->SetDimensions( diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6af1260..74d5443 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,7 +30,7 @@ target_link_libraries( RoboidControlTest gtest_main RoboidControl - VectorAlgebra + LinearAlgebra ) include(GoogleTest)