12 #include <gtest/gtest.h> 14 TEST(NavTests, NavGeomUtils_collision_straight_circ_robot)
63 EXPECT_NEAR(colDist, 0.5, 1e-6);
69 EXPECT_NEAR(colDist, 0.01, 3e-3);
79 EXPECT_NEAR(colDist, std::sqrt(5.0)-0.5, 1e-6);
This base provides a set of functions for maths stuff.
TEST(NavTests, NavGeomUtils_collision_straight_circ_robot)
bool NAV_IMPEXP 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, for a circular robot, and a point obstacle (ox,oy).
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.