← 返回
未分类 中文

ROS2 Execution

Execute ROS 2 commands (run, launch, call) in a sandboxed, allowlisted environment. Supports parameter profiles.
在沙箱化白名单环境中执行 ROS 2 命令(run、launch、call),支持参数配置文件。
bigrobinson bigrobinson 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 362
下载
💾 0
安装
1
版本
#latest

概述

ROS 2 Execution (Sandboxed)

Setup & Installation

Before this skill can be used, the local environment must be configured.

The setup script dynamically discovers your ROS paths and approved workspaces. You can re-run the setup script at any time if you add new workspaces.

  1. Source your environment: You MUST source your ROS 2 environment and any local workspaces first in your terminal.

```bash

source /opt/ros//setup.bash

source ~/my_ros_ws/install/setup.bash

```

  1. Run setup:

```bash

./scripts/setup.sh

```

  1. Whitelist Packages: Edit config/packages.json to explicitly allow the packages you want the agent to execute.
  2. Parameter Profiles (Optional): Create YAML parameter files in ~/.openclaw/workspace/ros_profiles/ for quick execution using the --profile flag.

Overview

Use this skill to execute ROS 2 commands.

SECURITY CONSTRAINT: You must ALWAYS use the safe wrapper script located at ./scripts/safe_ros2_execution.py.

This script performs strict security checks using Python's subprocess (no raw shell execution, preventing injection) and validates:

  1. The command type (must be run/launch/call).
  2. The package is in an approved workspace.
  3. The package is explicitly allowlisted.

Wrapper Path: Resolve ./scripts/safe_ros2_execution.py against this SKILL.md directory.

Allowed Commands

Usage: ./scripts/safe_ros2_execution.py [--profile | --params-file ] [extra_args]

  • Run a node:

./scripts/safe_ros2_execution.py run

  • Run a node with a Parameter Profile:

./scripts/safe_ros2_execution.py run --profile outdoor

(Loads from ~/.openclaw/workspace/ros_profiles/outdoor.yaml)

  • Run a node with a specific Params File:

./scripts/safe_ros2_execution.py run --params-file /tmp/temp_params.yaml

  • Launch a file:

./scripts/safe_ros2_execution.py launch

  • Call a service:

./scripts/safe_ros2_execution.py service_call

  • Send an action goal:

./scripts/safe_ros2_execution.py action_send_goal

Handling Parameters (--ros-args)

Avoid passing complex strings (like nested arrays or JSON dictionaries) directly in the command arguments. Instead:

  1. Write the parameters to a temporary YAML file.
  2. Use the --params-file /path/to/file.yaml flag to safely load them.
  3. For recurring setups, save the YAML file to ~/.openclaw/workspace/ros_profiles/.yaml and use --profile .

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 06:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

ROS2 Control Execution

bigrobinson
在沙箱环境中执行ROS 2控制状态切换命令(加载、切换、卸载),支持参数配置文件。
★ 0 📥 440
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 74 📥 182,245
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 328,749