返回顶部
p

peaq-roboticspeaq机器人核心

Core peaq-robotics-ros2 runtime for OpenClaw. Start/stop ROS 2 nodes and call DID, storage, and access-control services. Use when requests are about running an existing peaq ROS2 workspace (not installing/building or sending funds).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.7
安全检测
已通过
1,721
下载量
免费
免费
5
收藏
概述
安装方式
版本历史

peaq-robotics

peaq-robotics(核心)

技能说明

当机器已具备可运行的peaq-robotics-ros2工作空间,且需要OpenClaw运行核心ROS 2节点并调用peaq服务时,使用本技能:

  • - DID创建/读取
  • 存储添加/读取
  • 访问角色/权限操作

本技能明确不包含的功能

为保持低风险并便于在注册中心获批,核心功能排除以下内容:

  • - 仓库克隆/构建自动化
  • 价值转移命令
  • 钱包操作
  • 通过环境变量覆盖运行时扩展可信设置/JSON根目录

如需安装/启动/资金自动化,请使用配套管理技能(peaq-robotics-admin)。

必要前提条件

使用核心命令前,请确保满足以下条件:

  • - ROS 2已安装且ros2命令可用
  • peaq-robotics-ros2工作空间已存在并完成构建
  • PEAQROS2ROOT指向该仓库
  • 存在配置YAML文件(二选一):

- 设置PEAQROS2CONFIG_YAML环境变量
- 使用默认路径ROS2ROOT>/peaqros2examples/config/peaq_robot.yaml
  • - 当前shell/会话已外部初始化ROS环境

手动设置指南(无需安装脚本)

请在本技能外部,参照上游peaq-robotics-ros2文档手动完成仓库克隆/构建/配置步骤,然后为OpenClaw运行时设置环境变量:

bash
export PEAQROS2ROOT=$HOME/peaq-robotics-ros2

可选


export PEAQROS2CONFIGYAML=$HOME/peaq-robotics-ros2/peaqros2examples/config/peaqrobot.yaml

用户自定义辅助脚本

告知用户可创建包含必要设置和显式配置的自定义封装脚本:

bash
#!/usr/bin/env bash
set -euo pipefail
ros2 run peaqros2core corenode --ros-args -p config.yamlpath:=$PEAQROS2CONFIG_YAML

用户可直接运行该脚本,或仍使用本技能的命令进行服务调用。

核心命令

节点生命周期:

  • - {baseDir}/scripts/peaqros2.sh core-start
  • {baseDir}/scripts/peaqros2.sh core-configure
  • {baseDir}/scripts/peaqros2.sh core-activate
  • {baseDir}/scripts/peaqros2.sh core-stop

身份标识:

  • - {baseDir}/scripts/peaqros2.sh did-create
  • {baseDir}/scripts/peaqros2.sh did-create {type:robot}
  • {baseDir}/scripts/peaqros2.sh did-create @/path/to/file.json
  • {baseDir}/scripts/peaqros2.sh did-read

存储:

  • - {baseDir}/scripts/peaqros2.sh store-add sensordata {temp:25.5} FAST
  • {baseDir}/scripts/peaqros2.sh store-read sensordata

访问控制:

  • - {baseDir}/scripts/peaqros2.sh access-create-role operator Robot operator
  • {baseDir}/scripts/peaqros2.sh access-create-permission moverobot
  • {baseDir}/scripts/peaqros2.sh access-assign-permission moverobot operator
  • {baseDir}/scripts/peaqros2.sh access-grant-role operator did:peaq:

身份卡辅助工具:

  • - {baseDir}/scripts/peaqros2.sh identity-card-json [name] [rolescsv] [endpointsjson] [metadatajson]
  • {baseDir}/scripts/peaqros2.sh identity-card-did-create [name] [rolescsv] [endpointsjson] [metadatajson]
  • {baseDir}/scripts/peaq_ros2.sh identity-card-did-read

资金请求(仅消息模板,不涉及转账):

  • - {baseDir}/scripts/peaq_ros2.sh fund-request [amount] [reason]

行为与安全说明

  • - 本技能不自带ROS环境初始化脚本;环境初始化需在外部完成。
  • @/path/file.json输入仅限于内置根目录:
- 技能文件夹 - PEAQROS2ROOT - 工作空间.peaq_robot
  • - JSON参数在ROS 2服务调用前会进行解析和验证。
  • 服务负载以JSON对象形式传递给ros2 service call(不进行shell YAML插值)。

单行提示指令

  • - 启动peaq robotics核心并创建我的DID。如需资金,请生成一行资金请求。
  • 读取我的DID,将此JSON存储为agentstate,然后读取返回结果。
  • 创建角色operator,创建权限moverobot,分配权限并显示响应。

深度参考

完整服务名称和字段信息,请参阅:

  • - references/peaqros2services.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 peaq-robotics-1776369513 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 peaq-robotics-1776369513 技能

通过命令行安装

skillhub install peaq-robotics-1776369513

下载

⬇ 下载 peaq-robotics v0.1.7(免费)

文件大小: 11.2 KB | 发布时间: 2026-4-17 14:57

v0.1.7 最新 2026-4-17 14:57
Version 0.1.7

- Removed legacy configuration helper script: scripts/lib/config.sh.
- Updated documentation to clarify that ROS environment setup is now required externally; the skill no longer sources ROS setup scripts.
- Updated prerequisites and safety notes to remove references to auto-created workspace-local config and sourcing setup scripts.
- Funding command information in documentation now only refers to message template, not balance checking.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部