MRPT
2.0.4
|
(#include <mrpt/nav/nav_plan_geometry_utils.h>
)
Functions | |
bool | mrpt::nav::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, for a circular robot, and a point obstacle (ox,oy). More... | |
bool | mrpt::nav::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,0,0) and radius of curvature R (>0 -> +Y, <0 -> -Y), a circular robot and a point obstacle (ox,oy). More... | |
bool mrpt::nav::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,0,0) and radius of curvature R (>0 -> +Y, <0 -> -Y), a circular robot and a point obstacle (ox,oy).
Definition at line 78 of file nav_plan_geometry_utils.cpp.
References ASSERT_ABOVE_, M_PI, mrpt::math::norm(), R, mrpt::math::wrapTo2Pi(), mrpt::math::TPoint2D_data< T >::x, and mrpt::math::TPoint2D_data< T >::y.
bool mrpt::nav::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, for a circular robot, and a point obstacle (ox,oy).
std::runtime_error | If the two points are closer than an epsilon (1e-10) |
Definition at line 20 of file nav_plan_geometry_utils.cpp.
References ASSERT_ABOVE_, mrpt::math::TPoint2D_< T >::norm(), R, mrpt::math::solve_poly2(), mrpt::square(), mrpt::math::TPoint2D_data< T >::x, and mrpt::math::TPoint2D_data< T >::y.
Referenced by TEST().
Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |