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



Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014