Classes | Typedefs | Enumerations | Functions
lanelet::validation Namespace Reference

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< DetectedIssuesvalidateMap (const std::string &mapFilename, const ValidationConfig &config)
 Central function here. Loads the map, runs the checks and returns the issues. More...
 
std::vector< DetectedIssuesvalidateMap (LaneletMap &map, const ValidationConfig &config)
 

Typedef Documentation

◆ Issues

using lanelet::validation::Issues = typedef std::vector<Issue>

Definition at line 65 of file Issue.h.

◆ MapValidatorUPtr

using lanelet::validation::MapValidatorUPtr = typedef std::unique_ptr<MapValidator>

Definition at line 23 of file BasicValidator.h.

◆ MapValidatorUPtrs

Definition at line 24 of file BasicValidator.h.

◆ Regexes

using lanelet::validation::Regexes = typedef std::vector<std::regex>

Definition at line 12 of file ValidatorFactory.h.

◆ RoutingGraphValidatorUPtr

Definition at line 46 of file BasicValidator.h.

◆ RoutingGraphValidatorUPtrs

Definition at line 47 of file BasicValidator.h.

◆ Strings

using lanelet::validation::Strings = typedef std::vector<std::string>

Definition at line 10 of file Validation.h.

◆ TrafficRuleValidatorUPtr

Definition at line 35 of file BasicValidator.h.

◆ TrafficRuleValidatorUPtrs

Definition at line 36 of file BasicValidator.h.

◆ ValidatorsWithName

template<typename ValidatorT >
using lanelet::validation::ValidatorsWithName = typedef std::vector<ValidatorWithName<ValidatorT> >

Definition at line 18 of file ValidatorFactory.h.

◆ ValidatorWithName

template<typename ValidatorT >
using lanelet::validation::ValidatorWithName = typedef std::pair<std::string, std::unique_ptr<ValidatorT> >

Definition at line 15 of file ValidatorFactory.h.

◆ ValueMap

using lanelet::validation::ValueMap = typedef std::map<std::string, Values>

Definition at line 11 of file CheckTags.cpp.

◆ Values

using lanelet::validation::Values = typedef std::vector<std::string>

Definition at line 10 of file CheckTags.cpp.

Enumeration Type Documentation

◆ Primitive

Enumerator
Point 
LineString 
Polygon 
Lanelet 
Area 
RegulatoryElement 
Primitive 

Definition at line 10 of file Issue.h.

◆ Severity

Enumerator
Error 
Warning 
Info 

Definition at line 9 of file Issue.h.

Function Documentation

◆ availabeChecks()

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.

◆ buildReport()

IssueReport lanelet::validation::buildReport ( std::vector< DetectedIssues issues)

Generates the issue report.

Definition at line 104 of file Validation.cpp.

◆ parseCommandLine()

CommandLineConfig lanelet::validation::parseCommandLine ( int  argc,
const char *  argv[] 
)

obtain the configuration from command line arguments

Definition at line 11 of file Cli.cpp.

◆ printAllIssues()

void lanelet::validation::printAllIssues ( const std::vector< DetectedIssues > &  issues)

prints a vector of issues to the command line

Definition at line 55 of file Cli.cpp.

◆ runFromConfig()

int lanelet::validation::runFromConfig ( const CommandLineConfig config)

Runs the configuration and returns the programs's return value (0 on success, 1 if issues found)

Definition at line 66 of file Cli.cpp.

◆ toString() [1/2]

const char* lanelet::validation::toString ( Primitive  primitive)
inline

Definition at line 24 of file Issue.h.

◆ toString() [2/2]

const char* lanelet::validation::toString ( Severity  severity)
inline

Definition at line 12 of file Issue.h.

◆ validateMap() [1/2]

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.

◆ validateMap() [2/2]

std::vector< DetectedIssues > lanelet::validation::validateMap ( LaneletMap map,
const ValidationConfig config 
)

Definition at line 120 of file Validation.cpp.



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