![]() |
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 353 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 2023 of file NIImporter_OpenDrive.cpp.
References lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_CENTER, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT, s, and sOrig.
Referenced by buildLaneSection(), and getInnerConnections().
| bool NIImporter_OpenDrive::OpenDriveLaneSection::buildAttributeChanges | ( | const NBTypeCont & | tc, |
| std::vector< OpenDriveLaneSection > & | newSections ) |
Definition at line 2211 of file NIImporter_OpenDrive.cpp.
References buildLaneSection(), gDebugFlag1, NBTypeCont::getEdgeTypePermissions(), NBTypeCont::getEdgeTypeSpeed(), joinToString(), lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT, NIImporter_OpenDrive::OpenDriveLane::permission, s, NIImporter_OpenDrive::OpenDriveLane::speed, and NIImporter_OpenDrive::OpenDriveLane::type.
Referenced by NIImporter_OpenDrive::revisitLaneSections().
| 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 2031 of file NIImporter_OpenDrive.cpp.
References discardedInnerWidthLeft, discardedInnerWidthRight, NBTypeCont::getEdgeTypeShallBeDiscarded(), joinToString(), NBTypeCont::knows(), laneMap, lanesByDir, leftLaneNumber, leftType, NIImporter_OpenDrive::myImportAllTypes, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT, rightLaneNumber, and rightType.
| NIImporter_OpenDrive::OpenDriveLaneSection NIImporter_OpenDrive::OpenDriveLaneSection::buildLaneSection | ( | const NBTypeCont & | tc, |
| double | startPos ) |
Definition at line 2113 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, OpenDriveLaneSection(), NIImporter_OpenDrive::OpenDriveLane::permission, s, and NIImporter_OpenDrive::OpenDriveLane::speed.
Referenced by buildAttributeChanges().
| 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 2074 of file NIImporter_OpenDrive.cpp.
References laneMap, lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, OpenDriveLaneSection(), and UNSET_CONNECTION.
| double NIImporter_OpenDrive::OpenDriveLaneSection::discardedInnerWidthLeft |
average width of removed inside lanes
Definition at line 397 of file NIImporter_OpenDrive.h.
Referenced by buildLaneMapping().
| double NIImporter_OpenDrive::OpenDriveLaneSection::discardedInnerWidthRight |
Definition at line 398 of file NIImporter_OpenDrive.h.
Referenced by buildLaneMapping().
| 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 386 of file NIImporter_OpenDrive.h.
Referenced by buildLaneMapping(), getInnerConnections(), and NIImporter_OpenDrive::setEdgeLinks2().
| std::map<OpenDriveXMLTag, std::vector<OpenDriveLane> > NIImporter_OpenDrive::OpenDriveLaneSection::lanesByDir |
The lanes, sorted by their direction.
Definition at line 388 of file NIImporter_OpenDrive.h.
Referenced by buildAttributeChanges(), NIImporter_OpenDrive::buildConnectionsToOuter(), buildLaneMapping(), buildLaneSection(), getInnerConnections(), NIImporter_OpenDrive::laneSectionsConnected(), NIImporter_OpenDrive::myEndElement(), NIImporter_OpenDrive::myStartElement(), OpenDriveLaneSection(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenDrive::sanitizeWidths(), NIImporter_OpenDrive::setEdgeLinks2(), and NIImporter_OpenDrive::splitMinWidths().
| int NIImporter_OpenDrive::OpenDriveLaneSection::leftLaneNumber |
Definition at line 392 of file NIImporter_OpenDrive.h.
Referenced by buildLaneMapping(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenDrive::sanitizeWidths(), and NIImporter_OpenDrive::splitMinWidths().
| std::string NIImporter_OpenDrive::OpenDriveLaneSection::leftType |
Definition at line 395 of file NIImporter_OpenDrive.h.
Referenced by buildLaneMapping().
| double NIImporter_OpenDrive::OpenDriveLaneSection::length |
The length of this lane section.
Definition at line 384 of file NIImporter_OpenDrive.h.
Referenced by NIImporter_OpenDrive::myEndElement(), and NIImporter_OpenDrive::sanitizeWidths().
| int NIImporter_OpenDrive::OpenDriveLaneSection::rightLaneNumber |
The number of lanes on the right and on the left side, respectively.
Definition at line 392 of file NIImporter_OpenDrive.h.
Referenced by buildLaneMapping(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenDrive::sanitizeWidths(), and NIImporter_OpenDrive::splitMinWidths().
| std::string NIImporter_OpenDrive::OpenDriveLaneSection::rightType |
the composite type built from all used lane types
Definition at line 394 of file NIImporter_OpenDrive.h.
Referenced by buildLaneMapping().
| double NIImporter_OpenDrive::OpenDriveLaneSection::s |
The starting offset of this lane section.
Definition at line 380 of file NIImporter_OpenDrive.h.
Referenced by buildAttributeChanges(), buildLaneSection(), NIImporter_OpenDrive::loadNetwork(), NIImporter_OpenDrive::myEndElement(), OpenDriveLaneSection(), NIImporter_OpenDrive::sections_by_s_sorter::operator()(), NIImporter_OpenDrive::revisitLaneSections(), 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 382 of file NIImporter_OpenDrive.h.
Referenced by OpenDriveLaneSection(), and 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 390 of file NIImporter_OpenDrive.h.