Metadata-Version: 2.5
Name: naoqi-control
Version: 0.1.0
Summary: Async NAOqi control for speech, motion, touch, and LEDs.
Author-email: Valentin Schröter Bonk <vasc9380@th-wildau.de>
Maintainer-email: Valentin Schröter Bonk <vasc9380@th-wildau.de>
License-Expression: MIT
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Requires-Python: <3.13,>=3.12
Requires-Dist: qi>=3.1.5
Description-Content-Type: text/markdown

# naoqi-control

Laptop-side control of a NAO over NAOqi. One `NaoController` tries ports 9559 (older NAO versions) and 9561 (newer NAO versions) until one accepts, owns the worker thread that serializes blocking qi calls, and holds the pieces a caller usually wants:

- `tts`: say, async say, say-until-button, stop, speed, language, pitch.
- `audio`: master speaker volume.
- `motion`: posture, stiffness, joint moves, and named gestures (wave, farewell, nod, shake). Gestures are `Animation` keyframes.
- `camera`: one frame or a stream from the top or bottom camera.
- `buttons`: head, bumper, and hand events as async press and release callbacks.
- `leds`: `Leds.fade` for one group. Conversation colors stay in the app that owns them.

Pass `log=` to `NaoController` when the caller wants spoken lines and failures on its own log. The object needs `error`, `verbose`, and `nao` methods. Without it, those lines go to the `naoqi_control` logger.

The package requires Python 3.12. On Windows, use the Dev Container, since `qi` has no Windows wheels.

```python
from naoqi_control import NaoController

nao = NaoController("192.168.2.50", log=my_log)
await nao.prepare(volume=80, speech_speed=90, posture="Sit")
await nao.speak("Hallo.", timeout=8)
nao.motion.wave(["left"])
frame = await nao.camera.capture("top")
```
