From 945f8af50325f2277c042837523e7a3f800eeece Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 21 Feb 2024 15:45:09 +0100 Subject: [PATCH] Added SendPose --- NetworkSync.h | 3 ++- Roboid.cpp | 3 ++- VectorAlgebra | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NetworkSync.h b/NetworkSync.h index f732e74..980fcfe 100644 --- a/NetworkSync.h +++ b/NetworkSync.h @@ -42,7 +42,8 @@ public: void PublishTrackedObjects(SendBuffer sendBuffer, InterestingThing **objects); - virtual void SendPosition(Vector3 worldPosition){}; + virtual void SendPosition(Vector3 worldPosition) {}; + virtual void SendPose(Vector3 worldPosition, Quaternion worldOrientation) {}; protected: NetworkPerception *networkPerception; diff --git a/Roboid.cpp b/Roboid.cpp index f5a1384..f34938f 100644 --- a/Roboid.cpp +++ b/Roboid.cpp @@ -68,7 +68,8 @@ void Roboid::SetPosition(Vector3 newWorldPosition) { this->worldPosition = newWorldPosition; if (networkSync != nullptr) - networkSync->SendPosition(this->worldPosition); + // networkSync->SendPosition(this->worldPosition); + networkSync->SendPose(this->worldPosition, this->worldOrientation); } void Roboid::SetOrientation(Quaternion worldOrientation) { diff --git a/VectorAlgebra b/VectorAlgebra index 644399b..f38e01d 160000 --- a/VectorAlgebra +++ b/VectorAlgebra @@ -1 +1 @@ -Subproject commit 644399b574c7e1d2137ce466b06be00239b675e6 +Subproject commit f38e01d80ac1a5beaff5727022149c005efd3a72