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-2018, 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::nav
16 {
17 /** \addtogroup nav_planners Path planning
18  * \ingroup mrpt_nav_grp
19  * @{ */
20 
21 /** Searches for collision-free path in 2D occupancy grids for holonomic
22  * circular robots.
23  * The implementation first enlargest obstacles with robot radius, then applies
24  * a
25  * wavefront algorithm to find the shortest free path between origin and target
26  * 2D points.
27  *
28  * Notice that this simple planner does not take into account robot kinematic
29  * constraints.
30  */
32 {
33  public:
34  /** Default constructor */
36  /** Destructor */
37  virtual ~PlannerSimple2D() {}
38  /** The maximum occupancy probability to consider a cell as an obstacle,
39  * default=0.5 */
41 
42  /** The minimum distance between points in the returned found path
43  * (default=0.4); Notice
44  * that full grid resolution is used in path finding, this is only a way
45  * to reduce the
46  * amount of redundant information to be returned.
47  */
49 
50  /** The aproximate robot radius used in the planification. Default is 0.35m
51  */
52  float robotRadius;
53 
54  /** This method compute the optimal path for a circular robot, in the given
55  * occupancy grid map, from the origin location to a target point.
56  * The options and additional parameters to this method can be set with
57  * member configuration variables.
58  *
59  * \param theMap [IN] The occupancy gridmap used to the planning.
60  * \param origin [IN] The starting pose of the robot, in coordinates of
61  * "map".
62  * \param target [IN] The desired target pose for the robot, in
63  * coordinates of "map".
64  * \param path [OUT] The found path, in global coordinates relative
65  * to "map".
66  * \param notFount [OUT] Will be true if no path has been found.
67  * \param maxSearchPathLength [IN] The maximum path length to search for,
68  * in meters (-1 = no limit)
69  *
70  * \sa robotRadius
71  *
72  * \exception std::exception On any error
73  */
74  void computePath(
75  const mrpt::maps::COccupancyGridMap2D& theMap,
76  const mrpt::poses::CPose2D& origin, const mrpt::poses::CPose2D& target,
77  std::deque<mrpt::math::TPoint2D>& path, bool& notFound,
78  float maxSearchPathLength = -1) const;
79 };
80 
81 /** @} */
82 }
83 #endif
84 
85 
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.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
Definition: CPose2D.h:38



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020