跳到正文
Skillpedia
分析与电子表格12k · #11558

rerun-urdf

它能做什么

该技能展示如何把机器人描述文件(URDF)加载到 Rerun 录制中,并用关节值驱动它。适用于希望把机器人的运动部件与数据一起显示的人。

适用场景

  • ✓当你想在 Rerun 录制中显示 URDF 文件中的机器人模型时。
  • ✓当你需要根据关节值计算每个机器人部件的位置时。
  • ✓当场景中的坐标系没有连接到同一个根节点,变换树因而断开时。

技能链接

https://github.com/rerun-io/rerun/blob/main/skills/rerun-urdf/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我如何把 URDF 机器人模型加载到 Rerun 中,并让它根据我的关节数据运动?”

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

工作原理

该技能说明两个步骤:先加载静态的机器人模型,然后通过正向运动学发送关节值,以放置每个部件。结果会作为一个独立图层添加到录制中。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Rerun URDF ingestion

A URDF gives you a robot's geometry and its kinematic tree. Ingesting it means two API calls on one rerun.urdf.UrdfTree: stream the static model, then drive it with forward kinematics from joint states. The transforms it produces are derived, so they are a layer, never base (the URDF + joints (computed) row of the rerun-data-model table).

This skill is the UrdfTree API and the two judgment calls it cannot make for you: how your joint values map to URDF joints, and how the disconnected frames in the scene connect to one root. The stream/lens plumbing (LazyChunkStream, DeriveLens, Selector, writing and optimizing RRDs) is in rerun-chunk-processing; reach for it, do not re-derive it. Nothing below is tied to a data format: where your joint names, joint values, and calibration come from is yours to wire in.

Getting the URDF

Datasets rarely ship one, and the robot's own repo is not always the fastest route. In order:

  • robot_descriptions.py — pip install robot_descriptions, then from robot_descriptions import ur5e_description; ur5e_description.URDF_PATH. It downloads and caches the upstream description and hands you a plain path with the meshes already next to it. Check its index first; it covers most of the table below.
  • The vendor repo, when the description is newer than the package's pin or is not in it.
  • MuJoCo Menagerie — MJCF, not URDF, so it needs conversion. Worth it only when nothing else exists.
Robot Source Notes
SO-100 / SO-101 (LeRobot) TheRobotStudio/SO-ARM100 Simulation/SO100/so100.urdf, Simulation/SO101/so101_new_calib.urdf; plain URDF, relative mesh paths
ALOHA (ViperX 300, WidowX) Interbotix/interbotix_ros_manipulators xacro
Franka Panda / FR3 frankaemika/franka_description xacro
Universal Robots UR3 to UR20 UniversalRobots/Universal_Robots_ROS2_Description xacro, arm parameters in YAML
Kinova Gen3 Kinovarobotics/ros2_kortex xacro
UFactory xArm / Lite 6 xArm-Developer/xarm_ros2 xacro
Unitree Z1, G1, H1, Go2 unitreerobotics/unitree_ros plain URDF per robot

Two things bite before FK ever runs:

  • xacro is not URDF. First run xacro arm.urdf.xacro > arm.urdf (pip install xacro), passing whatever arguments the file requires (gripper variant, arm size). A xacro file handed to UrdfTree.from_file_path fails to parse.
  • package:// mesh URIs. The importer resolves them by scanning ROS_PACKAGE_PATH (ROS 1) and AMENT_PREFIX_PATH (ROS 2) for the package, and otherwise treats the rest of the URI as relative to the URDF's own directory. Outside a sourced ROS work
常见问题

如果我的数据集没有 URDF 文件,我从哪里获取?

该技能建议先使用 robot_descriptions Python 包,然后是机器人制造商自己的代码仓库。

我需要了解关节名称如何与 URDF 对应吗?

需要。该技能说明,把你的关节值映射到 URDF 关节,是由你自己决定的。

它能在机器人上放置传感器吗?

能。它涵盖组合固定的变换链,可以把传感器相对于机器人定位。

详情

作者的原始描述

Drive the Rerun URDF API (rerun.urdf.UrdfTree) to ingest a URDF as a Transform3D layer on a robot recording. Read when logging a robot model, running forward kinematics from joint states, composing a fixed chain for sensor extrinsics, or when the transform tree will not connect from the data alone. Builds on rerun-chunk-processing (stream/lens mechanics) and rerun-data-model (entity paths, timeline, base-vs-layer).

repo: rerun-io/rerun

热度

GitHub 星标
12k
排名
#11558
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能