24#include "modules/prediction/proto/offline_features.pb.h"
25#include "modules/common_msgs/prediction_msgs/prediction_obstacle.pb.h"
64 const std::vector<double>& feature_values,
65 const std::string& category,
69 const Feature& feature,
const std::vector<double>& feature_values,
70 const std::vector<std::string>& string_feature_values,
71 const std::string& category,
const LaneSequence* lane_sequence_ptr);
99 const Feature& feature,
const std::vector<double>& feature_values,
100 const std::string& category,
const LaneSequence& lane_sequence,
101 const std::vector<apollo::common::TrajectoryPoint>& adc_trajectory);
160 static std::size_t idx_feature_;
162 static std::size_t idx_learning_;
164 static std::size_t idx_prediction_result_;
166 static std::size_t idx_frame_env_;
168 static std::size_t idx_tuning_;
169 static std::mutex mutex_feature_;
static void InsertFeatureProto(const Feature &feature)
Insert a feature
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
FeatureOutput()=delete
Constructor; disabled
static void WriteDataForLearning()
Write DataForLearning features to a file
static int SizeOfPredictionResult()
Get the size of prediction results.
static bool Ready()
Check if output is ready
static int Size()
Get feature size
static int SizeOfFrameEnv()
Get the size of frame env.
static void WriteDataForTuning()
Write DataForTuning features to a file
static int SizeOfDataForLearning()
Get the size of data_for_learning features.
static void WriteFrameEnv()
Write frame env to a file
static int SizeOfDataForTuning()
Get the size of data for tuning.
static void Close()
Close the output stream
static void WriteFeatureProto()
Write features to a file
static void InsertFrameEnv(const FrameEnv &frame_env)
Insert a frame env
static void InsertPredictionResult(const Obstacle *obstacle, const PredictionObstacle &prediction_obstacle, const ObstacleConf &obstacle_conf, const Scenario &scenario)
Insert a prediction result with predicted trajectories
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
static void WritePredictionResult()
Write PredictionResult to a file