![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Representation of a lane section. More...
#include <NIImporter_OpenDrive.h>
Public Member Functions | |
| bool | buildAttributeChanges (const NBTypeCont &tc, std::vector< OpenDriveLaneSection > &newSections) |
| void | buildLaneMapping (const NBTypeCont &tc) |
| Build the mapping from OpenDrive to SUMO lanes. | |
| OpenDriveLaneSection | buildLaneSection (const NBTypeCont &tc, double startPos) |
| std::map< int, int > | getInnerConnections (OpenDriveXMLTag dir, const OpenDriveLaneSection &prev) |
| Returns the links from the previous to this lane section. | |
| OpenDriveLaneSection (double sArg) | |
| Constructor. | |
Data Fields | |
| double | discardedInnerWidthLeft |
| average width of removed inside lanes | |
| double | discardedInnerWidthRight |
| std::map< int, int > | laneMap |
| A mapping from OpenDrive to SUMO-index (the first is signed, the second unsigned) | |
| std::map< OpenDriveXMLTag, std::vector< OpenDriveLane > > | lanesByDir |
| The lanes, sorted by their direction. | |
| int | leftLaneNumber |
| std::string | leftType |
| double | length |
| The length of this lane section. | |
| int | rightLaneNumber |
| The number of lanes on the right and on the left side, respectively. | |
| std::string | rightType |
| the composite type built from all used lane types | |
| double | s |
| The starting offset of this lane section. | |
| double | sOrig |
| The original starting offset of this lane section (differs from s if the section had to be split) | |
| std::string | sumoID |
| The id (generic, without the optionally leading '-') of the edge generated for this section. | |
Representation of a lane section.
Definition at line 347 of file NIImporter_OpenDrive.h.
| NIImporter_OpenDrive::OpenDriveLaneSection::OpenDriveLaneSection | ( | double | sArg | ) |
Constructor.
| [in] | sArg | The offset from the start, counted from the begin |
Definition at line 1964 of file NIImporter_OpenDrive.cpp.
References lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_CENTER, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT.
| bool NIImporter_OpenDrive::OpenDriveLaneSection::buildAttributeChanges | ( | const NBTypeCont & | tc, |
| std::vector< OpenDriveLaneSection > & | newSections | ||
| ) |
Definition at line 2152 of file NIImporter_OpenDrive.cpp.
References gDebugFlag1, NBTypeCont::getEdgeTypePermissions(), NBTypeCont::getEdgeTypeSpeed(), joinToString(), NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT, NIImporter_OpenDrive::OpenDriveLane::permission, NIImporter_OpenDrive::OpenDriveLane::speed, and NIImporter_OpenDrive::OpenDriveLane::type.
| void NIImporter_OpenDrive::OpenDriveLaneSection::buildLaneMapping | ( | const NBTypeCont & | tc | ) |
Build the mapping from OpenDrive to SUMO lanes.
Not all lanes are converted to SUMO-lanes; the mapping includes only those which are included in the SUMO network.
| [in] | tc | The type container needed to determine whether a lane shall be imported by using the lane's type |
Definition at line 1972 of file NIImporter_OpenDrive.cpp.
References NBTypeCont::getEdgeTypeShallBeDiscarded(), joinToString(), NBTypeCont::knows(), NIImporter_OpenDrive::myImportAllTypes, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT.
| NIImporter_OpenDrive::OpenDriveLaneSection NIImporter_OpenDrive::OpenDriveLaneSection::buildLaneSection | ( | const NBTypeCont & | tc, |
| double | startPos | ||
| ) |
Definition at line 2054 of file NIImporter_OpenDrive.cpp.
References NIImporter_OpenDrive::OpenDriveLane::attributeChanges, NIImporter_OpenDrive::OpenDriveLane::computePermission(), lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT, NIImporter_OpenDrive::OpenDriveLane::permission, s, and NIImporter_OpenDrive::OpenDriveLane::speed.
| std::map< int, int > NIImporter_OpenDrive::OpenDriveLaneSection::getInnerConnections | ( | OpenDriveXMLTag | dir, |
| const OpenDriveLaneSection & | prev | ||
| ) |
Returns the links from the previous to this lane section.
| [in] | dir | The OpenDrive-direction of drive |
| [in] | pre | The previous lane section |
Definition at line 2015 of file NIImporter_OpenDrive.cpp.
References laneMap, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, std::swap(), and UNSET_CONNECTION.
| double NIImporter_OpenDrive::OpenDriveLaneSection::discardedInnerWidthLeft |
average width of removed inside lanes
Definition at line 391 of file NIImporter_OpenDrive.h.
| double NIImporter_OpenDrive::OpenDriveLaneSection::discardedInnerWidthRight |
Definition at line 392 of file NIImporter_OpenDrive.h.
| std::map<int, int> NIImporter_OpenDrive::OpenDriveLaneSection::laneMap |
A mapping from OpenDrive to SUMO-index (the first is signed, the second unsigned)
Definition at line 380 of file NIImporter_OpenDrive.h.
Referenced by getInnerConnections(), and NIImporter_OpenDrive::setEdgeLinks2().
| std::map<OpenDriveXMLTag, std::vector<OpenDriveLane> > NIImporter_OpenDrive::OpenDriveLaneSection::lanesByDir |
The lanes, sorted by their direction.
Definition at line 382 of file NIImporter_OpenDrive.h.
Referenced by NIImporter_OpenDrive::buildConnectionsToOuter(), buildLaneSection(), NIImporter_OpenDrive::laneSectionsConnected(), NIImporter_OpenDrive::myStartElement(), OpenDriveLaneSection(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenDrive::setEdgeLinks2(), and NIImporter_OpenDrive::splitMinWidths().
| int NIImporter_OpenDrive::OpenDriveLaneSection::leftLaneNumber |
Definition at line 386 of file NIImporter_OpenDrive.h.
Referenced by NIImporter_OpenDrive::recomputeWidths(), and NIImporter_OpenDrive::splitMinWidths().
| std::string NIImporter_OpenDrive::OpenDriveLaneSection::leftType |
Definition at line 389 of file NIImporter_OpenDrive.h.
| double NIImporter_OpenDrive::OpenDriveLaneSection::length |
The length of this lane section.
Definition at line 378 of file NIImporter_OpenDrive.h.
| int NIImporter_OpenDrive::OpenDriveLaneSection::rightLaneNumber |
The number of lanes on the right and on the left side, respectively.
Definition at line 386 of file NIImporter_OpenDrive.h.
Referenced by NIImporter_OpenDrive::recomputeWidths(), and NIImporter_OpenDrive::splitMinWidths().
| std::string NIImporter_OpenDrive::OpenDriveLaneSection::rightType |
the composite type built from all used lane types
Definition at line 388 of file NIImporter_OpenDrive.h.
| double NIImporter_OpenDrive::OpenDriveLaneSection::s |
The starting offset of this lane section.
Definition at line 374 of file NIImporter_OpenDrive.h.
Referenced by buildLaneSection(), NIImporter_OpenDrive::loadNetwork(), NIImporter_OpenDrive::sections_by_s_sorter::operator()(), NIImporter_OpenDrive::setEdgeLinks2(), and NIImporter_OpenDrive::splitMinWidths().
| double NIImporter_OpenDrive::OpenDriveLaneSection::sOrig |
The original starting offset of this lane section (differs from s if the section had to be split)
Definition at line 376 of file NIImporter_OpenDrive.h.
Referenced by NIImporter_OpenDrive::splitMinWidths().
| std::string NIImporter_OpenDrive::OpenDriveLaneSection::sumoID |
The id (generic, without the optionally leading '-') of the edge generated for this section.
Definition at line 384 of file NIImporter_OpenDrive.h.