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.
```bash
source /opt/ros/
source ~/my_ros_ws/install/setup.bash
```
```bash
./scripts/setup.sh
```
config/packages.json to explicitly allow the packages you want the agent to execute.~/.openclaw/workspace/ros_profiles/ for quick execution using the --profile flag.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:
Wrapper Path: Resolve ./scripts/safe_ros2_execution.py against this SKILL.md directory.
Usage: ./scripts/safe_ros2_execution.py
./scripts/safe_ros2_execution.py run
./scripts/safe_ros2_execution.py run
(Loads from ~/.openclaw/workspace/ros_profiles/outdoor.yaml)
./scripts/safe_ros2_execution.py run
./scripts/safe_ros2_execution.py launch
./scripts/safe_ros2_execution.py service_call
./scripts/safe_ros2_execution.py action_send_goal
Avoid passing complex strings (like nested arrays or JSON dictionaries) directly in the command arguments. Instead:
--params-file /path/to/file.yaml flag to safely load them.~/.openclaw/workspace/ros_profiles/.yaml and use --profile .共 1 个版本