All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tools.aqua.stars.importer.carla.dataclasses.JsonLane.kt Maven / Gradle / Ivy

/*
 * Copyright 2023-2024 The STARS Project Authors
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package tools.aqua.stars.importer.carla.dataclasses

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
 * Json object for lanes.
 *
 * @property roadId The identifier of the road.
 * @property laneId The identifier of the lane.
 * @property laneType The [JsonLaneType] of the lane.
 * @property laneWidth The width of the lane.
 * @property laneLength The length of the lane.
 * @property s S.
 * @property predecessorLanes List of [JsonContactLaneInfo]s for preceding lanes.
 * @property successorLanes List of [JsonContactLaneInfo]s for successive lanes.
 * @property intersectingLanes List of [JsonContactLaneInfo]s for intersecting lanes.
 * @property laneMidpoints List of [JsonLaneMidpoint]s for lane midpoints.
 * @property speedLimits List of [JsonSpeedLimit]s for the speed limits.
 * @property landmarks List of [JsonLandmark]s on list lane.
 * @property contactAreas List of [JsonContactArea]s on this lane.
 * @property trafficLights List of [JsonStaticTrafficLight]s on this lane.
 */
@Serializable
data class JsonLane(
    @SerialName("road_id") val roadId: Int,
    @SerialName("lane_id") val laneId: Int,
    @SerialName("lane_type") val laneType: JsonLaneType,
    @SerialName("lane_width") val laneWidth: Double,
    @SerialName("lane_length") var laneLength: Double,
    @SerialName("s") val s: Double,
    @SerialName("predecessor_lanes") val predecessorLanes: List,
    @SerialName("successor_lanes") val successorLanes: List,
    @SerialName("intersecting_lanes") val intersectingLanes: List,
    @SerialName("lane_midpoints") val laneMidpoints: List,
    @SerialName("speed_limits") val speedLimits: List,
    @SerialName("landmarks") var landmarks: List,
    @SerialName("contact_areas") val contactAreas: List,
    @SerialName("traffic_lights") var trafficLights: List,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy