Main MRPT website > C++ reference
MRPT logo
CPathPlanningMethod.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-2015, 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 CPathPlanningMethod_H
10 #define CPathPlanningMethod_H
11 
14 #include <mrpt/poses/CPoint2D.h>
15 
16 #include <mrpt/nav/link_pragmas.h>
17 
18 namespace mrpt
19 {
20 namespace nav
21 {
22  /** A virtual base class for computing the optimal path for a robot
23  * from a origin location to a target point. See derived classes for
24  * implementations.
25  *
26  * \sa CDebugOutputCapable \ingroup mrpt_nav_grp
27  */
29  {
30  public:
31  /** Default constructor
32  */
34 
35  /** Destructor
36  */
38  {
39  }
40 
41  /** The maximum occupancy probability to consider a cell as an obstacle, default=0.5
42  */
44 
45  /** The minimum distance between points in the returned found path (default=0.4); Notice
46  * that full grid resolution is used in path finding, this is only a way to reduce the
47  * amount of redundant information to be returned.
48  */
50 
51  /** This method compute the optimal path for a circular robot, in the given
52  * occupancy grid map, from the origin location to a target point.
53  * The options and additional parameters to this method can be set with
54  * member configuration variables.
55  *
56  * \param map [IN] The occupancy gridmap used to the planning.
57  * \param origin [IN] The starting pose of the robot, in coordinates of "map".
58  * \param target [IN] The desired target pose for the robot, in coordinates of "map".
59  * \param path [OUT] The found path, in global coordinates relative to "map".
60  * \param notFound [OUT] Will be true if no path has been found.
61  * \param maxSearchPathLength [IN] The maximum path length to search for, in meters (-1 = no limit)
62  *
63  * \exception std::exception On any error
64  */
65  virtual void computePath(
66  const mrpt::maps::COccupancyGridMap2D &theMap,
67  const mrpt::poses::CPose2D &origin,
68  const mrpt::poses::CPose2D &target,
69  std::deque<mrpt::math::TPoint2D> &path,
70  bool &notFound,
71  float maxSearchPathLength = -1
72  ) const = 0;
73 
74  };
75 
76  } // End of namespace
77 } // End of namespace
78 
79 #endif
A virtual base class for computing the optimal path for a robot from a origin location to a target po...
float occupancyThreshold
The maximum occupancy probability to consider a cell as an obstacle, default=0.5. ...
virtual ~CPathPlanningMethod()
Destructor.
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.
Definition: CPose2D.h:36
float minStepInReturnedPath
The minimum distance between points in the returned found path (default=0.4); Notice that full grid r...
This base class provides a common printf-like method to send debug information to std::cout...



Page generated by Doxygen 1.8.9.1 for MRPT 1.3.0 SVN: at Sun Sep 13 03:55:12 UTC 2015