visualize-ros-rviz
What it does
This skill checks the ROS 2 messages sent by a running CARLA simulator and opens a viewer to show them. It is for people connecting self-driving software to CARLA who need to confirm the data arrives.
When to use it
- βWhen you want to check that the simulator's sensor and map messages are really being sent.
- βWhen you need to see the rate of messages to confirm they arrive at a steady speed.
- βWhen you want to open the RViz viewer to look at a demo car with its sensors.
Skill link
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ros2/visualize-ros-rviz/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you check that the CARLA map and lidar topics are really arriving over ROS 2, and open the viewer so I can see them?β
5 new skills a week. 1 minute to read.
How it works
The agent runs the ROS 2 tools inside Docker containers, so you do not need to install them on your computer. It lists the topics, reads messages from them and can start a demo car with sensors.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Do I need to install ROS 2 on my computer?
No. The tools run in containers that come with what they need.
Can it start a demo car?
Yes. It can run a demo with a car on autopilot that carries a camera, lidar, GNSS and IMU sensors.
Does it start the simulator too?
No. It only inspects a CARLA server that is already running with ROS 2 turned on.
Details
Original description by the author
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
Popularity
- GitHub stars
- 15k
- Ranking position
- #11107
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
create-leaderboard-route
15kHelps your agent build CARLA Leaderboard route files by placing waypoints and scenario triggers from the simulator camera, then checking and ordering them.
package-leaderboard-agent
15kHelps your agent package a driving agent into a Docker image for CARLA Leaderboard submission, checking the folder layout and testing that the image loads it.
read-leaderboard-results
15kHelps your agent read a CARLA Leaderboard results file, explain each route's score and infractions, and rescore a run under the other rule version.
run-leaderboard-evaluation
15kHelps your agent run the CARLA Leaderboard evaluator on a set of routes with your driving agent, checking the setup first and saving checkpoints you can resume.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.