|
SUMO - Simulation of Urban MObility
|
Representation of a lane section. More...
#include <NIImporter_OpenDrive.h>

Public Member Functions | |
| void | buildLaneMapping (const NBTypeCont &tc) |
| Build the mapping from OpenDrive to SUMO lanes. More... | |
| OpenDriveLaneSection | buildLaneSection (SUMOReal startPos) |
| bool | buildSpeedChanges (const NBTypeCont &tc, std::vector< OpenDriveLaneSection > &newSections) |
| std::map< int, int > | getInnerConnections (OpenDriveXMLTag dir, const OpenDriveLaneSection &prev) |
| Returns the links from the previous to this lane section. More... | |
| OpenDriveLaneSection (SUMOReal sArg) | |
| Constructor. More... | |
Data Fields | |
| std::map< int, int > | laneMap |
| A mapping from OpenDrive to SUMO-index (the first is signed, the second unsigned) More... | |
| std::map< OpenDriveXMLTag, std::vector< OpenDriveLane > > | lanesByDir |
| The lanes, sorted by their direction. More... | |
| unsigned int | leftLaneNumber |
| unsigned int | rightLaneNumber |
| The number of lanes on the right and on the left side, respectively. More... | |
| SUMOReal | s |
| The starting offset of this lane section. More... | |
| std::string | sumoID |
| The id (generic, without the optionally leading '-') of the edge generated for this section. More... | |
Representation of a lane section.
Definition at line 267 of file NIImporter_OpenDrive.h.
| NIImporter_OpenDrive::OpenDriveLaneSection::OpenDriveLaneSection | ( | SUMOReal | sArg | ) |
Constructor.
| [in] | sArg | The offset from the start, counted from the begin |
Definition at line 1042 of file NIImporter_OpenDrive.cpp.
References lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_CENTER, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT.
| 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 1050 of file NIImporter_OpenDrive.cpp.
References NBTypeCont::getShallBeDiscarded(), NBTypeCont::knows(), NIImporter_OpenDrive::myImportAllTypes, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT.
| NIImporter_OpenDrive::OpenDriveLaneSection NIImporter_OpenDrive::OpenDriveLaneSection::buildLaneSection | ( | SUMOReal | startPos | ) |
Definition at line 1110 of file NIImporter_OpenDrive.cpp.
References lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT, s, NIImporter_OpenDrive::OpenDriveLane::speed, and NIImporter_OpenDrive::OpenDriveLane::speeds.
| bool NIImporter_OpenDrive::OpenDriveLaneSection::buildSpeedChanges | ( | const NBTypeCont & | tc, |
| std::vector< OpenDriveLaneSection > & | newSections | ||
| ) |
Definition at line 1134 of file NIImporter_OpenDrive.cpp.
References NBTypeCont::getSpeed(), lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT, NIImporter_OpenDrive::OpenDriveLane::speed, and NIImporter_OpenDrive::OpenDriveLane::type.
| 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 1071 of file NIImporter_OpenDrive.cpp.
References laneMap, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and UNSET_CONNECTION.
| 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 297 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 299 of file NIImporter_OpenDrive.h.
Referenced by buildLaneSection(), buildSpeedChanges(), OpenDriveLaneSection(), and NIImporter_OpenDrive::setEdgeLinks2().
| unsigned int NIImporter_OpenDrive::OpenDriveLaneSection::leftLaneNumber |
Definition at line 303 of file NIImporter_OpenDrive.h.
| unsigned int NIImporter_OpenDrive::OpenDriveLaneSection::rightLaneNumber |
The number of lanes on the right and on the left side, respectively.
Definition at line 303 of file NIImporter_OpenDrive.h.
| SUMOReal NIImporter_OpenDrive::OpenDriveLaneSection::s |
The starting offset of this lane section.
Definition at line 295 of file NIImporter_OpenDrive.h.
Referenced by buildLaneSection(), NIImporter_OpenDrive::loadNetwork(), and NIImporter_OpenDrive::sections_by_s_sorter::operator()().
| std::string NIImporter_OpenDrive::OpenDriveLaneSection::sumoID |
The id (generic, without the optionally leading '-') of the edge generated for this section.
Definition at line 301 of file NIImporter_OpenDrive.h.