fix: change the address to the config, update some logic, seperate the api endpoint, renaming things. yes, the tests don't work right now- this shouldn't be merged yet.

ref: N25B-334
This commit is contained in:
Björn Otgaar
2025-12-15 11:35:56 +01:00
parent 2e472ea292
commit daf31ac6a6
4 changed files with 45 additions and 25 deletions

View File

@@ -36,10 +36,7 @@ class RobotGestureAgent(BaseAgent):
bind=False,
gesture_data=None,
):
if gesture_data is None:
self.gesture_data = []
else:
self.gesture_data = gesture_data
self.gesture_data = gesture_data or []
super().__init__(name)
self.address = address
self.bind = bind
@@ -71,7 +68,7 @@ class RobotGestureAgent(BaseAgent):
# REP socket for replying to gesture requests
self.repsocket = context.socket(zmq.REP)
self.repsocket.bind("tcp://localhost:7788")
self.repsocket.bind(settings.zmq_settings.internal_gesture_rep_adress)
self.add_behavior(self._zmq_command_loop())
self.add_behavior(self._fetch_gestures_loop())