26 #include "torch/extension.h" 27 #include "torch/script.h" 30 namespace prediction {
64 std::vector<double>* feature_values);
69 std::string
GetName()
override {
return "JUNCTION_MAP_EVALUATOR"; }
79 static const size_t JUNCTION_FEATURE_SIZE = 12;
80 torch::jit::script::Module torch_model_;
81 torch::Device device_;
Prediction obstacle.
Definition: obstacle.h:52
Definition: obstacles_container.h:39
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
virtual ~JunctionMapEvaluator()=default
Destructor.
Definition: semantic_map.h:30
JunctionMapEvaluator()=delete
Constructor.
std::string GetName() override
Get the name of evaluator.
Definition: junction_map_evaluator.h:69
bool Evaluate(Obstacle *obstacle_ptr, ObstaclesContainer *obstacles_container) override
Override Evaluate.
bool ExtractFeatureValues(Obstacle *obstacle_ptr, std::vector< double > *feature_values)
Extract feature vector.
Definition: evaluator.h:39
Definition: junction_map_evaluator.h:32
void Clear()
Clear obstacle feature map.
Define the data container base class.