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

@@ -1 +1,2 @@
from .robot_gesture_agent import RobotGestureAgent as RobotGestureAgent
from .robot_speech_agent import RobotSpeechAgent as RobotSpeechAgent

View File

@@ -54,6 +54,7 @@ class RobotGestureAgent(BaseAgent):
context = azmq.Context.instance()
# To the robot
self.pubsocket = context.socket(zmq.PUB)
if self.bind: # TODO: Should this ever be the case?
self.pubsocket.bind(self.address)
@@ -64,7 +65,7 @@ class RobotGestureAgent(BaseAgent):
self.subsocket = context.socket(zmq.SUB)
self.subsocket.connect(settings.zmq_settings.internal_sub_address)
self.subsocket.setsockopt(zmq.SUBSCRIBE, b"command")
# This one
self.add_behavior(self._zmq_command_loop())
self.logger.info("Finished setting up %s", self.name)

View File

@@ -187,7 +187,7 @@ class RICommunicationAgent(BaseAgent):
bind=bind,
)
robot_gesture_agent = RobotGestureAgent(
settings.agent_settings.robot_speech_name,
settings.agent_settings.robot_gesture_name,
address=addr,
bind=bind,
gesture_data=gesture_data,