机械臂与灵巧手驱动已构建完成 #1

Merged
weipengzhe merged 18 commits from feature/2026-9-20 into main 2026-09-20 13:46:34 +08:00
Showing only changes of commit 14fa685f7f - Show all commits
+34
View File
@@ -523,3 +523,37 @@ src/linker_hand_ros2_sdk/linker_hand_ros2_sdk/linker_hand.py
src/linker_hand_ros2_sdk/launch/linker_hand_double.launch.py
scripts/linker_hand_control.sh
```
## 左右灵巧手 CAN 口对调
如果后续需要再次颠倒左右灵巧手的 CAN 口,只需要修改:
```text
src/linker_hand_ros2_sdk/launch/linker_hand_double.launch.py
```
当前默认配置为:
```python
左手:'hand_type': 'left', 'can': 'can1'
右手:'hand_type': 'right', 'can': 'can0'
```
如果要左右 CAN 口对调,改成:
```python
左手:'hand_type': 'left', 'can': 'can0'
右手:'hand_type': 'right', 'can': 'can1'
```
修改后重新编译并重启服务:
```bash
cd ~/workspace/weipz-Lbot_Bridge
colcon build --packages-select linker_hand_ros2_sdk
source install/setup.bash
./scripts/linker_hand_control.sh stop
./scripts/linker_hand_control.sh start
```
注意:只改 `can` 字段,不要交换 `hand_type`。`hand_type` 决定 ROS 话题名和左右手设备 ID,交换它会导致 `/l20_left_*` 和 `/l20_right_*` 语义反掉。