Class to compute the cost of turning from one point to another. More...
#include <complete_turn_path_obj.h>
Public Member Functions | |
CompleteTurnPathObj (const F2CRobot ¶ms) | |
CompleteTurnPathObj (const F2CRobot ¶ms, const T &turn_planner) | |
virtual double | computeCost (const F2CMultiPoint &ps) |
virtual double | computeCost (const F2CMultiPoint &ps, const F2CSwath &s) |
virtual double | computeCost (const F2CMultiPoint &ps, const F2CSwaths &s) |
virtual double | computeCost (const F2CPoint &p, const F2CSwath &s) |
virtual double | computeCost (const F2CPoint &p, double ang, const F2CSwath &s) |
virtual double | computeCost (const F2CPoint &p1, const F2CPoint &p2) |
virtual double | computeCost (const F2CPoint &p1, const F2CPoint &p2, double ang2) |
virtual double | computeCost (const F2CPoint &p1, double ang1, const F2CPoint &p2) |
virtual double | computeCost (const F2CPoint &p1, double ang1, const F2CPoint &p2, double ang2) |
double | computeCost (const F2CPoint &p1, double ang1, const F2CPoint &p2, double ang2) override |
virtual double | computeCost (const F2CRoute &r) |
Return the cost of covering a Route. More... | |
virtual double | computeCost (const F2CSwath &s) |
virtual double | computeCost (const F2CSwath &s, const F2CMultiPoint &ps) |
virtual double | computeCost (const F2CSwath &s, const F2CPoint &p) |
virtual double | computeCost (const F2CSwath &s, const F2CPoint &p, double ang) |
virtual double | computeCost (const F2CSwath &s1, const F2CSwath &s2) |
virtual double | computeCost (const F2CSwaths &s, const F2CMultiPoint &ps) |
virtual double | computeCost (const F2CSwaths &swaths) |
Return the cost of covering a vector of swaths. More... | |
virtual double | computeCost (const std::vector< F2CPoint > &ps) |
void | setRobot (const F2CRobot &robot) |
void | setTurnPlanner (const T &turner) |
![]() | |
virtual double | computeCost (const F2CMultiPoint &ps) |
virtual double | computeCost (const F2CMultiPoint &ps, const F2CSwath &s) |
virtual double | computeCost (const F2CMultiPoint &ps, const F2CSwaths &s) |
virtual double | computeCost (const F2CPoint &p, const F2CSwath &s) |
virtual double | computeCost (const F2CPoint &p, double ang, const F2CSwath &s) |
virtual double | computeCost (const F2CPoint &p1, const F2CPoint &p2) |
virtual double | computeCost (const F2CPoint &p1, const F2CPoint &p2, double ang2) |
virtual double | computeCost (const F2CPoint &p1, double ang1, const F2CPoint &p2) |
virtual double | computeCost (const F2CRoute &r) |
Return the cost of covering a Route. More... | |
virtual double | computeCost (const F2CSwath &s) |
virtual double | computeCost (const F2CSwath &s, const F2CMultiPoint &ps) |
virtual double | computeCost (const F2CSwath &s, const F2CPoint &p) |
virtual double | computeCost (const F2CSwath &s, const F2CPoint &p, double ang) |
virtual double | computeCost (const F2CSwath &s1, const F2CSwath &s2) |
virtual double | computeCost (const F2CSwaths &s, const F2CMultiPoint &ps) |
virtual double | computeCost (const F2CSwaths &swaths) |
Return the cost of covering a vector of swaths. More... | |
virtual double | computeCost (const std::vector< F2CPoint > &ps) |
![]() | |
double | computeCostWithMinimizingSign (const T1 &t1) |
Compute the cost function with minimizing sign. More... | |
double | computeCostWithMinimizingSign (const T1 &t1, const T2 &t2) |
double | computeCostWithMinimizingSign (const T1 &t1, const T2 &t2, const T3 &t3) |
double | computeCostWithMinimizingSign (const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4) |
virtual bool | isMaximizing () const |
Return true if the objective is to maximize the cost function. More... | |
virtual bool | isMinimizing () const |
Return true if the objective is to minimize the cost function. More... | |
virtual | ~BaseObjective ()=default |
Private Attributes | |
R | pp_objective |
F2CRobot | robot |
T | turn_planner |
Planner that derives from f2c::pp::TurningBase. More... | |
Class to compute the cost of turning from one point to another.
This is the closest result to the real cost of executing the path plan, as it actually compute all the turns.
Definition at line 26 of file complete_turn_path_obj.h.
|
explicit |
Definition at line 58 of file complete_turn_path_obj.h.
|
explicit |
Definition at line 63 of file complete_turn_path_obj.h.
double f2c::obj::RPObjective::computeCost |
Return the cost of covering all the points of ps
ps | vector of points |
Definition at line 63 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from the last point of ps to the swath s
ps | vector of points (end point) |
s | Start point (start of the swath) |
Definition at line 88 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from the last point of ps to the first swath of s
ps | vector of points (end point) |
s | Start point (start of the first swath) |
Definition at line 96 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from point p to swath s
p | Start point |
s | End point (start of the swath) |
Definition at line 46 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from point p to swath s
p | Start point |
ang | Angle of the robot in p |
s | End point (start of the swath) |
Definition at line 50 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from point p1 to point p2
p1 | Start point |
p2 | End point |
Definition at line 11 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from point p1 to point p2
p1 | Start point |
p2 | End point |
ang2 | Angle of the robot in p2 |
Definition at line 22 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from point p1 to point p2
p1 | Start point |
ang1 | Angle of the robot in p1 |
p2 | End point |
Definition at line 16 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from point p1 to point p2
p1 | Start point |
ang1 | Angle of the robot in p1 |
p2 | End point |
ang2 | Angle of the robot in p2 |
Definition at line 27 of file rp_objective.cpp.
|
overridevirtual |
Compute the cost of doing the turn between p1 with angle ang1 to p2 with angle ang2
Reimplemented from f2c::obj::RPObjective.
Definition at line 79 of file complete_turn_path_obj.h.
double f2c::obj::RPObjective::computeCost |
Return the cost of covering a Route.
Costs of each swath + Cost of going from one to another.
r | Route |
Definition at line 120 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of covering a swath
s | Swath |
Definition at line 100 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from swath s to the first point of ps
s | Start point (end of the swath) |
ps | vector of points |
Definition at line 74 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from swath s to point p
s | Start point (end of the swath) |
p | End point |
Definition at line 32 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from swath s to point p
s | Start point (end of the swath) |
p | End point |
ang | Angle of the robot in p |
Definition at line 41 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from swath s to point p
s1 | Start point (end of the swath) |
s2 | End point (start of the swath) |
Definition at line 36 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of going from the last swath of s to the first point of ps
s | Start point (end of the last swath) |
ps | vector of points (first point) |
Definition at line 81 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of covering a vector of swaths.
Costs of each swath + Cost of going from one to another. The order may affect the cost.
s | Swaths |
Definition at line 108 of file rp_objective.cpp.
double f2c::obj::RPObjective::computeCost |
Return the cost of covering all the points of ps
ps | vector of points |
Definition at line 55 of file rp_objective.cpp.
void f2c::obj::CompleteTurnPathObj< T, R >::setRobot | ( | const F2CRobot & | robot | ) |
Definition at line 68 of file complete_turn_path_obj.h.
void f2c::obj::CompleteTurnPathObj< T, R >::setTurnPlanner | ( | const T & | turner | ) |
Definition at line 73 of file complete_turn_path_obj.h.
|
private |
Definition at line 53 of file complete_turn_path_obj.h.
|
private |
Definition at line 52 of file complete_turn_path_obj.h.
|
private |
Planner that derives from f2c::pp::TurningBase.
Definition at line 51 of file complete_turn_path_obj.h.