Apollo  6.0
Open source self driving car software
Public Member Functions | Static Public Member Functions | List of all members
apollo::prediction::FeatureOutput Class Reference

#include <feature_output.h>

Collaboration diagram for apollo::prediction::FeatureOutput:
Collaboration graph

Public Member Functions

 FeatureOutput ()=delete
 Constructor; disabled. More...
 

Static Public Member Functions

static void Close ()
 Close the output stream. More...
 
static void Clear ()
 Reset. More...
 
static bool Ready ()
 Check if output is ready. More...
 
static void InsertFeatureProto (const Feature &feature)
 Insert a feature. More...
 
static void InsertDataForLearning (const Feature &feature, const std::vector< double > &feature_values, const std::string &category, const LaneSequence *lane_sequence_ptr)
 Insert a data_for_learning. More...
 
static void InsertDataForLearning (const Feature &feature, const std::vector< double > &feature_values, const std::vector< std::string > &string_feature_values, const std::string &category, const LaneSequence *lane_sequence_ptr)
 
static void InsertPredictionResult (const Obstacle *obstacle, const PredictionObstacle &prediction_obstacle, const ObstacleConf &obstacle_conf, const Scenario &scenario)
 Insert a prediction result with predicted trajectories. More...
 
static void InsertFrameEnv (const FrameEnv &frame_env)
 Insert a frame env. More...
 
static void InsertDataForTuning (const Feature &feature, const std::vector< double > &feature_values, const std::string &category, const LaneSequence &lane_sequence, const std::vector< apollo::common::TrajectoryPoint > &adc_trajectory)
 Insert a data_for_tuning. More...
 
static void WriteFeatureProto ()
 Write features to a file. More...
 
static void WriteDataForLearning ()
 Write DataForLearning features to a file. More...
 
static void WritePredictionResult ()
 Write PredictionResult to a file. More...
 
static void WriteFrameEnv ()
 Write frame env to a file. More...
 
static void WriteDataForTuning ()
 Write DataForTuning features to a file. More...
 
static int Size ()
 Get feature size. More...
 
static int SizeOfDataForLearning ()
 Get the size of data_for_learning features. More...
 
static int SizeOfPredictionResult ()
 Get the size of prediction results. More...
 
static int SizeOfFrameEnv ()
 Get the size of frame env. More...
 
static int SizeOfDataForTuning ()
 Get the size of data for tuning. More...
 

Constructor & Destructor Documentation

◆ FeatureOutput()

apollo::prediction::FeatureOutput::FeatureOutput ( )
delete

Constructor; disabled.

Member Function Documentation

◆ Clear()

static void apollo::prediction::FeatureOutput::Clear ( )
static

Reset.

◆ Close()

static void apollo::prediction::FeatureOutput::Close ( )
static

Close the output stream.

◆ InsertDataForLearning() [1/2]

static void apollo::prediction::FeatureOutput::InsertDataForLearning ( const Feature &  feature,
const std::vector< double > &  feature_values,
const std::string &  category,
const LaneSequence *  lane_sequence_ptr 
)
static

Insert a data_for_learning.

Parameters
Afeature in proto

◆ InsertDataForLearning() [2/2]

static void apollo::prediction::FeatureOutput::InsertDataForLearning ( const Feature &  feature,
const std::vector< double > &  feature_values,
const std::vector< std::string > &  string_feature_values,
const std::string &  category,
const LaneSequence *  lane_sequence_ptr 
)
static

◆ InsertDataForTuning()

static void apollo::prediction::FeatureOutput::InsertDataForTuning ( const Feature &  feature,
const std::vector< double > &  feature_values,
const std::string &  category,
const LaneSequence &  lane_sequence,
const std::vector< apollo::common::TrajectoryPoint > &  adc_trajectory 
)
static

Insert a data_for_tuning.

Parameters
Afeature in proto
valuesfor tuning
categoryof the data
lanesequence
adctrajectory

◆ InsertFeatureProto()

static void apollo::prediction::FeatureOutput::InsertFeatureProto ( const Feature &  feature)
static

Insert a feature.

Parameters
Afeature in proto

◆ InsertFrameEnv()

static void apollo::prediction::FeatureOutput::InsertFrameEnv ( const FrameEnv &  frame_env)
static

Insert a frame env.

Parameters
frameenv

◆ InsertPredictionResult()

static void apollo::prediction::FeatureOutput::InsertPredictionResult ( const Obstacle obstacle,
const PredictionObstacle &  prediction_obstacle,
const ObstacleConf &  obstacle_conf,
const Scenario &  scenario 
)
static

Insert a prediction result with predicted trajectories.

Parameters
Obstacleid
prediction_obstacle
obstacle_conf
scenario

◆ Ready()

static bool apollo::prediction::FeatureOutput::Ready ( )
static

Check if output is ready.

Returns
True if output is ready

◆ Size()

static int apollo::prediction::FeatureOutput::Size ( )
static

Get feature size.

Returns
Feature size

◆ SizeOfDataForLearning()

static int apollo::prediction::FeatureOutput::SizeOfDataForLearning ( )
static

Get the size of data_for_learning features.

Returns
The size of data_for_learning features.

◆ SizeOfDataForTuning()

static int apollo::prediction::FeatureOutput::SizeOfDataForTuning ( )
static

Get the size of data for tuning.

Returns
The size of data for tuning.

◆ SizeOfFrameEnv()

static int apollo::prediction::FeatureOutput::SizeOfFrameEnv ( )
static

Get the size of frame env.

Returns
The size of frame env.

◆ SizeOfPredictionResult()

static int apollo::prediction::FeatureOutput::SizeOfPredictionResult ( )
static

Get the size of prediction results.

Returns
The size of prediction results.

◆ WriteDataForLearning()

static void apollo::prediction::FeatureOutput::WriteDataForLearning ( )
static

Write DataForLearning features to a file.

◆ WriteDataForTuning()

static void apollo::prediction::FeatureOutput::WriteDataForTuning ( )
static

Write DataForTuning features to a file.

◆ WriteFeatureProto()

static void apollo::prediction::FeatureOutput::WriteFeatureProto ( )
static

Write features to a file.

◆ WriteFrameEnv()

static void apollo::prediction::FeatureOutput::WriteFrameEnv ( )
static

Write frame env to a file.

◆ WritePredictionResult()

static void apollo::prediction::FeatureOutput::WritePredictionResult ( )
static

Write PredictionResult to a file.


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