# Piper机械臂缺失官方C++ SDK，社区提供piper_sdk C++移植版

> 原文链接：https://robotics.hellobike.com/pitfalls/2026-10-22-pyagxarm-49
> 频道：pitfalls | 更新日期：2026-10-22 | 标签：auto, github-issue, pyagxarm
> 核心摘要：针对Piper无官方C++ SDK问题，社区开发者已发布MIT许可的piper_sdk C++移植版作为ros2_control集成替代方案。

# Piper机械臂缺失官方C++ SDK，社区提供piper_sdk C++移植版

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[Is there an official C++ SDK or C++ API for Piper?](https://github.com/agilexrobotics/pyAgxArm/issues/49)（GitHub agilexrobotics/pyagxarm #49）

**状态**：有绕过办法

## 问题

用户需在ROS 2/ros2_control框架下对Piper机械臂进行实时控制，但官方SDK仅支持Python且依赖python-can，缺乏原生C++接口及CAN协议文档，无法满足嵌入式部署与硬件接口开发需求。

## 环境

AgileX Piper机械臂；ROS 2 / ros2_control控制框架；Linux嵌入式平台；官方pyagxarm/piper_sdk（Python）

## 解决办法

1. 获取社区开发者XiaoweiTSN发布的MIT许可piper_sdk C++移植版：https://github.com/XiaoweiTSN/piper_sdk_release
2. 将该C++ SDK集成至ROS 2工作空间，用于构建ros2_control hardware interface
3. 基于该C++接口实现底层SocketCAN通信与实时控制逻辑，替代原Python SDK
4. 关注后续开源的完整nero_ros2包（含hardware interface），待LGPL v3合规性确认后使用

讨论原作者：@skywoodsz 等，版权归原作者所有。
:::

## 原始参考来源 (Sources)

- [GitHub agilexrobotics/pyagxarm #49：Is there an official C++ SDK or C++ API for Piper?](https://github.com/agilexrobotics/pyAgxArm/issues/49)