feat: added pause functionality

ref: N25B-350
This commit is contained in:
Storm
2026-01-07 16:03:49 +01:00
parent 34afca6652
commit 76dfcb23ef
3 changed files with 97 additions and 2 deletions

View File

@@ -64,3 +64,14 @@ class GestureCommand(RIMessage):
if self.endpoint not in allowed:
raise ValueError("endpoint must be GESTURE_SINGLE or GESTURE_TAG")
return self
class PauseCommand(RIMessage):
"""
A specific command to pause or unpause the robot's actions.
:ivar endpoint: Fixed to ``RIEndpoint.PAUSE``.
:ivar data: A boolean indicating whether to pause (True) or unpause (False).
"""
endpoint: RIEndpoint = RIEndpoint(RIEndpoint.PAUSE)
data: bool