← 返回
开发者工具 中文

Robot

Build robots from hobby to industrial with hardware wiring, ROS2, motion planning, and safety constraints.
涵盖硬件接线、ROS2、运动规划及安全约束,指导从爱好者到工业级的机器人构建。
ivangdavila
开发者工具 clawhub v1.0.0 1 版本 99822.9 Key: 无需
★ 2
Stars
📥 1,087
下载
💾 28
安装
1
版本
#latest

概述

When to Use

User needs robotics help — Arduino/ESP32 wiring, ROS2 configuration, motor control, sensor integration, or industrial robot programming. Agent handles hardware selection, code generation, and debugging across hobby to professional contexts.

Architecture

Memory lives in ~/robot/ with tiered structure. See memory-template.md for initial setup.

~/robot/
├── memory.md          # HOT: inventory + active project
├── inventory.md       # Hardware owned (boards, sensors, motors)
├── projects/          # Per-project configs and learnings
│   └── {name}.md      # Project-specific notes
├── corrections.md     # What failed + fixes found
└── archive/           # Completed project summaries

Quick Reference

TopicFile
-------------
Memory setupmemory-template.md
Arduino, ESP32, RPi wiringhardware.md
Sensors: wiring + codesensors.md
Motors: types + driversmotors.md
ROS1/ROS2, Gazebo, MoveItros.md
Industrial arms (ABB, KUKA, UR)industrial.md
Systematic troubleshootingdebugging.md
Common project templatesprojects.md

Core Rules

1. Check Memory First

Before ANY recommendation:

  1. Read ~/robot/memory.md — what hardware does user have?
  2. Check ~/robot/projects/ — is there an active project?
  3. Check ~/robot/corrections.md — past failures to avoid?

2. ASK Exact Hardware

Before ANY code: exact board model, exact sensor/motor models, voltage rails.

"Arduino" is ambiguous (Uno? Nano? ESP32-based?). Add to inventory once confirmed.

3. Update Memory Proactively

EventAction
---------------
User mentions hardware they ownAdd to inventory.md
User starts new projectCreate projects/{name}.md
Something fails → fix foundLog in corrections.md
Project completedArchive to archive/

4. Version Everything

Always ask and specify:

  • Arduino core version, library versions
  • ROS distro (Humble, Iron, Foxy, Noetic)
  • Firmware versions for industrial controllers

5. Simulation First for Industrial

For ABB/KUKA/Fanuc/UR code:

  • Always clarify: simulation or real hardware?
  • Never generate motion code without safety discussion
  • Include speed limits and safety checks in ALL code

Hardware Traps

Board Selection

  • Servo.h crashes on ESP32 — use ESP32Servo.h (different API)
  • analogWrite() missing on ESP32 — use ledcWrite() + channel setup
  • ESP32 GPIO 6-11 are flash pins — touching them = crash
  • ESP32 GPIO 34-39 are input-only — output silently fails
  • Arduino pins 0,1 are Serial — using them breaks upload

Voltage and Current

  • 5V sensor → 3.3V board without divider — burns pin permanently
  • GPIO sourcing >40mA (Uno) or >12mA (ESP32) — pin damage over time
  • Motor on same rail as logic — brownouts cause random resets
  • No common ground between boards — erratic sensor readings

Sensors

  • HC-SR04 Echo pin 5V → 3.3V board — needs divider or level shifter
  • DHT22 read interval <2s — returns stale/error values
  • I2C bus >30cm without pullups — intermittent failures
  • MPU6050 FIFO overflow if not read fast — readings corrupt

ROS Traps

  • Mixing rospy (ROS1) and rclpy (ROS2) — import errors
  • Forgot source install/setup.bash — "package not found"
  • QoS mismatch publisher/subscriber — messages silently dropped
  • static_transform_publisher syntax varies by ROS2 version
  • Gazebo Classic plugins ≠ Ignition/Fortress plugins

Industrial Traps

  • MoveL through singularity — joint whip, dangerous
  • Wrong coordinate frame (base vs world vs tool) — unexpected position
  • Omitting MoveJ before MoveL — path through obstacles
  • Speed too high in shared human space — safety violation
  • Bypassing SafeMove/SafetyIO signals — defeats physical safeties

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 06:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 318,686
developer-tools

CodeConductor.ai

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

Github

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