cb_base_navigation
Public Member Functions | Private Attributes | List of all members
cb_global_planner::ConstraintEvaluator Class Reference

#include <constraint_evaluator.h>

Public Member Functions

 ConstraintEvaluator ()
 Constructor for the ConstraintEvaluator Object. More...
 
bool evaluate (const double &x, const double &y)
 Evaluates the constraint for an x,y value. More...
 
std::string getConstraint ()
 Returns the initialized constraint. More...
 
bool init (const std::string &constraint)
 Init function which initializes the constraint that has to be evaluated. More...
 

Private Attributes

std::string constraint_
 
exprtk::expression< double > expression_
 
bool initialized_
 
exprtk::symbol_table< double > symbol_table_
 
double x_
 
double y_
 

Detailed Description

Definition at line 27 of file constraint_evaluator.h.

Constructor & Destructor Documentation

◆ ConstraintEvaluator()

cb_global_planner::ConstraintEvaluator::ConstraintEvaluator ( )

Constructor for the ConstraintEvaluator Object.

Definition at line 5 of file constraint_evaluator.cpp.

Member Function Documentation

◆ evaluate()

bool cb_global_planner::ConstraintEvaluator::evaluate ( const double &  x,
const double &  y 
)

Evaluates the constraint for an x,y value.

Parameters
xx value
yy value

Definition at line 26 of file constraint_evaluator.cpp.

◆ getConstraint()

std::string cb_global_planner::ConstraintEvaluator::getConstraint ( )
inline

Returns the initialized constraint.

Definition at line 52 of file constraint_evaluator.h.

◆ init()

bool cb_global_planner::ConstraintEvaluator::init ( const std::string constraint)

Init function which initializes the constraint that has to be evaluated.

Parameters
constraintThe position constraint that has to be evaluated.

Definition at line 7 of file constraint_evaluator.cpp.

Member Data Documentation

◆ constraint_

std::string cb_global_planner::ConstraintEvaluator::constraint_
private

Definition at line 55 of file constraint_evaluator.h.

◆ expression_

exprtk::expression<double> cb_global_planner::ConstraintEvaluator::expression_
private

Definition at line 57 of file constraint_evaluator.h.

◆ initialized_

bool cb_global_planner::ConstraintEvaluator::initialized_
private

Definition at line 59 of file constraint_evaluator.h.

◆ symbol_table_

exprtk::symbol_table<double> cb_global_planner::ConstraintEvaluator::symbol_table_
private

Definition at line 56 of file constraint_evaluator.h.

◆ x_

double cb_global_planner::ConstraintEvaluator::x_
private

Definition at line 58 of file constraint_evaluator.h.

◆ y_

double cb_global_planner::ConstraintEvaluator::y_
private

Definition at line 58 of file constraint_evaluator.h.


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