24 #include "modules/prediction/proto/offline_features.pb.h" 25 #include "modules/prediction/proto/prediction_obstacle.pb.h" 28 namespace prediction {
64 const std::vector<double>& feature_values,
65 const std::string& category,
66 const LaneSequence* lane_sequence_ptr);
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);
81 const Obstacle* obstacle,
const PredictionObstacle& prediction_obstacle,
82 const ObstacleConf& obstacle_conf,
const Scenario& scenario);
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);
159 static Features features_;
160 static std::size_t idx_feature_;
161 static ListDataForLearning list_data_for_learning_;
162 static std::size_t idx_learning_;
163 static ListPredictionResult list_prediction_result_;
164 static std::size_t idx_prediction_result_;
165 static ListFrameEnv list_frame_env_;
166 static std::size_t idx_frame_env_;
167 static ListDataForTuning list_data_for_tuning_;
168 static std::size_t idx_tuning_;
169 static std::mutex mutex_feature_;
Definition: feature_output.h:30
FeatureOutput()=delete
Constructor; disabled.
static void InsertFrameEnv(const FrameEnv &frame_env)
Insert a frame env.
static int Size()
Get feature size.
static int SizeOfFrameEnv()
Get the size of frame env.
Prediction obstacle.
Definition: obstacle.h:52
static int SizeOfPredictionResult()
Get the size of prediction results.
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
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.
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 void WriteDataForLearning()
Write DataForLearning features to a file.
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 Clear()
Reset.
static int SizeOfDataForTuning()
Get the size of data for tuning.
static void WritePredictionResult()
Write PredictionResult to a file.
static void InsertFeatureProto(const Feature &feature)
Insert a feature.
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 Close()
Close the output stream.
static bool Ready()
Check if output is ready.
static void WriteFeatureProto()
Write features to a file.