create-sensor

Spawns and attaches cameras, lidar, radar, and other sensors to actors on a running CARLA server.

3|Updated Jul 20, 2026
One-click install
npx skills add https://github.com/carla-simulator/carla-agentic-tools --skill create-sensor-carla-simulator
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-sensor
Source: https://github.com/carla-simulator/carla-agentic-tools/tree/main/skills/python-api/create-sensor
Command: npx skills add https://github.com/carla-simulator/carla-agentic-tools --skill create-sensor-carla-simulator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires carla, and includes scripts (resource) and references (resource) components.

What problem does it solve? Configuring CARLA sensors requires knowing blueprint IDs, attribute names, mount transforms, and the non-obvious requirement that a sensor only ticks when something listens to it. This Skill encodes those failure modes so an agent can spawn a correctly configured sensor on a running CARLA server instead of improvising against the Python API. ## Core Features & Use Cases - Sensor spawning and attachment: Spawn cameras (rgb/depth/semantic/instance/optical-flow/normals), lidar, radar, IMU, GNSS, and collision/lane-invasion/obstacle sensors, attached to the ego or any actor with a mount transform and blueprint attributes. - Native ROS 2 publishing: Enable enable_for_ros with --ros, set topic and TF frame naming via --ros-name/--ros-frame-id, and print the exact topics the sensor will publish. - Prerequisite checking and lifecycle: Verify the carla module and server reachability before acting, list available blueprints, and destroy sensors with verified cleanup. - Use Case: A user asks to "put a dashcam on the ego". The Skill checks the server, spawns an 800x600 camera.rgb attached to the hero vehicle at the default mount, prints the sensor id, and hands off to the read-sensor skill for data capture. ## Quick Start Ask the agent to add a camera or lidar to the ego vehicle on the running CARLA server, for example "put an 800x600 dashcam on the ego and publish it to ROS".

Frequently Asked Questions about create-sensor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I attach a camera or lidar to a vehicle in CARLA?▼

Spawn the sensor with a blueprint type like camera.rgb or lidar.ray_cast and attach it to a vehicle by role name (hero for the ego) or parent actor id. The mount transform is relative to the parent, for example x=1.5, z=2.4 for a dashcam.

How do I publish CARLA sensor data to ROS 2 topics?▼

Spawn the sensor with --ros on a server started with --ros2, which calls enable_for_ros() so the sensor ticks and publishes without a Python listener. Use --ros-name and --ros-frame-id to control topic and TF frame naming, set once at spawn.

Why does my CARLA sensor publish no ROS topic?▼

A CARLA sensor is only ticked while something listens to its stream, so without enable_for_ros() it produces no data and no topic. Re-spawn with --ros or call enable_for_ros() on the existing actor.

Does this work with CARLA 0.10.0 and the UE5 line?▼

Yes, but 0.10.0 adds blueprints like fisheye cameras and hss_lidar while removing per-shot photographic attributes from camera.rgb. Post-processing is selected via post_process_profile JSON files instead of attributes like bloom_intensity.

What are the prerequisites for spawning CARLA sensors?▼

The active Python interpreter must import the carla module and a CARLA server must be reachable at CARLA_HOST:CARLA_PORT. Attached sensors also need an existing parent actor, such as an ego vehicle spawned with the spawn-vehicles skill.