fix: create tests for new ri commands

ref: N25B-334
This commit is contained in:
Björn Otgaar
2025-12-03 13:29:47 +01:00
parent 95c7585bf1
commit b93c39420e
6 changed files with 42 additions and 6 deletions

View File

@@ -10,7 +10,8 @@ class RIEndpoint(str, Enum):
"""
SPEECH = "actuate/speech"
GESTURE = "actuate/gesture"
GESTURE_SINGLE = "actuate/gesture/single"
GESTURE_TAG = "actuate/gesture/tag"
PING = "ping"
NEGOTIATE_PORTS = "negotiate/ports"
@@ -43,9 +44,9 @@ class GestureCommand(RIMessage):
"""
A specific command to make the robot do a gesture.
:ivar endpoint: Fixed to ``RIEndpoint.GESTURE``.
:ivar endpoint: Should be ``RIEndpoint.GESTURE_SINGLE`` or ``RIEndpoint.GESTURE_TAG``.
:ivar data: The id of the gesture to be executed.
"""
endpoint: RIEndpoint = RIEndpoint(RIEndpoint.SPEECH)
endpoint: RIEndpoint = RIEndpoint(RIEndpoint.GESTURE_TAG) or RIEndpoint(RIEndpoint.GESTURE_TAG)
data: str