Documentation Index
Fetch the complete documentation index at: https://motorbridge.seeedstudio.com/llms.txt
Use this file to discover all available pages before exploring further.
Source:
examples/python/README.zh-CN.mdPython ctypes 示例
通道兼容说明(PCAN + slcan + Damiao 串口桥)
- Linux SocketCAN 直接使用网卡名:
can0、can1、slcan0。 - 串口类 USB-CAN 需先创建并拉起
slcan0:sudo slcand -o -c -s8 /dev/ttyUSB0 slcan0 && sudo ip link set slcan0 up。 - 仅 Damiao 可选串口桥链路:
--transport dm-serial --serial-port /dev/ttyACM0 --serial-baud 921600。 - Damiao 串口桥完整接口与命令模板见
motor_cli/README.zh-CN.md第3.6节(英文见motor_cli/README.md)。 - Linux SocketCAN 下
--channel不要带@bitrate(例如can0@1000000无效)。 - Windows(PCAN 后端)中,
can0/can1映射PCAN_USBBUS1/2,可选@bitrate后缀。
ctypes 调用 Rust ABI。
English version: README.md
文件
python_ctypes_demo.py: 统一的双 vendor 示例four_vendor_pos_sync.py: 多厂商并发位置控制脚本
- Damiao:
enable、disable、mit、pos-vel、vel、force-pos - RobStride:
ping、enable、disable、mit、pos-vel、vel、read-param、write-param- 说明:力矩/电流仅参数级可用(通过
write-param写iq_ref/限幅参数),不是统一高层模式
- 说明:力矩/电流仅参数级可用(通过
构建与运行
示例
Damiao MIT:rs-06 只是演示型号。真实交互前请替换成实际 RS00-RS06 型号,因为 RobStride 参数 ID 和类型来自第 4 章通用运行表。
RobStride 写参数:
motor_cli 命令: