airo-ugent / airo-ugent/airo-mono
SchunkGripperProcess.move()/open()/close() silently do nothing until speed is set
- Linguagem predominante
- Python
- Estrelas
- 32
- Forks
- 8
- Merge médio
- 8min
- PRs com merge (30d)
- 4
Descrição
### 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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Start in schunk_process.py by reading SchunkGripperProcess.__init__, _gripper_process_main, and the move(), open(), and close() entry points. Reproduce the zero-speed behavior, then determine which suggested default-velocity approach is intended; done means a newly constructed gripper moves without requiring speed to be set first.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- robotics
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Pouca atividade
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 55/100