Module scenariogeneration.xodr.enumerations

scenariogeneration https://github.com/pyoscx/scenariogeneration

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Copyright (c) 2022 The scenariogeneration Authors.

Expand source code
"""
  scenariogeneration
  https://github.com/pyoscx/scenariogeneration

  This Source Code Form is subject to the terms of the Mozilla Public
  License, v. 2.0. If a copy of the MPL was not distributed with this
  file, You can obtain one at https://mozilla.org/MPL/2.0/.

  Copyright (c) 2022 The scenariogeneration Authors.

"""
""" the enumerations module contains the enumerations of OpenDRIVE

"""
from enum import Enum, auto


class TrafficRule(Enum):
    """Enum for MarkRule"""

    RHT = auto()
    LHT = auto()
    none = auto()


class MarkRule(Enum):
    """Enum for MarkRule"""

    no_passing = auto()
    caution = auto()
    none = auto()


class LaneType(Enum):
    """Enum for LaneType"""

    none = auto()
    driving = auto()
    stop = auto()
    shoulder = auto()
    biking = auto()
    sidewalk = auto()
    curb = auto()
    border = auto()
    restricted = auto()
    parking = auto()
    bidirectional = auto()
    median = auto()
    special1 = auto()
    special2 = auto()
    special3 = auto()
    roadWorks = auto()
    tram = auto()
    rail = auto()
    entry = auto()
    exit = auto()
    offRamp = auto()
    onRamp = auto()
    connectingRamp = auto()
    bus = auto()
    taxi = auto()
    HOV = auto()
    mwyEntry = auto()
    mwyExit = auto()


class RoadMarkColor(Enum):
    """Enum for RoadMarkColor"""

    standard = auto()
    blue = auto()
    green = auto()
    red = auto()
    white = auto()
    yellow = auto()
    orange = auto()


class RoadMarkWeight(Enum):
    """Enum for RoadMarkWeight"""

    standard = auto()
    bold = auto()


class RoadMarkType(Enum):
    """Enum for RoadMarkType"""

    none = auto()
    solid = auto()
    broken = auto()
    solid_solid = auto()
    solid_broken = auto()
    broken_solid = auto()
    broken_broken = auto()
    botts_dots = auto()
    grass = auto()
    curb = auto()
    custom = auto()
    edge = auto()


class RoadType(Enum):
    """Enum for RoadType"""

    unknown = auto()
    rural = auto()
    motorway = auto()
    town = auto()
    lowSpeed = auto()
    pedestrian = auto()
    bicycle = auto()
    townExpressway = auto()
    townCollector = auto()
    townArterial = auto()
    townPrivate = auto()
    townLocal = auto()
    townPlayStreet = auto()


class LaneChange(Enum):
    """Enum for LaneChange"""

    increase = auto()
    decrease = auto()
    both = auto()
    none = auto()


class ElementType(Enum):
    """Enum for LaneChange"""

    road = auto()
    junction = auto()


class ContactPoint(Enum):
    """Enum for ContactPoint"""

    start = auto()
    end = auto()


class Direction(Enum):
    """Enum for Direction"""

    same = auto()
    opposite = auto()


class Orientation(Enum):
    """Enum for Orientation"""

    positive = auto()
    negative = auto()
    none = auto()


class ObjectType(Enum):
    """Enum for ObjectType taken from OpenDRIVE 1.6 without deprecated types"""

    none = auto()
    obstacle = auto()
    pole = auto()
    tree = auto()
    vegetation = auto()
    barrier = auto()
    building = auto()
    parkingSpace = auto()
    patch = auto()
    railing = auto()
    trafficIsland = auto()
    crosswalk = auto()
    streetLamp = auto()
    gantry = auto()
    soundBarrier = auto()
    roadMark = auto()


class TunnelType(Enum):
    """Enum for TunnelType"""

    standard = auto()
    underpass = auto()


class Dynamic(Enum):
    """Enum for Dynamic"""

    yes = auto()
    no = auto()


class RoadSide(Enum):
    """Enum for RoadSide"""

    both = auto()
    left = auto()
    right = auto()


class JunctionGroupType(Enum):
    """Enum for JunctionGroup"""

    roundabout = auto()
    unknown = auto()


class JunctionType(Enum):
    """Enum for JunctionType"""

    default = auto()
    virtual = auto()
    direct = auto()


class FillType(Enum):
    """Enum for FillType"""

    asphalt = auto()
    cobble = auto()
    concrete = auto()
    grass = auto()
    gravel = auto()
    pavement = auto()
    soil = auto()


