visualize-ros-rviz
하는 일
이 스킬은 실행 중인 CARLA 시뮬레이터가 보내는 ROS 2 메시지를 확인하고, 이를 보여 주는 뷰어를 엽니다. 자율주행 소프트웨어를 CARLA에 연결하면서 데이터가 실제로 도착하는지 확인해야 하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓시뮬레이터의 센서 및 지도 메시지가 실제로 전송되는지 확인하고 싶을 때.
- ✓메시지가 일정한 속도로 도착하는지 메시지 주기를 보고 싶을 때.
- ✓센서가 달린 데모 차량을 보려고 RViz 뷰어를 열고 싶을 때.
스킬 링크
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ros2/visualize-ros-rviz/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“CARLA 지도와 라이다 토픽이 ROS 2로 실제로 도착하는지 확인하고, 볼 수 있도록 뷰어를 열어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 ROS 2 도구를 Docker 컨테이너 안에서 실행하므로, 컴퓨터에 따로 설치할 필요가 없습니다. 토픽을 나열하고, 메시지를 읽고, 센서가 달린 데모 차량을 시작할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
See the ROS 2 side of a CARLA server
Paths.
scripts/…andreferences/…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.
Everything else in this collection acts through the RPC API. This skill is the
consumer side: it proves what is really on the DDS wire and draws it. It
never launches a simulator, and it needs no ROS 2 on the host — the ros2 CLI
and RViz run inside images built from the checkout's own
PythonAPI/examples/ros2/.
Use it after [[run-carla-server]] ROS2=1: world-data ros-topics says what
should be published, this says what is.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: A server is running WITH ROS 2, on a known --rmw and domain
- [ ] Step 3: topics -> prove /clock exists; echo/hz -> prove data flows
- [ ] Step 4: (opt-in) demo -> spawn the stack; rviz -> draw it
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 3: Inspect (read-only)
source scripts/env.sh
bash scripts/ros_view.sh topics # ros2 topic list + verdict
bash scripts/ros_view.sh info /carla/map # type, endpoints, QoS
bash scripts/ros_view.sh echo /carla/map # one sample (latched OpenDRIVE)
bash scripts/ros_view.sh hz /carla/hero/lidar/point_cloud 10
bash scripts/ros_view.sh local-env # exports for a LOCAL ros2 install
echo adds --qos-durability transient_local --full-length automatically for
/carla/map: it is latched and published only on episode start, so a default
(volatile) subscription waits forever and a default echo truncates the OpenDRIVE
at 128 characters.
Using a local ROS 2 instead of these containers? Run
eval "$(bash scripts/ros_view.sh local-env)" first. It exports the checkout's
RMW profile, which forces UDP-only transport. Without it CARLA's
shared-memory-built Fast DDS never matches your subscriber: the topics list fine
and no data ever arrives, with no error on either side.
topics is the one to run first: it waits for DDS discovery, lists the topics
and fails loudly with the ordered list of causes when /clock is absent
(not built with ROS 2 → not started with --ros2 → domain mismatch → RMW
mismatch → missing Zenoh router).
Pass ROS names (/clock), not DDS names (rt/clock) — the rt/ prefix is
the DDS-level encoding of the same topic.
Step 4: Demo stack and RViz (opt-in — has side effects)
bash scripts/ros_view.sh demo # SPAWNS a hero + camera/lidar/GNSS/IMU
bash scripts/ros_view.sh demo --map-only # only the lane markers, no actors
bash scripts/ros_view.sh rviz # RViz2 with the bundled preset
demo mutates the world: it spawns a hero vehicle with four sensors, drives
it on autopilot, publishes map->hero TF and converts the latched
/carla/map OpenDRIVE into /carla/map_markers for RViz. Run it only when the
request asks for the demo or for a live scene to visualise; it cleans up its
actors and restores the world settings on exit (single Ctrl+C). A second
concurrent run fails fast on the fixed container name instead of spawning a
duplicate hero on the same topics.
rviz is read-only and needs $DISPLAY. Both modes delegate to the checkout's
own run_map_and_lidar_demo.sh / run_rviz.sh, so their behaviour is never
forked here.
On CARLA 0.10.0 (the UE5 line: 5.5 and 5.8)
/carla/map is gone on 0.10.0. CarlaMapPublisher exists in 0.9.x's
LibCarla/source/carla/ros2/publishers/ and is absent in 0.10.0, so the latched
OpenDRIVE topic is never advertised. info /carla/map and echo /carla/map
will simply wait. Get the map with map.to_opendrive() over RPC, or point RViz
at the lidar/camera topics, which are unchanged.
That also means the RViz lane-network preset has no map source on 0.10.0 — the road network has to come from the client side.
Topics that gained publishers on 0.10.0, UE 5.8 only: the Autoware set
(AutowareGNSSPublisher, AutowareVehicleStatusPublisher, from
sensor.other.autoware_gnss and sensor.other.vehicle_status). The DVS camera
publisher was renamed CarlaDVSPublisher → CarlaDVSCameraPublisher; its topics
are unchanged.
rt/tf is additionally gated by World.set_publish_tf() on 0.10.0, so a missing
TF tree can now mean "swit
자주 묻는 질문
컴퓨터에 ROS 2를 설치해야 하나요?
아니요. 도구는 필요한 것을 모두 갖춘 컨테이너에서 실행됩니다.
데모 차량을 시작할 수 있나요?
네. 카메라, 라이다, GNSS, IMU 센서를 단 자동 조종 차량 데모를 실행할 수 있습니다.
시뮬레이터도 시작하나요?
아니요. ROS 2 옵션을 켠 채로 이미 실행 중인 CARLA 서버만 점검합니다.
상세 정보
작성자의 원본 설명
Inspects and visualises a ROS-2-enabled CARLA server from Docker containers, with no local ROS 2 install — list/echo/rate-check topics (the "are the topics actually on the wire" check), run the bundled map-and-lidar demo stack (hero vehicle with camera/lidar/GNSS/IMU on autopilot), and open RViz2 with the lane-network preset. Use when the user asks to "check the ROS topics", "echo /carla/map", "is CARLA publishing to ROS", "visualise the lidar in RViz", "open rviz", or "run the ROS 2 demo".
repo: carla-simulator/carla
인기도
- GitHub 스타
- 15k
- 순위
- #11107
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
create-leaderboard-route
15k카메라 화면에서 웨이포인트와 시나리오 트리거를 배치하고, 확인하고, 순서를 정해 CARLA 리더보드 경로 파일을 만들도록 에이전트를 돕습니다.
package-leaderboard-agent
15k주행 에이전트를 CARLA Leaderboard 제출용 Docker 이미지로 패키징하고, 폴더 구조를 확인하며 이미지가 에이전트를 로드하는지 테스트하도록 돕습니다.
read-leaderboard-results
15kCARLA Leaderboard 결과 파일을 읽고 경로별 점수와 위반 사항을 설명하며, 다른 규칙 버전에서 실행을 다시 채점하도록 에이전트를 돕습니다.
run-leaderboard-evaluation
15k주행 에이전트로 경로 세트에 대한 CARLA Leaderboard 평가를 실행하도록 돕습니다. 먼저 설정을 확인하고, 재개할 수 있는 체크포인트를 저장합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.