Commit Graph

43 Commits

Author SHA1 Message Date
Twirre Meulenbelt
ba79d09c5d feat: log download endpoints
ref: N25B-401
2026-01-16 16:32:51 +01:00
Pim Hutting
0501a9fba3 create UserInterruptAgent with connection to UI 2025-12-22 13:56:02 +00:00
Twirre Meulenbelt
db5504db20 chore: remove redundant check 2025-12-16 10:22:11 +01:00
Björn Otgaar
f15a518984 fix: tests
ref: N25B-334
2025-12-15 11:52:01 +01:00
Björn Otgaar
daf31ac6a6 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
2025-12-15 11:35:56 +01:00
Björn Otgaar
6034263259 fix: correct the gestures bugs, change gestures socket to request/reply
ref: N25B-334
2025-12-09 14:08:59 +01:00
Björn Otgaar
531526f7bc feat: create tests for all currect functionality and add get available tags router
ref: N25B-334
2025-12-04 16:33:27 +01:00
Björn Otgaar
95c7585bf1 feat: setup gesture agent and adjust command port for the UI
ref: N25B-334
2025-12-02 15:00:10 +01:00
129d3c4420 docs: add docs to CB
Pretty much every class and method should have documentation now.

ref: N25B-295
2025-11-24 21:58:22 +01:00
JobvAlewijk
964997f801 Merge branch 'dev' of https://git.science.uu.nl/ics/sp/2025/n25b/pepperplus-cb into feat/recieve-programs-ui 2025-11-19 13:16:41 +01:00
JobvAlewijk
39c07dd3cf refactor: made pydantic check the input.
no longer by the code itself.

ref: N25B-198
2025-11-18 12:35:44 +01:00
JobvAlewijk
2ed2a84f13 style: compacted program and reworked tests
ref: N25B-198
2025-11-12 18:04:39 +01:00
JobvAlewijk
79d3bfb3a6 test: added tests for programs and its scheme
ref: N25B-198
2025-11-12 17:36:00 +01:00
JobvAlewijk
43f3cba1a8 feat: ui program to cb connection
ref: N25B-198
2025-11-12 13:18:56 +01:00
Björn Otgaar
debc87c0bb fix: Fix up merging request changes and make sure that there is no racing condition errors, and UI always gets correct information.
ref: N25B-256
2025-11-11 10:18:43 +01:00
Björn Otgaar
2d1a25e4ae chore: fixing up logging messages 2025-11-06 14:49:54 +01:00
Björn Otgaar
6cc03efdaf feat: new integration tests for robot, making sure to get 100% code coverage
ref: N25B-256
2025-11-06 14:42:02 +01:00
Björn Otgaar
276ccfbf78 chore: merged dev into branch and updated logging 2025-11-06 13:52:12 +01:00
Björn Otgaar
ca8b57fec5 fix: robot pings to router
ref: N25B-256
2025-11-05 16:59:36 +01:00
df7dc8fdf3 fix: no double json
ref: N25B-242
2025-11-05 16:38:03 +01:00
Björn Otgaar
8638523980 fix: fixed new tests and merged dev into branch
ref: N25B-256
2025-11-05 16:29:56 +01:00
220c5c7739 feat: send logs to UI
Added SSE endpoint `/logs/stream` for the UI to listen to logs.

ref: N25B-242
2025-11-05 13:57:51 +01:00
Twirre Meulenbelt
a1918049e5 Merge remote-tracking branch 'origin/dev' into refactor/zmq-internal-socket-behaviour
# Conflicts:
#	src/control_backend/agents/ri_command_agent.py
#	src/control_backend/agents/ri_communication_agent.py
#	src/control_backend/api/v1/endpoints/command.py
#	src/control_backend/main.py
#	test/integration/api/endpoints/test_command_endpoint.py
2025-11-05 12:16:18 +01:00
48c9746417 style: apply ruff check and format
Made sure all ruff checks pass and formatted all files.

ref: N25B-224
2025-11-02 19:45:01 +01:00
Björn Otgaar
1234517d8f fix: merge refactor/zmq-internal-socket-behaviour into feat/cb2ui-robot-connections. (And fixed all ruff/ test issues to commit)
ref: None
2025-10-31 14:16:11 +01:00
20a49eb553 fix: endpoints don't create sockets
ref: N25B-217
2025-10-31 10:36:21 +01:00
Björn Otgaar
30453be4b2 fix: ruff checks is now in order:)
ref: N25B-205
2025-10-30 16:41:35 +01:00
Björn Otgaar
af3e4ae56a fix: adjusted ping data on ping_stream, and made it so that communication agent is more robust and quick in ping communication.
ref: N25B-142
2025-10-30 13:07:01 +01:00
b92471ff1c refactor: ZMQ context and proxy
Use ZMQ's global context instance and setup an XPUB/XSUB proxy intermediary to allow for easier multi-pubs.

close: N25B-217
2025-10-30 11:40:14 +01:00
Björn Otgaar
4f2d45fb44 feat: fixed socket typing for communication agent and ping router- automatically try to reconnect with robot.
ref: N25B-151
2025-10-29 21:55:23 +01:00
Björn Otgaar
669d0190d6 feat: started ping router and internal messaging for pings
ref: N25B-151
2025-10-29 19:22:06 +01:00
Björn Otgaar
b83a362abe fix: wait for req socket send to make sure we dont stay stuck - if there's no REP this would be awaited forever.
ref: N25B-205
2025-10-29 13:31:24 +01:00
Björn Otgaar
47a87d0b4a fix: unit tests fixes and ruff formating
N25B-205
2025-10-28 11:31:05 +01:00
Björn Otgaar
52faa59184 Merge remote-tracking branch 'origin/dev' into feat/cb2ui-robot-connections 2025-10-28 11:09:23 +01:00
Björn Otgaar
149d20e77b chore: apply recommended changes for merging 2025-10-28 11:05:27 +01:00
4859c3ac04 style: fix style 2025-10-27 15:10:31 +01:00
Björn Otgaar
a2a04740e5 chore: add unit test for router and implement command router
ref: N25B-205
2025-10-23 16:45:41 +02:00
Björn Otgaar
1f8d769762 chore: adjust message/command structure and write unit tests
ref: N25B-205
2025-10-23 12:54:53 +02:00
Björn Otgaar
530fc42c50 fix: router changes + hopefully gitignore
ref: N25B-205
2025-10-22 12:50:29 +02:00
Björn Otgaar
d71cb60523 fix: gitignore + testing map structure
ref: N25B-205
2025-10-22 12:41:47 +02:00
1eb414ea0d feat: add agent that is able to receive messages from UI
Inside the `/message` enpoint we put a message onto the internal event
queue, which gets read by TestAgent. This agent, in turn, logs the
message (temporary behaviour until we implement RI integration).

The name TestAgent is of course temporary, this is just for exploratory
purposes.

ref: N25B-165
2025-10-08 18:27:24 +02:00
1229df70b0 chore: filled in project structure
Added some example basic files containing a functioning /message
endpoint which logs the received message to INFO.

ref: N25B-144
2025-10-08 15:02:11 +02:00
7ba40b0bf8 chore: add basic project structure
Empty files everywhere, basic module structure created with __init__.py
files.

ref: N25B-144
2025-10-08 13:29:04 +02:00