maliput_malidrive
|
Functor to build a RuleRegistry.
#include <src/maliput_malidrive/builder/rule_registry_builder.h>
Public Member Functions | |
RuleRegistryBuilder (const maliput::api::RoadGeometry *rg, const std::optional< std::string > &rule_registry_file_path) | |
Constructs a maliput::api::rules::RuleRegistry. More... | |
std::unique_ptr< maliput::api::rules::RuleRegistry > | operator() () |
Builds a maliput::api::rules::RuleRegistry. More... | |
RuleRegistryBuilder | ( | const maliput::api::RoadGeometry * | rg, |
const std::optional< std::string > & | rule_registry_file_path | ||
) |
Constructs a maliput::api::rules::RuleRegistry.
rg | A malidrive::RoadGeometry. It is used to extract speed limit rule ranges. It must not be nullptr. |
rule_registry_file_path | YAML file path for loading the maliput::api::rules::RuleRegistry. |
std::unique_ptr< maliput::api::rules::RuleRegistry > operator() | ( | ) |
Builds a maliput::api::rules::RuleRegistry.
The maliput::api::rules::RuleRegistry is built in two steps: 1- Loads maliput::api::rules::RuleRegistry with rule types obtained from the YAML file if it is provided.
2- Programatically loads the following list of rule types: