Public Member Functions | Private Attributes | List of all members
base_local_planner::PreferForwardCostFunction Class Reference

#include <prefer_forward_cost_function.h>

Inheritance diagram for base_local_planner::PreferForwardCostFunction:
Inheritance graph
[legend]

Public Member Functions

 PreferForwardCostFunction (double penalty)
 
bool prepare ()
 
double scoreTrajectory (Trajectory &traj)
 
void setPenalty (double penalty)
 
 ~PreferForwardCostFunction ()
 
- Public Member Functions inherited from base_local_planner::TrajectoryCostFunction
double getScale ()
 
void setScale (double scale)
 
virtual ~TrajectoryCostFunction ()
 

Private Attributes

double penalty_
 

Additional Inherited Members

- Protected Member Functions inherited from base_local_planner::TrajectoryCostFunction
 TrajectoryCostFunction (double scale=1.0)
 

Detailed Description

Definition at line 45 of file prefer_forward_cost_function.h.

Constructor & Destructor Documentation

base_local_planner::PreferForwardCostFunction::PreferForwardCostFunction ( double  penalty)
inline

Definition at line 48 of file prefer_forward_cost_function.h.

base_local_planner::PreferForwardCostFunction::~PreferForwardCostFunction ( )
inline

Definition at line 49 of file prefer_forward_cost_function.h.

Member Function Documentation

bool base_local_planner::PreferForwardCostFunction::prepare ( )
inlinevirtual

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.

Member Data Documentation

double base_local_planner::PreferForwardCostFunction::penalty_
private

Definition at line 60 of file prefer_forward_cost_function.h.


The documentation for this class was generated from the following files:


base_local_planner
Author(s): Eitan Marder-Eppstein, Eric Perko, contradict@gmail.com
autogenerated on Thu Jan 21 2021 04:05:49