12 #include <gtest/gtest.h>
14 TEST(NavTests, NavGeomUtils_collision_straight_circ_robot)
27 p0, p1,
R, pObs, colDist);
34 p0, p1,
R, pObs, colDist);
41 p0, p1,
R, pObs, colDist);
48 p0, p1,
R, pObs, colDist);
55 p0, p1,
R, pObs, colDist);
67 p0, p1,
R, pObs, colDist);
69 EXPECT_NEAR(colDist, 0.5, 1e-6);
74 p0, p1,
R, pObs, colDist);
76 EXPECT_NEAR(colDist, 0.01, 3e-3);
87 EXPECT_NEAR(colDist, std::sqrt(5.0) - 0.5, 1e-6);
bool collision_free_dist_segment_circ_robot(const mrpt::math::TPoint2D &p_start, const mrpt::math::TPoint2D &p_end, const double robot_radius, const mrpt::math::TPoint2D &obstacle, double &out_col_dist)
Computes the collision-free distance for a linear segment path between two points,...
This base provides a set of functions for maths stuff.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
TEST(NavTests, NavGeomUtils_collision_straight_circ_robot)