Edge defining the cost function for keeping a minimum distance from obstacles. More...
#include <edge_obstacle.h>
Public Member Functions | |
void | computeError () |
Actual cost function. More... | |
EdgeObstacle () | |
Construct edge. More... | |
void | setObstacle (const Obstacle *obstacle) |
Set pointer to associated obstacle for the underlying cost function. More... | |
void | setParameters (const TebConfig &cfg, const Obstacle *obstacle) |
Set all parameters at once. More... | |
![]() | |
ErrorVector & | getError () |
Compute and return error / cost value. More... | |
virtual bool | read (std::istream &is) |
Read values from input stream. More... | |
void | setTebConfig (const TebConfig &cfg) |
Assign the TebConfig class for parameters. More... | |
virtual bool | write (std::ostream &os) const |
Write values to an output stream. More... | |
Additional Inherited Members | |
![]() | |
const TebConfig * | cfg_ |
Store TebConfig class for parameters. More... | |
Edge defining the cost function for keeping a minimum distance from obstacles.
The edge depends on a single vertex and minimizes:
.
dist2point denotes the minimum distance to the point obstacle.
weight can be set using setInformation().
penaltyBelow denotes the penalty function, see penaltyBoundFromBelow()
Definition at line 111 of file edge_obstacle.h.
|
inline |
Construct edge.
Definition at line 118 of file edge_obstacle.h.
|
inline |
Actual cost function.
Definition at line 126 of file edge_obstacle.h.
|
inline |
Set pointer to associated obstacle for the underlying cost function.
obstacle | 2D position vector containing the position of the obstacle |
Definition at line 198 of file edge_obstacle.h.
|
inline |
Set all parameters at once.
cfg | TebConfig class |
obstacle | 2D position vector containing the position of the obstacle |
Definition at line 208 of file edge_obstacle.h.