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)