Main MRPT website > C++ reference for MRPT 1.9.9
nav_plan_geometry_utils.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 
10 #pragma once
11 
13 
14 namespace mrpt
15 {
16 namespace nav
17 {
18 /** @addtogroup nav_geom_grp Motion planning geometry utility functions
19 * (`#include <mrpt/nav/nav_plan_geometry_utils.h>`)
20 * \ingroup mrpt_nav_grp
21 * @{ */
22 
23 /** Computes the collision-free distance for a linear segment path between two
24  * points, for a circular robot, and a point obstacle (ox,oy).
25  * \return true if a collision exists, and the distance along the segment will
26  * be in out_col_dist; false otherwise.
27  * \exception std::runtime_error If the two points are closer than an epsilon
28  * (1e-10)
29  */
31  const mrpt::math::TPoint2D& p_start, const mrpt::math::TPoint2D& p_end,
32  const double robot_radius, const mrpt::math::TPoint2D& obstacle,
33  double& out_col_dist);
34 
35 /** Computes the collision-free distance for a forward path (+X) circular arc
36 * path segment from pose (0,0,0) and radius of curvature R (>0 -> +Y, <0 -> -Y),
37 * a circular robot and a point obstacle (ox,oy).
38 * \return true if a collision exists, and the distance along the path will be in
39 * out_col_dist; false otherwise.
40 */
42  const double arc_radius, const double robot_radius,
43  const mrpt::math::TPoint2D& obstacle, double& out_col_dist);
44 
45 /** @} */
46 }
47 }
mrpt::nav::collision_free_dist_arc_circ_robot
bool collision_free_dist_arc_circ_robot(const double arc_radius, const double robot_radius, const mrpt::math::TPoint2D &obstacle, double &out_col_dist)
Computes the collision-free distance for a forward path (+X) circular arc path segment from pose (0,...
Definition: nav_plan_geometry_utils.cpp:77
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
lightweight_geom_data.h
mrpt::math::TPoint2D
Lightweight 2D point.
Definition: lightweight_geom_data.h:42
mrpt::nav::collision_free_dist_segment_circ_robot
bool collision_free_dist_segment_circ_robot(const mrpt::math::TPoint2D &p_start, const mrpt::math::TPoint2D &p_end, const double robot_radius, const mrpt::math::TPoint2D &obstacle, double &out_col_dist)
Computes the collision-free distance for a linear segment path between two points,...
Definition: nav_plan_geometry_utils.cpp:19



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST