Go to the documentation of this file.
8 #ifndef FIELDS2COVER_PATH_PLANNING_TURNING_BASE_H_
9 #define FIELDS2COVER_PATH_PLANNING_TURNING_BASE_H_
34 const F2CPoint& start_pos,
double start_angle,
35 const F2CPoint& end_pos,
double end_angle);
43 double start_angle,
double end_angle);
51 double start_angle,
double end_angle) = 0;
61 double start_angle,
const F2CPoint& end_pos,
double end_angle);
65 double end_angle,
double max_dist_error = 0.05,
66 double max_rot_error = 0.1);
86 float max_error_dist = 0.05);
98 #endif // FIELDS2COVER_PATH_PLANNING_TURNING_BASE_H_
Path planning algorithms' namespace.
virtual ~TurningBase()=default
bool getUsingCache() const
Get if turns are being cached or not.
virtual F2CPath createSimpleTurn(const F2CRobot &robot, double dist_start_pos, double start_angle, double end_angle)=0
Create a turn.
std::map< std::vector< int >, F2CPath > path_cache_
static std::vector< double > transformToNormalTurn(const F2CPoint &start_pos, double start_angle, const F2CPoint &end_pos, double end_angle)
Transform the turn parameters representation from two points with two angles to one distance and two ...
Base class for turn planners.
void setUsingCache(bool c)
Set if cache should be used when planning same turn as before.
F2CPath createTurnIfNotCached(const F2CRobot &robot, double dist_start_pos, double start_angle, double end_angle)
Generate a turn if it has not been computed before.
static bool isTurnValid(const F2CPath &path, double dist_start_end, double end_angle, double max_dist_error=0.05, double max_rot_error=0.1)
Check if turn is valid.
F2CPath createTurn(const F2CRobot &robot, const F2CPoint &start_pos, double start_angle, const F2CPoint &end_pos, double end_angle)
Create a turn that goes from one point with a certain angle to another point.
double getDiscretization() const
Get discretization distance from points in the turn.
static void correctPath(F2CPath &path, const F2CPoint &start_pos, const F2CPoint &end_pos, float max_error_dist=0.05)
void setDiscretization(double d)
Set discretization distance from points in the turn.
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31