paralleldomain.data_lab.config.world

class DecorationData(*, proto=None, decoration_preset=None)

Metadata of parking slot decal decorations.

Parameters:
  • decoration_preset (Optional[DecorationPreset]) – decoration_preset

  • proto (Optional[pd_unified_generator_pb2.DecorationData]) –

decoration_preset
class DecorationPreset(*, proto=None, preset_name=None, variant=None)

Specifies the name of a parking slot decal decoration to be applied.

Parameters:
preset_name

The name of the parking slot decal decoration. Must be provided.

variant

Specifies which variant of the parking slot decal decoration should be used. Default: 0

class EnvironmentParameters(*, proto=None, sign_spawn_probability=None, crosswalk_sign_spawn_probability=None, marker_data_map=None, region=None, parking_space_data=None)

Parameters that modify map level attributes.

Parameters:
sign_spawn_probability

Specifies the spawn probability of signs on maps that begin with ‘SIGNAGE_’. Must be a sit within 0.0 to 1.0. If not provided, will default to 0.

crosswalk_sign_spawn_probability

Probability of spawning crosswalk signs in crosswalk signs location in or near crosswalks on maps that begin with ‘SIGNAGE_’. Must be a sit within 0.0 to 1.0. If not provided, will default to 0.

marker_data_map

Specifies road markings types across the map. If not provided, will default to the values below.

Default values:

"parking_spot_config"     {marker_type = MI_pavement_01, rgb = {1.0f, 1.0f, 1.0f}, wear = 0.0f}
"parking_lot_marker"      {marker_type = "DOUBLE_SQUARE", rgb = {1.0f, 1.0f, 1.0f}, wear = 0.0f}
"parallel_parking_marker" {rgb = {1.0f, 1.0f, 1.0f}, wear = 0.0f}
region

Specifies the countries from which road signs should be spawned on ISA maps. If not provided, will use default values.

Available options:

"Austria"
"Belgium"
"Bulgaria"
"Croatia"
"Cyprus"
"Czechia"
"Denmark"
"Estonia"
"Finland"
"France"
"Germany"
"Greece"
"Hungary"
"Ireland"
"Italy"
"Latvia"
"Lithuania"
"Luxembourg"
"Malta"
"Netherlands"
"Norway"
"Poland"
"Portugal"
"Romania"
"Slovakia"
"Slovenia"
"Spain"
"Sweden"
"Switzerland"
parking_space_data

Parameters which control the placement of parking spaces on maps. If not specified, will use defaults.

class ObjectDecorationParams(*, proto=None, decorate_chance=None, preset_distribution=None)

Parameters which control the placement of decorations on an object.

Parameters:
decorate_chance

The probability that a decoration will be applied to a particular object. Default: 0.1

preset_distribution

The distribution of which decorations should be applied to a particular object and their associated probabilities. If not provided, will use default values.

Valid values:

"None"
"TAXI_text"
"TAXI_icon"
"NO_PARKING_text"
"LOADING_ZONE_text"
"EV_JP_01_A_icon"
"EV_JP_01_B_icon"
"EV_JP_01_C_icon"
"EV_01_icon"
"EV_02_icon"
"EV_03_icon"
"Family_01_A_icon"
"Family_01_B_icon"
"Family_01_C_icon"
"PARKING_10_MIN_text"
"PARKING_30_MIN_text"
"PARKING_15_MIN_text"
"RESERVED_01_text"
"Wheelchair_01_A_icon"
"Wheelchair_01_B_icon"
"Wheelchair_01_C_icon"
"Wheelchair_01_D_icon"
class ObjectDecorations(*, proto=None, object_id=None, decoration_data=None)

Message which specifies the link between an object in the world and the decoration that is applied to it (eg. a parking slot decal decoration).

Parameters:
object_id

The id of the object to which the decoration should be applied.

decoration_data

Parameters specifying the decoration which should be applied to the object.

class ParkingSpaceData(*, proto=None, parking_lot_angle_distribution=None, lot_parking_delineation_type=None, street_parking_delineation_type=None, street_parking_angle_zero_override=None, delineation_color=None, delineation_wear_amount=None, parking_space_material=None, parking_space_tint=None, parking_space_grunge_amount=None, global_parking_decal_wear=None, parking_space_decoration=None)

Parameters that configure parking space placement on maps.

Parameters:
parking_lot_angle_distribution

Desired parking space angle for parking lots in degrees and its associated probability. Does not apply to street parking spaces. If not provided, will use defaults.

Valid angles are:

"ANGLE_30"
"ANGLE_45"
"ANGLE_60"
"PERPENDICULAR"
lot_parking_delineation_type

Specifies delineation type for parking lot spaces and its associated probability. If not provided, will use defaults.

Valid values:

"SINGLE_DASHED"
"DOUBLE_OPEN"
"DOUBLE_SQUARED"
"DOUBLE_ROUND"
"T_SHAPE"
"NO_LINE"
"BOX_CLOSED"
"BOX_OPEN_CURB"
"BOX_DOUBLE"
"SINGLE_SQUARED_OPEN_CURB"
"DOUBLE_ROUND_50CM_GAP"
"DOUBLE_ROUND_50CM_GAP_OPEN_CURB"
"DOUBLE_SQUARED_50CM_GAP_OPEN_CURB"
"T_FULL"
"T_SHORT"
street_parking_delineation_type

