Classes | |
class | BoolTags |
This check looks tags in primitives that should be convertible to bool but aren't. More... | |
struct | CommandLineConfig |
class | CurvatureTooBigChecker |
struct | DetectedIssues |
Struct for the detected issues that were discovered by a specific check. More... | |
class | DuplicatedPointsChecker |
struct | Issue |
struct | IssueReport |
Contains each warning/error as formatted strings. More... | |
class | MandatoryTags |
This check looks tags that should be set on a primitive but aren't. More... | |
class | MapValidator |
Most simple form of a validator. It gets a map once and reports errors. More... | |
class | PointsTooCloseChecker |
class | RegisterMapValidator |
Registration object for a map validator. Needs to be instanciated as static object once to register a writer. Registration might look like this: static RegisterWriter<Mywriter> register;. More... | |
class | RegisterRoutingGraphValidator |
Registration object for routing graph validators. More... | |
class | RegisterTrafficRuleValidator |
Registration object for traffic rule validators. More... | |
class | RoutingGraphIsValid |
This check basically calls the RoutingGraph self-check to ensure the graph is valid. More... | |
class | RoutingGraphValidator |
A routing graph validator works similar, but instead uses the routing graph of a map to detect issues. More... | |
class | TrafficRuleValidator |
class | UnknownTags |
class | UnknownTagValue |
This checks that known tags have known values. More... | |
struct | ValidationConfig |
Configuration object for the validation. More... | |
class | ValidatorFactory |
Typedefs | |
using | Issues = std::vector< Issue > |
using | MapValidatorUPtr = std::unique_ptr< MapValidator > |
using | MapValidatorUPtrs = std::vector< MapValidatorUPtr > |
using | Regexes = std::vector< std::regex > |
using | RoutingGraphValidatorUPtr = std::unique_ptr< RoutingGraphValidator > |
using | RoutingGraphValidatorUPtrs = std::vector< RoutingGraphValidatorUPtr > |
using | Strings = std::vector< std::string > |
using | TrafficRuleValidatorUPtr = std::unique_ptr< TrafficRuleValidator > |
using | TrafficRuleValidatorUPtrs = std::vector< TrafficRuleValidatorUPtr > |
template<typename ValidatorT > | |
using | ValidatorsWithName = std::vector< ValidatorWithName< ValidatorT > > |
template<typename ValidatorT > | |
using | ValidatorWithName = std::pair< std::string, std::unique_ptr< ValidatorT > > |
using | ValueMap = std::map< std::string, Values > |
using | Values = std::vector< std::string > |
Enumerations | |
enum | Primitive { Primitive::Point, Primitive::LineString, Primitive::Polygon, Primitive::Lanelet, Primitive::Area, Primitive::RegulatoryElement, Primitive::Primitive } |
enum | Severity { Severity::Error, Severity::Warning, Severity::Info } |
Functions | |
Strings | availabeChecks (const std::string &filterString) |
Reports the available checks for the given filter. Empty will return all. More... | |
IssueReport | buildReport (std::vector< DetectedIssues > issues) |
Generates the issue report. More... | |
CommandLineConfig | parseCommandLine (int argc, const char *argv[]) |
obtain the configuration from command line arguments More... | |
void | printAllIssues (const std::vector< DetectedIssues > &issues) |
prints a vector of issues to the command line More... | |
int | runFromConfig (const CommandLineConfig &config) |
Runs the configuration and returns the programs's return value (0 on success, 1 if issues found) More... | |
const char * | toString (Primitive primitive) |
const char * | toString (Severity severity) |
std::vector< DetectedIssues > | validateMap (const std::string &mapFilename, const ValidationConfig &config) |
Central function here. Loads the map, runs the checks and returns the issues. More... | |
std::vector< DetectedIssues > | validateMap (LaneletMap &map, const ValidationConfig &config) |
using lanelet::validation::Issues = typedef std::vector<Issue> |
using lanelet::validation::MapValidatorUPtr = typedef std::unique_ptr<MapValidator> |
Definition at line 23 of file BasicValidator.h.
using lanelet::validation::MapValidatorUPtrs = typedef std::vector<MapValidatorUPtr> |
Definition at line 24 of file BasicValidator.h.
using lanelet::validation::Regexes = typedef std::vector<std::regex> |
Definition at line 12 of file ValidatorFactory.h.
using lanelet::validation::RoutingGraphValidatorUPtr = typedef std::unique_ptr<RoutingGraphValidator> |
Definition at line 46 of file BasicValidator.h.
using lanelet::validation::RoutingGraphValidatorUPtrs = typedef std::vector<RoutingGraphValidatorUPtr> |
Definition at line 47 of file BasicValidator.h.
using lanelet::validation::Strings = typedef std::vector<std::string> |
Definition at line 10 of file Validation.h.
using lanelet::validation::TrafficRuleValidatorUPtr = typedef std::unique_ptr<TrafficRuleValidator> |
Definition at line 35 of file BasicValidator.h.
using lanelet::validation::TrafficRuleValidatorUPtrs = typedef std::vector<TrafficRuleValidatorUPtr> |
Definition at line 36 of file BasicValidator.h.
using lanelet::validation::ValidatorsWithName = typedef std::vector<ValidatorWithName<ValidatorT> > |
Definition at line 18 of file ValidatorFactory.h.
using lanelet::validation::ValidatorWithName = typedef std::pair<std::string, std::unique_ptr<ValidatorT> > |
Definition at line 15 of file ValidatorFactory.h.
using lanelet::validation::ValueMap = typedef std::map<std::string, Values> |
Definition at line 11 of file CheckTags.cpp.
using lanelet::validation::Values = typedef std::vector<std::string> |
Definition at line 10 of file CheckTags.cpp.
|
strong |
|
strong |
Strings lanelet::validation::availabeChecks | ( | const std::string & | filterString | ) |
Reports the available checks for the given filter. Empty will return all.
Definition at line 100 of file Validation.cpp.
IssueReport lanelet::validation::buildReport | ( | std::vector< DetectedIssues > | issues | ) |
Generates the issue report.
Definition at line 104 of file Validation.cpp.
CommandLineConfig lanelet::validation::parseCommandLine | ( | int | argc, |
const char * | argv[] | ||
) |
void lanelet::validation::printAllIssues | ( | const std::vector< DetectedIssues > & | issues | ) |
int lanelet::validation::runFromConfig | ( | const CommandLineConfig & | config | ) |
|
inline |
|
inline |
std::vector< DetectedIssues > lanelet::validation::validateMap | ( | const std::string & | mapFilename, |
const ValidationConfig & | config | ||
) |
Central function here. Loads the map, runs the checks and returns the issues.
Definition at line 135 of file Validation.cpp.
std::vector< DetectedIssues > lanelet::validation::validateMap | ( | LaneletMap & | map, |
const ValidationConfig & | config | ||
) |
Definition at line 120 of file Validation.cpp.