feat(ansible): add the Kashiwanoha CARLA map to demo_artifacts - #7301
Merged
Conversation
The CARLA demo needs a map directory that holds the same roads twice: a lanelet2 map for Autoware and an OpenDRIVE for CARLA. The AutowareFoundation/map-carla-kashiwanoha dataset on Hugging Face carries both, plus the map origin, at tag 0.2.0. The role downloads that tag into maps/carla-kashiwanoha with the same hf download loop shape as the artifacts role, so the next map dataset is one more loop entry. The demo video in the dataset is excluded, because no node reads it. The huggingface_cli role joins the dependencies, so hf is present on a clean host. Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
xmfcx
marked this pull request as ready for review
September 3, 2026 11:26
xmfcx
requested review from
isamu-takagi,
mitsudome-r,
oguzkaganozt and
youtalk
as code owners
September 3, 2026 11:26
mitsudome-r
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
demo_artifactsrole now downloads the Kashiwanoha map for the CARLA demo. The map lives on Hugging Face as the datasetAutowareFoundation/map-carla-kashiwanoha, pinned to tag0.2.0. It lands in~/autoware_data/maps/carla-kashiwanoha/, beside the two sample maps.The dataset is a complete Autoware map directory plus the CARLA side of the same roads:
lanelet2_map.osmmap_projector_info.yamlkashiwanoha.xodrCARLA has no map of this area. The world is built from the OpenDRIVE at run time. The dataset card carries that step and the provenance of each file: https://huggingface.co/datasets/AutowareFoundation/map-carla-kashiwanoha
The task uses the same
hf downloadloop shape as theartifactsrole, so the next map dataset is one more loop entry. It passes--repo-type dataset, because this is a dataset repository. It excludes the demo video in the dataset, which no node reads. Thehuggingface_clirole joins the dependencies ofdemo_artifacts, sohfis present on a clean host.The role README gets the new directory in the layout tree and a short note on the three files.
The map was first proposed as files inside
autoware_universe. That PR was closed, and the data moved to the Hub, the same route as the models.The CARLA demo compose file does not use this map yet. That change waits for the next release, because the published images carry an
autoware_carla_interfacefrom before thecarla_mapoverride.AI usage
AI usage: Written with Claude Code: the role change, the README, the dataset completion on Hugging Face, and the verification below. I read every line.
Self-review: It downloads fine, also ran carla on my local. Safe to merge.
Verification: The task ran standalone against tag
0.2.0and produced the three map files with matching checksums. The result directory then carried a full autonomous drive in CARLA.The download task, standalone against localhost
The new task, copied verbatim into a one host playbook. Ubuntu 24.04,
hf1.28.0 from pipx.ok=2 changed=0 unreachable=0 failed=0,rc: 0, 3 s.kashiwanoha.xodr,lanelet2_map.osm,map_projector_info.yaml,README.md,.gitattributes. No.mp4.sha256sum lanelet2_map.osmis4fe358f2d1e182dc76de296e5619086f8d8ad2fcab3e6d8f99f6e3d724a84e6d, equal toplanning/autoware_diffusion_planner/test_map/lanelet2_map.osminautoware_universe.sha256sum kashiwanoha.xodrisfbd06aec46853270548a62f16d8754c8cdb669113b52726fc6477e9789302df5, equal to the LFS object the Hub reports for the tag.demo_artifactsrole. Itsunziptask needs sudo, and this host has no passwordless sudo.The map files, loaded by Autoware nodes
ros2 launch autoware_map_projection_loader map_projection_loader.launch.xmlon the downloadedmap_projector_info.yaml: the node loggedLoaded map projector info, and/map/map_projector_infopublishedLocalCartesianUTM, origin35.9033135426554 / 139.93338978245356,scale_factor: 0.9996.lanelet2.io.loadRobuston the downloadedlanelet2_map.osmwith the Autoware regulatory elements registered: 0 errors, 190 lanelets, 51 regulatory elements.A drive on the downloaded directory
CARLA 0.9.16 in Docker, the
universe-cuda-jazzy-1.9.0image with themainbranchautoware_carla_interfaceoverlaid,planning_simulator.launch.xmlwith ground truth localization. 2026-09-03.kashiwanoha.xodrin 5.9 s:Carla/Maps/OpenDriveMap, 238 spawn points.ARRIVEDat 10:02:01, 143 m route at 4.2 m/s.Static checks
ansible-playbook autoware.dev_env.install_dev_env --tags demo_artifacts --syntax-checkpassed.pre-commit runon the three files passed:yamllint,prettier,markdownlint.ansible-lint, not installed on this host. Not run: a Humble or 22.04 host.