maliput_osm
maliput_osm::osm Namespace Reference

Namespaces

 test
 

Classes

class  OSMManager
 OSMManager is in charge of loading a Lanelet2-OSM map, parsing it, and providing accessors to get the map's important data. More...
 
struct  ParserConfig
 Configuration for the OSM parser. More...
 

Functions

std::unordered_map< Lane::Id, LaneEnd > FilterOutByDirection (const lanelet::Lanelet &lanelet, const LaneEnd::Which &lane_end_which, const std::unordered_map< Lane::Id, LaneEnd > &connections, const lanelet::LaneletLayer &lanelet_layer, double tolerance)
 
LineString3d ToMaliput (const lanelet::ConstLineString3d &line_string)
 Converts a lanelet::ConstLineString3d to a maliput_sparse::geometry::LineString3d. More...
 
maliput_sparse::parser::Lane ToMaliput (const lanelet::Lanelet &lanelet, const lanelet::LaneletMapPtr &map)
 Converts a lanelet::Lanelet to a maliput_osm::osm::Lane. More...
 

Function Documentation

◆ FilterOutByDirection()

std::unordered_map<Lane::Id, LaneEnd> maliput_osm::osm::FilterOutByDirection ( const lanelet::Lanelet &  lanelet,
const LaneEnd::Which &  lane_end_which,
const std::unordered_map< Lane::Id, LaneEnd > &  connections,
const lanelet::LaneletLayer &  lanelet_layer,
double  tolerance 
)

◆ ToMaliput() [1/2]

maliput_sparse::geometry::LineString3d ToMaliput ( const lanelet::ConstLineString3d &  line_string)

Converts a lanelet::ConstLineString3d to a maliput_sparse::geometry::LineString3d.

Parameters
line_stringThe lanelet::ConstLineString3d to convert.
Returns
The converted maliput_sparse::geometry::LineString3d.

◆ ToMaliput() [2/2]

maliput_sparse::parser::Lane ToMaliput ( const lanelet::Lanelet &  lanelet,
const lanelet::LaneletMapPtr &  map 
)

Converts a lanelet::Lanelet to a maliput_osm::osm::Lane.

maliput_osm::osm::Lane is an struct with several fields.

Parameters
laneletThe lanelet::Lanelet to convert.
maplanelet::LaneletMapPtr for finding adjacent and consecutive lanelets.
Returns
The converted maliput_osm::osm::Lane.