telemetry
Skill này làm gì
Skill báo cáo trạng thái hiện tại của một đối tượng trong mô phỏng CARLA, chẳng hạn vị trí, tốc độ và hướng. Skill dành cho người muốn kiểm tra cách một xe mô phỏng đang vận hành.
Khi nào nên dùng
- ✓Khi bạn muốn biết xe thử nghiệm chính đang chạy nhanh đến mức nào.
- ✓Khi bạn cần vị trí và hướng của một xe cụ thể trong mô phỏng.
- ✓Khi bạn muốn theo dõi các số đo trực tiếp của một xe khi mô phỏng chạy.
Liên kết skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/telemetry/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xe thử nghiệm của tôi đang chạy nhanh đến đâu trong mô phỏng CARLA, và nó đang hướng về phía nào?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chụp một ảnh tức thời toàn bộ mô phỏng để mọi số đo thuộc cùng một thời điểm. Sau đó nó tìm xe bạn gọi tên và hiển thị các giá trị, và có thể tiếp tục phát dữ liệu liên tục.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Read actor telemetry
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.
Report one actor's live state. Kinematics (transform, velocity, acceleration,
angular velocity) are read from a single world.get_snapshot() so they belong to
the same frame — calling the per-actor getters separately can straddle two
frames and give inconsistent numbers.
Target the actor by --id (the reliable way), --role hero, --filter,
--color, or --nearest --near-id N. If several still match, it stops and tells
you to narrow by a distinguishing attribute or resolve the id with the
world-data skill, then pass --id.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Resolve the target id (world-data) if the description is ambiguous
- [ ] Step 3: show a snapshot, or watch to stream it
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 3: Read
source scripts/env.sh
python3 scripts/telemetry.py show --role hero # the ego
python3 scripts/telemetry.py show --id 137 # a specific actor
python3 scripts/telemetry.py watch --id 137 --seconds 10 --hz 5 # stream
# resolve first, then read (ambiguous case)
# world-data actors --filter '*prius*' --near-id 100 --nearest -> id=137
python3 scripts/telemetry.py show --id 137
# or directly by a distinguishing attribute
python3 scripts/telemetry.py show --filter '*prius*' --color 255,0,0
On CARLA 0.10.0 (the UE5 line: 5.5 and 5.8)
get_telemetry_data() and show_debug_telemetry() both still exist on 0.10.0,
and everything this skill reads — location, rotation, velocity, acceleration,
angular velocity, get_control(), get_wheel_steer_angle() — is unchanged.
The one field it touches on the physics control, mass, is also unchanged. Other
physics fields were renamed wholesale by the Chaos rewrite; see
[[control-vehicle]] for the mapping if you extend this skill to report them.
Sampling caveat that is not version-specific but bites hardest here: in
asynchronous mode get_location() on a just-spawned actor returns the origin
until the first tick lands, so a "distance travelled" computed from it is really
distance-from-origin. Wait for a tick (or two) after spawning before taking a
first sample.
Examples
Example 1: how fast is the ego
User says: "how fast is the ego going?"
show --role hero → speed in km/h (+ full state).
Example 2: one prius among several
User says: "telemetry of the prius near me"
world-data actors --filter '*prius*' --near-id <ego> --nearest → id, then
telemetry show --id <id>.
Example 3: watch a vehicle accelerate
User says: "stream the ego's speed for 10 s"
watch --role hero --seconds 10 --hz 5.
Troubleshooting
Problem: "N actors match — disambiguate"
Cause: --filter is ambiguous.
Solution: use world-data to pick one, then pass --id.
Problem: speed/accel are zero or jumpy Cause: the world isn't advancing (sync mode without ticks), or the actor is idle. Solution: tick the world (set-world-settings) or run async; the snapshot keeps the reads frame-consistent regardless.
Problem: no wheel/control info Cause: the actor isn't a vehicle (walkers/sensors have no VehicleControl). Solution: expected; those show only transform/velocity/acceleration.
Outputs
Text telemetry (one snapshot, or a stream). No world change.
Detail (frame-consistent snapshot reads, the fields, vehicle-specific state) in references/telemetry.md.
Câu hỏi thường gặp
Nó chọn đúng xe bằng cách nào?
Bạn có thể gọi tên xe theo ID, vai trò như hero, màu sắc, hoặc xe gần một điểm nhất.
Nó hiển thị những số đo nào cho xe?
Vị trí, góc quay, tốc độ, gia tốc, và đầu vào ga, lái và phanh cho xe.
Nếu có nhiều xe khớp thì sao?
Skill dừng lại và yêu cầu bạn thu hẹp, để bạn không nhận số đo của xe sai.
Chi tiết
Mô tả gốc của tác giả
Reads a specific actor's live telemetry from a running CARLA server — location and rotation, velocity and speed, acceleration, angular velocity, and for vehicles the control input (throttle/steer/brake), front-wheel steer angle and mass. All kinematics come from one world snapshot so they are frame-consistent. Use when the user asks "how fast is it going", "where/what heading is the car", "show the ego's telemetry", or "stream a vehicle's state". Resolve ambiguous targets with the world-data skill.
repo: carla-simulator/carla
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11104
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
create-leaderboard-route
15kGiúp agent của bạn tạo file tuyến đường CARLA Leaderboard bằng cách đặt các điểm waypoint và trigger kịch bản từ camera của simulator, rồi kiểm tra và sắp xếp chúng.
package-leaderboard-agent
15kGiúp agent của bạn đóng gói một agent lái xe thành image Docker để nộp lên CARLA Leaderboard, kiểm tra cấu trúc thư mục và thử rằng image nạp được agent.
read-leaderboard-results
15kGiúp agent của bạn đọc file kết quả CARLA Leaderboard, giải thích điểm và vi phạm của từng tuyến, và chấm lại một lần chạy theo phiên bản luật khác.
run-leaderboard-evaluation
15kGiúp agent của bạn chạy bộ đánh giá CARLA Leaderboard trên một tập tuyến với agent lái xe, kiểm tra thiết lập trước và lưu checkpoint để có thể tiếp tục.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.