Skip to content

Pip package for the CVPRW 2023 Paper "Lanelet2 for nuScenes: Enabling Spatial Semantic Relationships and Diverse Map-Based Anchor Paths".

Notifications You must be signed in to change notification settings

FelixHertlein/lanelet2anchors

Repository files navigation

conference PyPI

lanelet2anchors

This package enables the generation of diverse map-based anchor paths for a given lanelet or vehicle pose. It was developed as part of our paper Lanelet2 for nuScenes: Enabling Spatial Semantic Relationships and Diverse Map-based Anchor Paths. For details check our project page.

Installation

Use Python >= 3.8 and pip to install

pip install lanelet2anchors

Usage

Check the notebooks for details and examples.

Generate anchors for given vehicle

from lanelet2anchors import AnchorGenerator

lanelet_map = AnchorGenerator(
    osm_file=osm_file, origin_latitude=49.00345654351, origin_longitude=8.42427590707
)
vehicle_pose = VehiclePose(
    x, y, psi, width, length  # define your values
)
anchors = lanelet_map.create_anchors_for_vehicle(
    vehicle_pose=vehicle_pose,
    anchor_length=100,
    num_anchors: 5,
)

Generate anchors for a given Lanelet

from lanelet2anchors import AnchorGenerator

lanelet_map = AnchorGenerator(
    osm_file=osm_file, origin_latitude=49.00345654351, origin_longitude=8.42427590707
)

lanelet_id = lanelet_map.lanelet_ids[0]
anchors = lanelet_map.create_anchors_for_lanelet(
    lanelet_id=lanelet_id, anchor_length=100
)

Citation

If you use this code for scientific research, please consider citing

@InProceedings{naumannHertleinLanelet2NuScenes2023,
    author    = {Naumann, Alexander and Hertlein, Felix and Grimm, Daniel and Zipfl, Maximilian and Thoma, Steffen and Rettinger, Achim and Halilaj, Lavdim and Luettin, Juergen and Schmid, Stefan and Caesar, Holger},
    title     = {Lanelet2 for nuScenes: Enabling Spatial Semantic Relationships and Diverse Map-Based Anchor Paths},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
    month     = {June},
    year      = {2023},
    pages     = {3247-3256}
}

License

This project is licensed under CC-BY-NC-SA. Development by FZI Forschungszentrum Informatik and all rights reserved by Robert Bosch GmbH.

About

Pip package for the CVPRW 2023 Paper "Lanelet2 for nuScenes: Enabling Spatial Semantic Relationships and Diverse Map-Based Anchor Paths".

Resources

Stars

Watchers

Forks

Packages

No packages published