diff --git a/source/RobotAPI/components/units/ObstacleAvoidingPlatformUnit/ObstacleAvoidingPlatformUnit.cpp b/source/RobotAPI/components/units/ObstacleAvoidingPlatformUnit/ObstacleAvoidingPlatformUnit.cpp index 42fa56ee1e3a3e2be0bfef7c32b2f035648528bc..3166408f4190460632625b1739066112fd1d2965 100644 --- a/source/RobotAPI/components/units/ObstacleAvoidingPlatformUnit/ObstacleAvoidingPlatformUnit.cpp +++ b/source/RobotAPI/components/units/ObstacleAvoidingPlatformUnit/ObstacleAvoidingPlatformUnit.cpp @@ -586,7 +586,7 @@ bool armarx::ObstacleAvoidingPlatformUnit::is_near_target(const Eigen::Vector2f& const float sim = simox::math::cosine_similarity(target_direction, control_direction); // if almost pointing into same direction - if (sim > cos(M_PI_4f)) + if (sim > cos(M_PI_4)) { return true; } diff --git a/source/RobotAPI/components/units/ObstacleAwarePlatformUnit/ObstacleAwarePlatformUnit.cpp b/source/RobotAPI/components/units/ObstacleAwarePlatformUnit/ObstacleAwarePlatformUnit.cpp index e8f44acff3decfba5d69325f0c772718808734eb..d18722607d92879c22184fd8afc06a5ed0fa9bb9 100644 --- a/source/RobotAPI/components/units/ObstacleAwarePlatformUnit/ObstacleAwarePlatformUnit.cpp +++ b/source/RobotAPI/components/units/ObstacleAwarePlatformUnit/ObstacleAwarePlatformUnit.cpp @@ -564,7 +564,7 @@ const noexcept const float sim = simox::math::cosine_similarity(target_direction, control_direction); // if almost pointing into same direction - if (sim > cos(M_PI_4f)) + if (sim > cos(M_PI_4)) { return true; }