Main MRPT website > C++ reference for MRPT 1.9.9
PlannerSimple2D.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef PlannerSimple2D_H
10 #define PlannerSimple2D_H
11 
13 #include <mrpt/poses/CPoint2D.h>
14 
15 namespace mrpt
16 {
17 namespace nav
18 {
19 /** \addtogroup nav_planners Path planning
20  * \ingroup mrpt_nav_grp
21  * @{ */
22 
23 /** Searches for collision-free path in 2D occupancy grids for holonomic
24  * circular robots.
25  * The implementation first enlargest obstacles with robot radius, then applies
26  * a
27  * wavefront algorithm to find the shortest free path between origin and target
28  * 2D points.
29  *
30  * Notice that this simple planner does not take into account robot kinematic
31  * constraints.
32  */
34 {
35  public:
36  /** Default constructor */
38  /** Destructor */
39  virtual ~PlannerSimple2D() {}
40  /** The maximum occupancy probability to consider a cell as an obstacle,
41  * default=0.5 */
43 
44  /** The minimum distance between points in the returned found path
45  * (default=0.4); Notice
46  * that full grid resolution is used in path finding, this is only a way
47  * to reduce the
48  * amount of redundant information to be returned.
49  */
51 
52  /** The aproximate robot radius used in the planification. Default is 0.35m
53  */
54  float robotRadius;
55 
56  /** This method compute the optimal path for a circular robot, in the given
57  * occupancy grid map, from the origin location to a target point.
58  * The options and additional parameters to this method can be set with
59  * member configuration variables.
60  *
61  * \param theMap [IN] The occupancy gridmap used to the planning.
62  * \param origin [IN] The starting pose of the robot, in coordinates of
63  * "map".
64  * \param target [IN] The desired target pose for the robot, in
65  * coordinates of "map".
66  * \param path [OUT] The found path, in global coordinates relative
67  * to "map".
68  * \param notFount [OUT] Will be true if no path has been found.
69  * \param maxSearchPathLength [IN] The maximum path length to search for,
70  * in meters (-1 = no limit)
71  *
72  * \sa robotRadius
73  *
74  * \exception std::exception On any error
75  */
76  void computePath(
77  const mrpt::maps::COccupancyGridMap2D& theMap,
78  const mrpt::poses::CPose2D& origin, const mrpt::poses::CPose2D& target,
79  std::deque<mrpt::math::TPoint2D>& path, bool& notFound,
80  float maxSearchPathLength = -1) const;
81 };
82 
83 /** @} */
84 } // End of namespace
85 } // End of namespace
86 
87 #endif
virtual ~PlannerSimple2D()
Destructor.
float robotRadius
The aproximate robot radius used in the planification.
Searches for collision-free path in 2D occupancy grids for holonomic circular robots.
float minStepInReturnedPath
The minimum distance between points in the returned found path (default=0.4); Notice that full grid r...
void computePath(const mrpt::maps::COccupancyGridMap2D &theMap, const mrpt::poses::CPose2D &origin, const mrpt::poses::CPose2D &target, std::deque< mrpt::math::TPoint2D > &path, bool &notFound, float maxSearchPathLength=-1) const
This method compute the optimal path for a circular robot, in the given occupancy grid map...
PlannerSimple2D()
Default constructor.
float occupancyThreshold
The maximum occupancy probability to consider a cell as an obstacle, default=0.5. ...
A class for storing an occupancy grid map.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
Definition: CPose2D.h:40



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019