RoutingGraphIsValid.cpp
Go to the documentation of this file.
2 
4 
6 
7 namespace lanelet {
8 namespace validation {
9 namespace {
10 RegisterRoutingGraphValidator<RoutingGraphIsValid> reg;
11 } // namespace
12 
14  const traffic_rules::TrafficRules& /*rules*/) {
15  auto errors = graph.checkValidity(false);
16  return utils::transform(errors, [](auto& error) { return Issue(Severity::Error, error); });
17 }
18 
19 } // namespace validation
20 } // namespace lanelet
RoutingGraphIsValid.h
lanelet
lanelet::routing::RoutingGraph::checkValidity
Errors checkValidity(bool throwOnError=true) const
lanelet::traffic_rules::TrafficRules
lanelet::validation::Issues
std::vector< Issue > Issues
Definition: Issue.h:65
lanelet::utils::transform
auto transform(Container &&c, Func f)
lanelet::validation::RoutingGraphIsValid::operator()
Issues operator()(const routing::RoutingGraph &graph, const traffic_rules::TrafficRules &) override
The RoutingGraphValidator is called together with the rules with which it was created.
Definition: RoutingGraphIsValid.cpp:13
lanelet::validation::Severity::Error
@ Error
ValidatorFactory.h
lanelet::routing::RoutingGraph
lanelet::validation::Issue
Definition: Issue.h:44
RoutingGraph.h


lanelet2_validation
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:26:17