maliput_sparse
maliput_sparse::parser Namespace Reference

Classes

struct  Connection
 Defines a connection between two lanes. More...
 
struct  Junction
 Convenient abstraction for grouping segments. More...
 
struct  Lane
 Contains the characteristics of a lane. More...
 
struct  LaneEnd
 
class  Parser
 Pure virtual parser API class to be inherited by a specific parser class. More...
 
struct  Segment
 A segment is a collection of lanes added with a strict order, from right to left, similarly to maliput::api::Segment abstraction. More...
 
class  Validator
 After parsing a road network, the Validator can be used to check for errors before creating a maliput::api::RoadNetwork via the maliput_sparse::loader::RoadNetworkLoader. More...
 
struct  ValidatorConfig
 ValidatorConfig struct that contains the configuration for the Validator. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Validator::Type &type)
 Serialize Validator::Type to ostream. More...
 
std::vector< Validator::ErrorValidateLaneAdjacency (const Parser *parser, bool validate_geometric_adjacency, const ValidatorConfig &config)
 Validates lane adjacency. More...
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const Validator::Type type 
)

Serialize Validator::Type to ostream.

◆ ValidateLaneAdjacency()

std::vector< Validator::Error > ValidateLaneAdjacency ( const Parser parser,
bool  validate_geometric_adjacency,
const ValidatorConfig config 
)

Validates lane adjacency.

Parameters
parserThe maliput_sparse::parser::Parser instance to validate.
validate_geometric_adjacencyWhether to validate geometric adjacency.
configThe maliput_sparse::parser::ValidatorConfig to use.
Returns
A vector of maliput_sparse::parser::Validator::Error.