Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
apollo::prediction::Evaluator Class Referenceabstract

#include <evaluator.h>

Inheritance diagram for apollo::prediction::Evaluator:
Inheritance graph
Collaboration diagram for apollo::prediction::Evaluator:
Collaboration graph

Public Member Functions

 Evaluator ()=default
 Constructor. More...
 
virtual ~Evaluator ()=default
 Destructor. More...
 
virtual bool Evaluate (Obstacle *obstacle, ObstaclesContainer *obstacles_container)=0
 Evaluate an obstacle. More...
 
virtual bool Evaluate (Obstacle *obstacle, ObstaclesContainer *obstacles_container, std::vector< Obstacle *> dynamic_env)
 Evaluate an obstacle. More...
 
virtual std::string GetName ()=0
 Get the name of evaluator. More...
 

Protected Member Functions

std::pair< double, double > WorldCoordToObjCoord (std::pair< double, double > input_world_coord, std::pair< double, double > obj_world_coord, double obj_world_angle)
 
double WorldAngleToObjAngle (double input_world_angle, double obj_world_angle)
 
Eigen::MatrixXf VectorToMatrixXf (const std::vector< double > &nums, const int start_index, const int end_index)
 
Eigen::MatrixXf VectorToMatrixXf (const std::vector< double > &nums, const int start_index, const int end_index, const int output_num_row, const int output_num_col)
 

Protected Attributes

ObstacleConf::EvaluatorType evaluator_type_
 

Constructor & Destructor Documentation

◆ Evaluator()

apollo::prediction::Evaluator::Evaluator ( )
default

Constructor.

◆ ~Evaluator()

virtual apollo::prediction::Evaluator::~Evaluator ( )
virtualdefault

Destructor.

Member Function Documentation

◆ Evaluate() [1/2]

virtual bool apollo::prediction::Evaluator::Evaluate ( Obstacle obstacle,
ObstaclesContainer obstacles_container 
)
pure virtual

◆ Evaluate() [2/2]

virtual bool apollo::prediction::Evaluator::Evaluate ( Obstacle obstacle,
ObstaclesContainer obstacles_container,
std::vector< Obstacle *>  dynamic_env 
)
inlinevirtual

Evaluate an obstacle.

Parameters
Obstaclepointer
Obstaclescontainer
vectorof all Obstacles

Reimplemented in apollo::prediction::LaneScanningEvaluator.

◆ GetName()

virtual std::string apollo::prediction::Evaluator::GetName ( )
pure virtual

◆ VectorToMatrixXf() [1/2]

Eigen::MatrixXf apollo::prediction::Evaluator::VectorToMatrixXf ( const std::vector< double > &  nums,
const int  start_index,
const int  end_index 
)
inlineprotected

◆ VectorToMatrixXf() [2/2]

Eigen::MatrixXf apollo::prediction::Evaluator::VectorToMatrixXf ( const std::vector< double > &  nums,
const int  start_index,
const int  end_index,
const int  output_num_row,
const int  output_num_col 
)
inlineprotected

◆ WorldAngleToObjAngle()

double apollo::prediction::Evaluator::WorldAngleToObjAngle ( double  input_world_angle,
double  obj_world_angle 
)
inlineprotected

◆ WorldCoordToObjCoord()

std::pair<double, double> apollo::prediction::Evaluator::WorldCoordToObjCoord ( std::pair< double, double >  input_world_coord,
std::pair< double, double >  obj_world_coord,
double  obj_world_angle 
)
inlineprotected

Member Data Documentation

◆ evaluator_type_

ObstacleConf::EvaluatorType apollo::prediction::Evaluator::evaluator_type_
protected

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