#include <prefer_forward_cost_function.h>
Public Member Functions | |
PreferForwardCostFunction (double penalty) | |
bool | prepare () |
double | scoreTrajectory (Trajectory &traj) |
void | setPenalty (double penalty) |
~PreferForwardCostFunction () | |
Private Attributes | |
bool | penalty_ |
Definition at line 45 of file prefer_forward_cost_function.h.
base_local_planner::PreferForwardCostFunction::PreferForwardCostFunction | ( | double | penalty | ) | [inline] |
Definition at line 48 of file prefer_forward_cost_function.h.
Definition at line 49 of file prefer_forward_cost_function.h.
bool base_local_planner::PreferForwardCostFunction::prepare | ( | ) | [inline, virtual] |
General updating of context values if required. Subclasses may overwrite. Return false in case there is any error.
Implements base_local_planner::TrajectoryCostFunction.
Definition at line 53 of file prefer_forward_cost_function.h.
double base_local_planner::PreferForwardCostFunction::scoreTrajectory | ( | Trajectory & | traj | ) | [virtual] |
return a score for trajectory traj
Implements base_local_planner::TrajectoryCostFunction.
Definition at line 15 of file prefer_forward_cost_function.cpp.
void base_local_planner::PreferForwardCostFunction::setPenalty | ( | double | penalty | ) | [inline] |
Definition at line 55 of file prefer_forward_cost_function.h.
bool base_local_planner::PreferForwardCostFunction::penalty_ [private] |
Definition at line 60 of file prefer_forward_cost_function.h.