Specifies delineation type for non parallel street parking spaces. If not provided, will use default value of SINGLE.

Valid values:

"SINGLE"
"DASHED"
"DOUBLE_OPEN"
"DOUBLE_SQUARED"
"DOUBLE_ROUND"
"T_SHAPE"
"NO_LINE"
"BOX_CLOSED"
"BOX_OPEN_CURB"
"BOX_DOUBLE"
"SINGLE_SQUARED_OPEN_CURB"
"DOUBLE_ROUND_50CM_GAP"
"DOUBLE_ROUND_50CM_GAP_OPEN_CURB"
"DOUBLE_SQUARED_50CM_GAP_OPEN_CURB"
"T_FULL"
"T_SHORT"
street_parking_angle_zero_override

Specifies delineation type for parallel street parking spaces. If not provided, will use default value selected in street_parking_delineation_type.

Valid values:

"SINGLE"
"DASHED"
"DOUBLE_OPEN"
"DOUBLE_SQUARED"
"DOUBLE_ROUND"
"T_SHAPE"
"NO_LINE"
"UNMETERED"
"BOX_CLOSED"
"BOX_OPEN_CURB"
"BOX_DOUBLE"
"SINGLE_SQUARED_OPEN_CURB"
"DOUBLE_ROUND_50CM_GAP"
"DOUBLE_ROUND_50CM_GAP_OPEN_CURB"
"DOUBLE_SQUARED_50CM_GAP_OPEN_CURB"
"T_FULL"
"T_SHORT"
delineation_color

Specifies the color of all parking lines in RGB format. If not provided, will default to white.

delineation_wear_amount

Specifies the level of wear on all parking slot lines. A value of 0.0 is fully unworn and 1.0 is fully worn. If not provided, will use value of 0.25.

parking_space_material

The type of parking slot ground material which should be applied to the map, and their associated probability values. If not provided, defaults to MI_pavement_01.

Valid Values:

"MI_pavement_01"
"MI_ParkingTiles_BrickBasket_01"
"MI_ParkingTiles_BrickHerring_01"
"MI_ParkingTiles_BrickHex_01"
"MI_ParkingTiles_BrickOrnate_01"
"MI_ParkingTiles_CobbleStone_01"
"MI_ParkingTiles_CobbleStone_02"
"MI_ParkingTiles_ConcreteBrick_01"
"MI_ParkingTiles_ConcreteBrick_02"
"MI_ParkingTiles_ConcreteBrick_03"
"MI_ParkingTiles_ConcretePavers_01"
"MI_ParkingTiles_StoneFlag_01"
parking_space_tint

Specifies the tint of all parking slot surfaces in RGB format. If not provided, will default to un-tinted.

parking_space_grunge_amount

Specifies the level of grunge applied to all parking slot surfaces. A value of 0.0 is free of grunge and 1.0 applies maximum grunge to parking slots. If not provided, will use value of 0.25.

global_parking_decal_wear

Specifies the level of wear on all parking slot decals. A value of 0.0 is fully unworn and 1.0 is fully worn. If not provided, will use value of 0.25.

parking_space_decoration

Parameter that specifies the types and probabilities of decals that should be applied to parking slots.

class RoadMarkingData(*, proto=None, use_preset=None, override_colors=None, preset_colors=None, marker_types=None, wear=None)

Parameters which specify the appearance of road markings on the map.

Parameters:
use_preset

Flag to specify whether to use default RGB values. Not yet implemented. Default: False

override_colors

Specify an RGB value (each channel from 0.0 to 1.0) for all road markings in the map. If not provided, will use default values.

preset_colors

Specifies which colors in the asset registry to use for road markings used if use_preset is set to True. Not yet implemented, will currently have no effect.

marker_types

Specifies a marker name, and corresponds to the key as listed in marker_data_map. If not provided, will use default values in marker_data_map.

Valid values:

"Single"
"Dashed"
"Double Open"
"Double Squared"
"Double Round"
"T"
"MI_pavement_01"
"MI_ParkingTiles_BrickBasket_01"
"MI_ParkingTiles_BrickHerring_01"
"MI_ParkingTiles_BrickHex_01"
"MI_ParkingTiles_BrickOrnate_01"
"MI_ParkingTiles_CobbleStone_01"
"MI_ParkingTiles_CobbleStone_02"
"MI_ParkingTiles_ConcreteBrick_01"
"MI_ParkingTiles_ConcreteBrick_02"
"MI_ParkingTiles_ConcreteBrick_03"
"MI_ParkingTiles_ConcretePavers_01"
"MI_ParkingTiles_StoneFlag_01
wear

Specifies the level of wear applied to road markings. Ranges from 0.0 to 1.0 where 0.0 is fully unworn and 1.0 is fully worn. If not provided, will default to 0.0.