跳到正文
Skillpedia
分析与电子表格15k · #11104

telemetry

它能做什么

这项技能报告 CARLA 模拟中某个对象的当前状态,例如位置、速度和方向。适合想检查模拟汽车行为的人。

适用场景

  • ✓当你想知道主测试车现在的速度时。
  • ✓当你需要模拟中某辆特定汽车的位置和朝向时。
  • ✓当你想在模拟运行时观察汽车的实时读数时。

技能链接

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/telemetry/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/telemetry/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 CARLA 模拟中测试车现在开多快?它朝向哪个方向?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会对整个模拟拍一张快照,使所有读数都属于同一时刻。然后找到你指定的汽车并显示其数值,也可以持续输出。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Read actor telemetry

Paths. scripts/… and references/… 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.

常见问题

它如何选出正确的车?

你可以用 ID、角色(例如 hero)、颜色,或离某一点最近的车来指定。

它显示汽车的哪些读数?

位置、旋转、速度、加速度,以及车辆的油门、转向和刹车输入。

如果多于一辆车符合条件呢?

这项技能会停下来请你缩小范围,以免读到错误车辆的数据。

详情

作者的原始描述

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

热度

GitHub 星标
15k
排名
#11104
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能