Aller au contenu
Skillpedia
Tests15k · #11135

run-autoware-ue58

Ce qu’il fait

Cette compétence relie le logiciel de conduite autonome Autoware au simulateur CARLA sous Unreal Engine 5.8 pour qu'ils échangent directement des messages. Elle s'adresse aux ingénieurs qui veulent tester Autoware dans une circulation simulée.

Quand l’utiliser

  • ✓Quand vous voulez tester le logiciel de conduite autonome Autoware dans CARLA.
  • ✓Quand vous devez vérifier quels messages et capteurs les deux systèmes partagent.
  • ✓Quand vous avez besoin de fichiers de carte pour Autoware créés à partir d'une ville CARLA.

Lien du skill

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/run-autoware-ue58/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/run-autoware-ue58/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Peux-tu m'aider à relier Autoware à mon simulateur CARLA sous Unreal 5.8 et vérifier que les messages circulent ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le simulateur publie directement l'état de sa voiture et les données de ses capteurs sur le réseau de messagerie, et écoute les commandes de contrôle d'Autoware. L'agent vérifie le build et la machine, crée les fichiers de carte dont Autoware a besoin, puis lance l'un des deux modes de conduite inclus.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Run Autoware against CARLA on UE 5.8

Paths. scripts/… and references/… below are relative to the directory holding this SKILL.md. Your working directory is the user's project, not that directory, so prefix them with its absolute path or the command is not found.

There is no bridge. The CARLA server publishes vehicle status and sensor data straight onto DDS and subscribes to Autoware's control commands, because the publishers and the subscriber are compiled into the simulator:

CARLA server  --rt/vehicle/status/*, sensor topics-->  Autoware
              <--rt/control/command/*, rt/vehicle/engage--

That is the whole integration, and it only exists if two separate things are true — the build has -DENABLE_ROS2=ON (compile-time, cannot be enabled later) and the server was started with the single-dash -ros2 flag ([[run-carla-ue58-server]]).

The pieces are ue58-only. AutowareGNSSPublisher, AutowareVehicleStatusPublisher, AutowareControlSubscriber and AutowareSteeringCompensation.h do not exist in the UE4 tree, and neither do the sensor.other.autoware_gnss / sensor.other.vehicle_status blueprints.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: probe — is this build and this machine equipped at all
- [ ] Step 3: maps — generate lanelet2 + pointcloud (once per town)
- [ ] Step 4: start the server WITH -ros2, then autoware_demo.py
- [ ] Step 5: launch the stack (dry run first)

Step 2: What you have

source scripts/env.sh

bash scripts/autoware.sh probe      # build flag, native pieces, stack, maps
bash scripts/autoware.sh topics     # the DDS contract, read from the source
bash scripts/autoware.sh sensors    # Autoware blueprints on a running server

topics greps the publisher and subscriber constructors rather than restating them, so it cannot drift from your build. Measured contract:

CARLA → Autoware Autoware → CARLA
rt/vehicle/status (base) rt/control/command (base)
rt/vehicle/status/velocity_status rt/control/command/control_cmd
rt/vehicle/status/steering_status rt/control/command/gear_cmd
rt/vehicle/status/control_mode rt/control/command/turn_indicators_cmd
rt/vehicle/status/gear_status rt/control/command/hazard_lights_cmd
rt/vehicle/status/turn_indicators_status rt/control/command/emergency_cmd
rt/vehicle/status/hazard_lights_status rt/vehicle/engage

Status is RELIABLE / VOLATILE / KEEP_LAST 1; commands are RELIABLE / TRANSIENT_LOCAL / KEEP_LAST 1, so a late-joining simulator still receives the last command. A ROS 2 node sees these without the rt/ prefix.

sensors confirms the rig's blueprints exist and prints each one's ROS attributes. Both ros_name (a topic segment) and ros_topic_name (the exact topic, overriding generation) are on every sensor — the second is how the rig lands on Autoware's expected names rather than CARLA's.

Step 3: Maps — Autoware does not read your .xodr

bash scripts/autoware.sh maps --town Town10HD_Opt

Autoware needs lanelet2_map.osm, pointcloud_map.pcd and map_projector_info.yaml, generated from the CARLA map by av_stacks/autoware/map_tools/. They land in map_tools/maps/<Town>/, and probe reports which towns are complete. A prebuilt set can also be fetched with map_tools/fetch_prebuilt_maps.sh.

Step 4: Server, then the CARLA-side driver

cd ../run-carla-ue58-server && ROS2=1 DETACH=1 bash scripts/run_server.sh game
cd ../run-autoware-ue58     && bash scripts/autoware.sh demo --spawn_index 52

autoware_demo.py owns the simulation. It applies world settings, spawns the ego and the sensor rig, and ticks the world — the stack does not. Run it before launching Autoware and leave it running. Useful flags: --list_maps, --load_map, --spawn_index N, --follow, --hz_rate, --run_async, --substepping, --resync, --mgrs_off, --time_scale.

It also writes its own post-process profile (deploy_postprocess_profile("autoware_demo", …) → Content/Carla/Config/ PostProcess/autoware_demo.json), so that file being absent is normal — it is regenerated, not shipped.

With ROS2=1 the server needs noticeably longer to accept connections than a plain start; wait for the port rather than assuming failure.

Step 5: The stack

bash scripts/autoware.sh stack --mode e2e            # DRY RUN — prints t
Questions fréquentes

Faut-il un programme pont séparé ?

Non. La connexion est intégrée au simulateur, donc aucun processus pont supplémentaire ne tourne.

Que faut-il activer pour que cela fonctionne ?

Le build doit inclure ROS 2, et le serveur doit démarrer avec l'option ROS 2.

Cela fonctionne-t-il sur la version plus ancienne Unreal 5.5 ?

Non. Ces éléments n'existent que dans la ligne Unreal Engine 5.8.

Détails

Description originale de l’auteur

Runs the Autoware autonomous-driving stack against CARLA on UE 5.8 over CARLA's native ROS 2 interface — no bridge process. Reports the DDS contract (rt/vehicle/status/* out, rt/control/command/* in), the Autoware-only sensor blueprints, generates the lanelet2 + point-cloud map artifacts Autoware needs instead of an .xodr, and drives the two shipped modes (classical NDT stack, or the camera-only VAD end-to-end model). Use when the user asks to "run Autoware on CARLA", "connect an AV stack", "drive the ego from Autoware", "generate a lanelet2 map", or asks which topics CARLA exchanges with Auto

repo: carla-simulator/carla

Popularité

Étoiles GitHub
15k
Position au classement
#11135
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires