From e28367489ec9ca8a0335c89997f6ca2c4d3da6a4 Mon Sep 17 00:00:00 2001 From: Emiel Steerneman Date: Sun, 6 Aug 2023 17:51:16 +0200 Subject: [PATCH] fix breaking changes --- .../roboteam_ai/interface_api/InterfaceSubscriber.h | 2 +- .../src/modules/composables/ai-controller.ts | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/roboteam_ai/include/roboteam_ai/interface_api/InterfaceSubscriber.h b/roboteam_ai/include/roboteam_ai/interface_api/InterfaceSubscriber.h index 2c4c6ba27..3cd2d30c5 100644 --- a/roboteam_ai/include/roboteam_ai/interface_api/InterfaceSubscriber.h +++ b/roboteam_ai/include/roboteam_ai/interface_api/InterfaceSubscriber.h @@ -11,7 +11,6 @@ namespace rtt::ai::io { class InterfaceGateway; class InterfaceSubscriber { - InterfaceSubscriber() = default; public: /** @@ -21,6 +20,7 @@ class InterfaceSubscriber { * @param message The received message from the client. */ void onMessage(const proto::MsgFromInterface&& message); + InterfaceSubscriber() = default; private: void sendPacketToSimulator(const SimulatorCommand& packet); diff --git a/roboteam_interface_vue/src/modules/composables/ai-controller.ts b/roboteam_interface_vue/src/modules/composables/ai-controller.ts index a3143a63c..713b51a99 100644 --- a/roboteam_interface_vue/src/modules/composables/ai-controller.ts +++ b/roboteam_interface_vue/src/modules/composables/ai-controller.ts @@ -43,12 +43,18 @@ export const useAiController = defineStore('aiController', () => { }) } } - return teleportRobot + return { + 'control' : { + 'teleportRobot' : teleportRobot, + } + } })() const ballToCenter = { - 'teleportBall' : { - 'x' : 0, 'y' : 0, 'z' : 0, 'vx' : 0, 'vy' : 0, 'vz' : 0 + 'control' : { + 'teleportBall' : { + 'x' : 0, 'y' : 0, 'z' : 0, 'vx' : 0, 'vy' : 0, 'vz' : 0 + } } }