robotics-testing-tsiu

自动化Robotics测试流程,帮助AI Agent进行Robotics测试工作。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "robotics-testing-tsiu":https://skillpi.com/zh/skills/deepskill-66983d56080b60477143713d2d9a23e030e0629a35cd5260795532c2502d10dc。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/robotics-testing-tsiu。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

自动化Robotics测试流程,帮助AI Agent进行Robotics测试工作。

0 下载

介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源

SkillPi 解读

能完成的任务
更多的测试在底部, FEWER在顶部。 底部=快,便宜,定型. 顶部=慢,贵,现实.
适合谁
ROS1/ROS2节点的编写单位测试 安装集成测试 与发射 测试 CI/CD 大楼模拟测试套件的Mocking硬件(传感器,激活器) 测试地面真实度测试轨道规划人员和控制器的感知管道 安装机器人包的CI/CD管道 调试机器人系统中的弹片测试
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter

name: Robotics测试
slug: robotics-testing
version: 1.0.0
displayName: Robotics测试
description: >
  自动化Robotics测试流程,帮助AI Agent进行Robotics测试工作。
summary: "自动化Robotics测试流程,帮助AI Agent进行Robotics测试工作。"
license: MIT
category: 开发者工具
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

Robotics Testing Skill

When to Use This Skill

  • Writing unit tests for ROS1/ROS2 nodes
  • Setting up integration tests with launch_testing
  • Mocking hardware (sensors, actuators) for CI/CD
  • Building simulation-based test suites
  • Testing perception pipelines with ground truth
  • Validating trajectory planners and controllers
  • Setting up CI/CD pipelines for robotics packages
  • Debugging flaky tests in robotics systems

The Robotics Testing Pyramid

                    ╱╲
                   ╱  ╲        Field Tests
                  ╱    ╲       (Real robot, real environment)
                 ╱──────╲
                ╱        ╲     Hardware-in-the-Loop (HIL)
               ╱          ╲    (Real hardware, controlled environment)
              ╱────────────╲
             ╱              ╲   Simulation Tests
            ╱                ╲  (Full sim, realistic physics)
           ╱──────────────────╲
          ╱                    ╲  Integration Tests
         ╱                      ╲ (Multi-node, message passing)
        ╱────────────────────────╲
       ╱                          ╲ Unit Tests
      ╱____________________________╲ (Single function/class, fast, deterministic)

MORE tests at the bottom, FEWER at the top.
Bottom = fast, cheap, deterministic. Top = slow, expensive, realistic.

Unit Testing Patterns

Testing ROS2 Nodes with pytest


# test_perception_node.py
import pytest
import rclpy
from rclpy.node import Node
from sensor_msgs.msg import Image
from my_pkg.perception_node import PerceptionNode
import numpy as np

@pytest.fixture(scope='module')
def ros_context():
    """Initialize ROS2 context once per test module"""
    rclpy.init()
    yield
    rclpy.shutdown()

@pytest.fixture
def perception_node(ros_context):
    """Create a fresh perception node for each test"""
    node = PerceptionNode()
    yield node
    node.destroy_node()

@pytest.fixture
def test_image():
    """Generate a synthetic test image"""
    msg = Image()
    msg.height = 256
    msg.width = 256
    msg.encoding = 'rgb8'
    msg.step = 256 * 3
    msg.data = np.random.randint(0, 255, (256, 256, 3),
                                  dtype=np.uint8).tobytes()
    return msg

class TestPerceptionNode:

    def test_initialization(self, perception_node):
        """Node should initialize with correct default parameters"""
        assert perception_node.get_parameter('confidence_threshold').value == 0.7
        assert perception_node.get_parameter(
(截断)

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 面向 ROS1/ROS2 开发者,提供单元测试、集成测试、硬件模拟、CI/CD 等实用能力
  • 覆盖 Robotics 测试金字塔全层级,从单元测试到实地测试均有指导
触发精准90/100

亮点

  • When to Use 章节列出 8 条具体触发场景,边界清晰
  • description 明确描述核心功能,易于用户识别适用场景
结构规范70/100

待提升项

  • description内容截断 原报告严重程度:重大

    文档在 test_initialization 方法处被截断,未完成

    改进建议:请补全被截断的测试代码和后续章节内容

亮点

  • 包含 When to Use、测试金字塔、单元测试模式等结构化章节
  • 提供端到端代码示例,便于开发者直接参考
执行可靠65/100

待提升项

  • 文档截断导致执行逻辑不完整 原报告严重程度:重大

    文档被截断,部分测试逻辑缺失,影响用户完整执行

    改进建议:请补全被截断的测试代码和后续章节内容

  • 异常处理未覆盖 原报告严重程度:轻微

    未覆盖 ROS context 初始化失败、消息序列化错误等常见异常

    改进建议:建议在测试示例中添加异常处理逻辑,提升健壮性

亮点

  • 工具来源明确(ROS2、pytest),参数使用正确
  • 提供合成测试数据生成方法,便于快速上手
证据可验 (前四项均值)78/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。