10 #include <gtest/gtest.h> 14 #include <test_mrpt_common.h> 16 TEST(PlannerSimple2D, findPath)
20 const auto fil = mrpt::UNITTEST_BASEDIR +
21 "/share/mrpt/datasets/2006-MalagaCampus.gridmap.gz"s;
37 std::deque<mrpt::math::TPoint2D> thePath;
40 pathPlanning.
computePath(gridmap, origin, target, thePath, notFound);
42 EXPECT_FALSE(notFound);
50 std::deque<mrpt::math::TPoint2D> thePath;
54 gridmap, origin, target, thePath, notFound,
57 EXPECT_FALSE(notFound);
66 std::deque<mrpt::math::TPoint2D> thePath;
70 gridmap, origin, target, thePath, notFound,
77 std::deque<mrpt::math::TPoint2D> thePath;
81 gridmap, origin, target, thePath, notFound,
EXPECT_TRUE(mrpt::system::fileExists(ini_fil))
float robotRadius
The aproximate robot radius used in the planification.
Searches for collision-free path in 2D occupancy grids for holonomic circular robots.
void computePath(const mrpt::maps::COccupancyGridMap2D &theMap, const mrpt::poses::CPose2D &origin, const mrpt::poses::CPose2D &target, std::deque< mrpt::math::TPoint2D > &path, bool ¬Found, float maxSearchPathLength=-1) const
This method compute the optimal path for a circular robot, in the given occupancy grid map...
CArchiveStreamBase< STREAM > archiveFrom(STREAM &s)
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream, std::istream, std::ostream, std::stringstream.
double x() const
Common members of all points & poses classes.
A class for storing an occupancy grid map.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)
EXPECT_NEAR(out.cam_params.rightCameraPose.x, 0.1194, 0.005)
TEST(PlannerSimple2D, findPath)