airo-ugent / airo-ugent/airo-mono

SchunkGripperProcess.move()/open()/close() silently do nothing until speed is set

未关闭
#201 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug robots
主要语言
Python
星标
32
派生
8
平均合并
8 分钟
30 天内合并 PR
4

描述

### Description

When using `SchunkGripperProcess`, calling `move()`, `open()`, or `close()` right after construction does not move the gripper. The connection succeeds and no error is raised — the fingers just don't move.

### Cause

`move()` issues a `MOVE_POS` command but never sets a target velocity. The gripper's default `set_vel` is `0`, so the motion completes "instantly" with zero speed and the fingers don't move. The fingers only move once `gripper.speed = ` has been set beforehand (as the `__main__` example in `schunk_process.py` does).

### Reproduce

```python
g = SchunkGripperProcess(usb_interface=PORT)
g.open().wait() # nothing happens
g.close().wait() # nothing happens
```

Adding `g.speed = 0.04` before the moves fixes it.

### Suggested fix

Either initialise a sensible default velocity in `__init__` / `_gripper_process_main`, have `move()` set a default speed when none has been configured, or at minimum document that `speed` must be set before the first move.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。