feat(ansible): add demo_artifacts role for sample maps and rosbag#7067
Open
feat(ansible): add demo_artifacts role for sample maps and rosbag#7067
Conversation
Adds a new autoware.dev_env.demo_artifacts role that downloads the sample-map-planning, sample-map-rosbag, and sample-rosbag artifacts used by the planning-sim and rosbag-replay-simulation demos from the autoware-files S3 bucket (replacing the gdown-from-Google-Drive flow in the docs). Wired into install_dev_env.yaml under tags [never, demo_artifacts] so it only runs when --tags demo_artifacts is requested explicitly. Layout follows the consolidated autoware_data structure proposed in discussion #7064: maps/demos/ for the maps and recordings/bags/demos/ for the rosbag. 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:
|
Without cache_valid_time, the unzip install task forces an apt update on every playbook run, which is slow on otherwise-idempotent re-runs. Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
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.
autoware.dev_env.demo_artifactsrole that downloads and extracts the sample maps and rosbag used by the planning-sim and rosbag-replay-simulation demos.autoware-filesS3 (replacing the manualgdownfrom Google Drive in the docs) and verified with sha256 checksums.install_dev_env.yamlunder tags[never, demo_artifacts]so it only runs when--tags demo_artifactsis requested explicitly.Why
The demos currently require users to manually run
gdownagainst Google Drive links andunzipinto~/autoware_map/, which is fragile (rate limits, expiring links) and inconsistent with how every other artifact set is provisioned. Moving the demo assets behind the same ansible/S3 pipeline as the ML models gives users a one-command setup and a reproducible path forward.The role lays the artifacts out under the consolidated
autoware_data/structure proposed in the design discussion - maps undermaps/demos/, rosbags underrecordings/bags/demos/- so this PR also seeds the new layout for an asset type that is currently misfiled under~/autoware_map/.autoware_datafolder #7068Test plan
~/autoware_data/maps/demos/sample-map-planning/{lanelet2_map.osm,pointcloud_map.pcd,map_config.yaml,map_projector_info.yaml}exist~/autoware_data/maps/demos/sample-map-rosbag/{lanelet2_map.osm,pointcloud_map.pcd,map_projector_info.yaml}exist~/autoware_data/recordings/bags/demos/sample-rosbag/{metadata.yaml,sample-rosbag_0.db3}existok(idempotent - no re-downloads, no re-extracts changing state).ansible-playbook autoware.dev_env.install_dev_env --tags universe --checkand verifydemo_artifactstasks are skipped.tasks/main.yaml:~/autoware_data/maps/demos/sample-map-planning/and confirm RViz loads the map.~/autoware_data/maps/demos/sample-map-rosbag/and~/autoware_data/recordings/bags/demos/sample-rosbag/and confirm playback.