본문으로 건너뛰기
Skillpedia
테스트15k · #11135

run-autoware-ue58

하는 일

이 스킬은 Autoware 자율주행 소프트웨어를 Unreal Engine 5.8의 CARLA 시뮬레이터와 연결해 두 프로그램이 메시지를 직접 주고받게 합니다. 시뮬레이션 교통에서 Autoware를 테스트하려는 엔지니어를 위한 스킬입니다.

사용하는 경우

  • ✓CARLA 안에서 Autoware 자율주행 소프트웨어를 테스트하고 싶을 때.
  • ✓두 시스템이 공유하는 메시지와 센서를 확인해야 할 때.
  • ✓CARLA 도시에서 만든 Autoware용 지도 파일이 필요할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/run-autoware-ue58/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Unreal 5.8의 CARLA 시뮬레이터와 Autoware를 연결하고, 메시지가 주고받아지는지 확인하는 것을 도와줄 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

시뮬레이터는 차량 상태와 센서 데이터를 메시징 네트워크에 직접 발행하고, Autoware의 제어 명령을 기다립니다. 에이전트는 빌드와 컴퓨터를 점검하고, Autoware에 필요한 지도 파일을 만든 뒤, 포함된 두 가지 주행 모드 중 하나를 시작합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

별도의 브리지 프로그램이 필요한가요?

아니요. 연결이 시뮬레이터에 내장되어 있으므로, 추가 브리지 프로세스가 실행되지 않습니다.

이것이 작동하려면 무엇을 켜야 하나요?

빌드에 ROS 2가 포함되어야 하며, 서버도 ROS 2 옵션을 켜고 시작해야 합니다.

구버전인 Unreal 5.5에서도 되나요?

아니요. 이 부분은 Unreal 5.8 계열에만 있습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
15k
순위
#11135
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