class Access(Enum):
    """Enum for ParkingSpace Access"""

    all = auto()
    bus = auto()
    car = auto()
    electric = auto()
    handicapped = auto()
    residents = auto()
    truck = auto()
    woman = auto()


class RawDataPostProcessing(Enum):
    """Enum for dataQuality RawData PostProcessing"""

    cleaned = auto()
    fused = auto()
    property = auto()
    raw = auto()


class RawDataSource(Enum):
    """Enum for dataQuality RawData PostProcessing"""

    cadaster = auto()
    custom = auto()
    sensor = auto()

Classes

class Access (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for ParkingSpace Access

Expand source code
class Access(Enum):
    """Enum for ParkingSpace Access"""

    all = auto()
    bus = auto()
    car = auto()
    electric = auto()
    handicapped = auto()
    residents = auto()
    truck = auto()
    woman = auto()

Ancestors

  • enum.Enum

Class variables

var all
var bus
var car
var electric
var handicapped
var residents
var truck
var woman
class ContactPoint (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for ContactPoint

Expand source code
class ContactPoint(Enum):
    """Enum for ContactPoint"""

    start = auto()
    end = auto()

Ancestors

  • enum.Enum

Class variables

var end
var start
class Direction (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for Direction

Expand source code
class Direction(Enum):
    """Enum for Direction"""

    same = auto()
    opposite = auto()

Ancestors

  • enum.Enum

Class variables

var opposite
var same
class Dynamic (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for Dynamic

Expand source code
class Dynamic(Enum):
    """Enum for Dynamic"""

    yes = auto()
    no = auto()

Ancestors

  • enum.Enum

Class variables

var no
var yes
class ElementType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for LaneChange

Expand source code
class ElementType(Enum):
    """Enum for LaneChange"""

    road = auto()
    junction = auto()

Ancestors

  • enum.Enum

Class variables

var junction
var road
class FillType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for FillType

Expand source code
class FillType(Enum):
    """Enum for FillType"""

    asphalt = auto()
    cobble = auto()
    concrete = auto()
    grass = auto()
    gravel = auto()
    pavement = auto()
    soil = auto()

Ancestors

  • enum.Enum

Class variables

var asphalt
var cobble
var concrete
var grass
var gravel
var pavement
var soil
class JunctionGroupType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for JunctionGroup

Expand source code
class JunctionGroupType(Enum):
    """Enum for JunctionGroup"""

    roundabout = auto()
    unknown = auto()

Ancestors

  • enum.Enum

Class variables

var roundabout
var unknown
class JunctionType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for JunctionType

Expand source code
class JunctionType(Enum):
    """Enum for JunctionType"""

    default = auto()
    virtual = auto()
    direct = auto()

Ancestors

  • enum.Enum

Class variables

var default
var direct
var virtual
class LaneChange (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for LaneChange

Expand source code
class LaneChange(Enum):
    """Enum for LaneChange"""

    increase = auto()
    decrease = auto()
    both = auto()
    none = auto()

Ancestors

  • enum.Enum

Class variables

var both
var decrease
var increase
var none
class LaneType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for LaneType

Expand source code
class LaneType(Enum):
    """Enum for LaneType"""

    none = auto()
    driving = auto()
    stop = auto()
    shoulder = auto()
    biking = auto()
    sidewalk = auto()
    curb = auto()
    border = auto()
    restricted = auto()
    parking = auto()
    bidirectional = auto()
    median = auto()
    special1 = auto()
    special2 = auto()
    special3 = auto()
    roadWorks = auto()
    tram = auto()
    rail = auto()
    entry = auto()
    exit = auto()
    offRamp = auto()
    onRamp = auto()
    connectingRamp = auto()
    bus = auto()
    taxi = auto()
    HOV = auto()
    mwyEntry = auto()
    mwyExit = auto()

Ancestors

  • enum.Enum

Class variables

var HOV
var bidirectional
var biking
var border
var bus
var connectingRamp
var curb
var driving
var entry
var exit
var median
var mwyEntry
var mwyExit
var none
var offRamp
var onRamp
var parking
var rail
var restricted
var roadWorks
var shoulder
var sidewalk
var special1
var special2
var special3
var stop
var taxi
var tram
class MarkRule (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for MarkRule

Expand source code
class MarkRule(Enum):
    """Enum for MarkRule"""

    no_passing = auto()
    caution = auto()
    none = auto()

Ancestors

  • enum.Enum

Class variables

var caution
var no_passing
var none
class ObjectType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for ObjectType taken from OpenDRIVE 1.6 without deprecated types

Expand source code
class ObjectType(Enum):
    """Enum for ObjectType taken from OpenDRIVE 1.6 without deprecated types"""

    none = auto()
    obstacle = auto()
    pole = auto()
    tree = auto()
    vegetation = auto()
    barrier = auto()
    building = auto()
    parkingSpace = auto()
    patch = auto()
    railing = auto()
    trafficIsland = auto()
    crosswalk = auto()
    streetLamp = auto()
    gantry = auto()
    soundBarrier = auto()
    roadMark = auto()

Ancestors

  • enum.Enum

Class variables

var barrier
var building
var crosswalk
var gantry
var none
var obstacle
var parkingSpace
var patch
var pole
var railing
var roadMark
var soundBarrier
var streetLamp
var trafficIsland
var tree
var vegetation
class Orientation (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for Orientation

Expand source code
class Orientation(Enum):
    """Enum for Orientation"""

    positive = auto()
    negative = auto()
    none = auto()

Ancestors

  • enum.Enum

Class variables

var negative
var none
var positive
class RawDataPostProcessing (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for dataQuality RawData PostProcessing

Expand source code
class RawDataPostProcessing(Enum):
    """Enum for dataQuality RawData PostProcessing"""

    cleaned = auto()
    fused = auto()
    property = auto()
    raw = auto()

Ancestors

  • enum.Enum

Class variables

var cleaned
var fused
var property
var raw
class RawDataSource (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for dataQuality RawData PostProcessing

Expand source code
class RawDataSource(Enum):
    """Enum for dataQuality RawData PostProcessing"""

    cadaster = auto()
    custom = auto()
    sensor = auto()

Ancestors

  • enum.Enum

Class variables

var cadaster
var custom
var sensor
class RoadMarkColor (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for RoadMarkColor

Expand source code
class RoadMarkColor(Enum):
    """Enum for RoadMarkColor"""

    standard = auto()
    blue = auto()
    green = auto()
    red = auto()
    white = auto()
    yellow = auto()
    orange = auto()

Ancestors

  • enum.Enum

Class variables

var blue
var green
var orange
var red
var standard
var white
var yellow
class RoadMarkType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for RoadMarkType

Expand source code
class RoadMarkType(Enum):
    """Enum for RoadMarkType"""

    none = auto()
    solid = auto()
    broken = auto()
    solid_solid = auto()
    solid_broken = auto()
    broken_solid = auto()
    broken_broken = auto()
    botts_dots = auto()
    grass = auto()
    curb = auto()
    custom = auto()
    edge = auto()

Ancestors

  • enum.Enum

Class variables

var botts_dots
var broken
var broken_broken
var broken_solid
var curb
var custom
var edge
var grass
var none
var solid
var solid_broken
var solid_solid
class RoadMarkWeight (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for RoadMarkWeight

Expand source code
class RoadMarkWeight(Enum):
    """Enum for RoadMarkWeight"""

    standard = auto()
    bold = auto()

Ancestors

  • enum.Enum

Class variables

var bold
var standard
class RoadSide (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for RoadSide

Expand source code
class RoadSide(Enum):
    """Enum for RoadSide"""

    both = auto()
    left = auto()
    right = auto()

Ancestors

  • enum.Enum

Class variables

var both
var left
var right
class RoadType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for RoadType

Expand source code
class RoadType(Enum):
    """Enum for RoadType"""

    unknown = auto()
    rural = auto()
    motorway = auto()
    town = auto()
    lowSpeed = auto()
    pedestrian = auto()
    bicycle = auto()
    townExpressway = auto()
    townCollector = auto()
    townArterial = auto()
    townPrivate = auto()
    townLocal = auto()
    townPlayStreet = auto()

Ancestors

  • enum.Enum

Class variables

var bicycle
var lowSpeed
var motorway
var pedestrian
var rural
var town
var townArterial
var townCollector
var townExpressway
var townLocal
var townPlayStreet
var townPrivate
var unknown
class TrafficRule (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for MarkRule

Expand source code
class TrafficRule(Enum):
    """Enum for MarkRule"""

    RHT = auto()
    LHT = auto()
    none = auto()

Ancestors

  • enum.Enum

Class variables

var LHT
var RHT
var none
class TunnelType (value, names=None, *, module=None, qualname=None, type=None, start=1)

Enum for TunnelType

Expand source code
class TunnelType(Enum):
    """Enum for TunnelType"""

    standard = auto()
    underpass = auto()

Ancestors

  • enum.Enum

Class variables

var standard
var underpass