The Big One #43
@@ -82,6 +82,7 @@ class UserInterruptAgent(BaseAgent):
|
|||||||
self.logger.info("Sent pause command.")
|
self.logger.info("Sent pause command.")
|
||||||
else:
|
else:
|
||||||
self.logger.info("Sent resume command.")
|
self.logger.info("Sent resume command.")
|
||||||
|
|
||||||
elif event_type in ["next_phase", "reset_phase", "reset_experiment"]:
|
elif event_type in ["next_phase", "reset_phase", "reset_experiment"]:
|
||||||
await self._send_experiment_control_to_bdi_core(event_type)
|
await self._send_experiment_control_to_bdi_core(event_type)
|
||||||
|
|
||||||
@@ -206,7 +207,6 @@ class UserInterruptAgent(BaseAgent):
|
|||||||
await self.send(vad_message)
|
await self.send(vad_message)
|
||||||
self.logger.info("Sent resume command to VAD Agent and RI Communication Agent.")
|
self.logger.info("Sent resume command to VAD Agent and RI Communication Agent.")
|
||||||
|
|
||||||
|
|
||||||
async def setup(self):
|
async def setup(self):
|
||||||
"""
|
"""
|
||||||
Initialize the agent.
|
Initialize the agent.
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ class RIEndpoint(str, Enum):
|
|||||||
GESTURE_TAG = "actuate/gesture/tag"
|
GESTURE_TAG = "actuate/gesture/tag"
|
||||||
PING = "ping"
|
PING = "ping"
|
||||||
NEGOTIATE_PORTS = "negotiate/ports"
|
NEGOTIATE_PORTS = "negotiate/ports"
|
||||||
|
PAUSE = ""
|
||||||
|
|
||||||
|
|
||||||
class RIMessage(BaseModel):
|
class RIMessage(BaseModel):
|
||||||
@@ -65,6 +66,7 @@ class GestureCommand(RIMessage):
|
|||||||
raise ValueError("endpoint must be GESTURE_SINGLE or GESTURE_TAG")
|
raise ValueError("endpoint must be GESTURE_SINGLE or GESTURE_TAG")
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
||||||
class PauseCommand(RIMessage):
|
class PauseCommand(RIMessage):
|
||||||
"""
|
"""
|
||||||
A specific command to pause or unpause the robot's actions.
|
A specific command to pause or unpause the robot's actions.
|
||||||
|
|||||||
Reference in New Issue
Block a user