visualize-ros-rviz
Was er macht
Dieser Skill prüft die ROS-2-Nachrichten eines laufenden CARLA-Simulators und öffnet einen Viewer, um sie zu zeigen. Er richtet sich an Menschen, die selbstfahrende Software an CARLA anbinden und bestätigen müssen, dass die Daten ankommen.
Wann du ihn nutzt
- ✓Wenn du prüfen willst, ob die Sensor- und Kartennachrichten des Simulators wirklich gesendet werden.
- ✓Wenn du die Nachrichtenrate sehen musst, um zu bestätigen, dass sie gleichmäßig ankommen.
- ✓Wenn du den RViz-Viewer öffnen willst, um ein Demo-Auto mit seinen Sensoren anzusehen.
Link zum Skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ros2/visualize-ros-rviz/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du prüfen, ob die CARLA-Karten- und Lidar-Themen wirklich über ROS 2 ankommen, und den Viewer öffnen, damit ich sie sehen kann?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent führt die ROS-2-Werkzeuge in Docker-Containern aus, sodass du sie nicht auf deinem Computer installieren musst. Er listet die Themen auf, liest Nachrichten daraus und kann ein Demo-Auto mit Sensoren starten.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Muss ich ROS 2 auf meinem Computer installieren?
Nein. Die Werkzeuge laufen in Containern, die alles Nötige mitbringen.
Kann er ein Demo-Auto starten?
Ja. Er kann eine Demo mit einem Auto im Autopiloten starten, das Kamera, Lidar, GNSS- und IMU-Sensoren trägt.
Startet er auch den Simulator?
Nein. Er prüft nur einen bereits laufenden CARLA-Server, auf dem ROS 2 aktiviert ist.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 15k
- Platz im Ranking
- #11107
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
create-leaderboard-route
15kHilft deinem Agenten, Routendateien für das CARLA Leaderboard zu erstellen, indem er Wegpunkte und Szenarien aus der Simulatorkamera setzt und prüft.
package-leaderboard-agent
15kHilft deinem Agenten, einen Fahragenten für die CARLA-Leaderboard-Einreichung in ein Docker-Image zu packen und zu prüfen, ob es ihn lädt.
read-leaderboard-results
15kHilft deinem Agenten, eine Ergebnisdatei des CARLA Leaderboards zu lesen, Punkte und Verstöße je Route zu erklären und Läufe neu zu bewerten.
run-leaderboard-evaluation
15kHilft deinem Agenten, die CARLA-Leaderboard-Bewertung auf vielen Routen auszuführen, mit vorheriger Prüfung und Checkpoints zum Fortsetzen.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.