Main MRPT website > C++ reference
MRPT logo
CPathPlanningCircularRobot.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 CPathPlanningCircularRobot_H
10 #define CPathPlanningCircularRobot_H
11 
13 #include <mrpt/nav/link_pragmas.h>
14 
15 namespace mrpt
16 {
17 namespace nav
18 {
19  /** An implementation of CPathPlanningMethod
20  * \sa CPathPlanningMethod \ingroup mrpt_nav_grp
21  */
23  {
24  public:
25  /** Default constructor
26  */
28 
29  /** Destructor
30  */
32  {
33  }
34 
35  /** The aproximate robot radius used in the planification. Default is 0.35m
36  */
37  float robotRadius;
38 
39  /** This method compute the optimal path for a circular robot, in the given
40  * occupancy grid map, from the origin location to a target point.
41  * The options and additional parameters to this method can be set with
42  * member configuration variables.
43  *
44  * \param theMap [IN] The occupancy gridmap used to the planning.
45  * \param origin [IN] The starting pose of the robot, in coordinates of "map".
46  * \param target [IN] The desired target pose for the robot, in coordinates of "map".
47  * \param path [OUT] The found path, in global coordinates relative to "map".
48  * \param notFount [OUT] Will be true if no path has been found.
49  * \param maxSearchPathLength [IN] The maximum path length to search for, in meters (-1 = no limit)
50  *
51  * \sa robotRadius
52  *
53  * \exception std::exception On any error
54  */
55  void computePath(
56  const mrpt::maps::COccupancyGridMap2D &theMap,
57  const mrpt::poses::CPose2D &origin,
58  const mrpt::poses::CPose2D &target,
59  std::deque<mrpt::math::TPoint2D> &path,
60  bool &notFound,
61  float maxSearchPathLength = -1
62  ) const;
63 
64  };
65 
66  } // End of namespace
67 } // End of namespace
68 
69 #endif
A virtual base class for computing the optimal path for a robot from a origin location to a target po...
float robotRadius
The aproximate robot radius used in the planification.
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
An implementation of CPathPlanningMethod.



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