nuplan-devkit icon indicating copy to clipboard operation
nuplan-devkit copied to clipboard

About the height information in the dataset.

Open nemonswx opened this issue 2 years ago • 1 comments

Is there a way to find the height information for various object in the dataset? Like ego vehicle rear axle, tracked objects and road element?

nemonswx avatar Aug 11 '23 21:08 nemonswx

# ego height 
nuplan/common/actor_state/vehicle_parameters.py
def get_pacifica_parameters() -> VehicleParameters:
    """
    :return VehicleParameters containing parameters of Pacifica Vehicle.
    """
    return VehicleParameters(
        vehicle_name="pacifica",
        vehicle_type="gen1",
        width=1.1485 * 2.0,
        front_length=4.049,
        rear_length=1.127,
        wheel_base=3.089,
        cog_position_from_rear_axle=1.67,
        height=1.777,
    )

# tracked objects height 
        SELECT  c.name AS category_name,
                lb.x,
                lb.y,
                lb.z,
                lb.yaw,
                lb.width,
                lb.length,
                lb.height,
                lb.vx,
                lb.vy,
                lb.token,
                lb.track_token,
                lp.timestamp
        FROM lidar_box AS lb
        INNER JOIN track AS t
            ON t.token = lb.track_token
        INNER JOIN category AS c
            ON c.token = t.category_token
        INNER JOIN lidar_pc AS lp
            ON lp.token = lb.lidar_pc_token
        WHERE lp.token = ?

ycool avatar Aug 31 '23 22:08 ycool