Added SendPose

This commit is contained in:
Pascal Serrarens 2024-02-21 15:45:09 +01:00
parent 66ab007af9
commit 945f8af503
3 changed files with 5 additions and 3 deletions

View File

@ -42,7 +42,8 @@ public:
void PublishTrackedObjects(SendBuffer sendBuffer, InterestingThing **objects); void PublishTrackedObjects(SendBuffer sendBuffer, InterestingThing **objects);
virtual void SendPosition(Vector3 worldPosition){}; virtual void SendPosition(Vector3 worldPosition) {};
virtual void SendPose(Vector3 worldPosition, Quaternion worldOrientation) {};
protected: protected:
NetworkPerception *networkPerception; NetworkPerception *networkPerception;

View File

@ -68,7 +68,8 @@ void Roboid::SetPosition(Vector3 newWorldPosition) {
this->worldPosition = newWorldPosition; this->worldPosition = newWorldPosition;
if (networkSync != nullptr) if (networkSync != nullptr)
networkSync->SendPosition(this->worldPosition); // networkSync->SendPosition(this->worldPosition);
networkSync->SendPose(this->worldPosition, this->worldOrientation);
} }
void Roboid::SetOrientation(Quaternion worldOrientation) { void Roboid::SetOrientation(Quaternion worldOrientation) {

@ -1 +1 @@
Subproject commit 644399b574c7e1d2137ce466b06be00239b675e6 Subproject commit f38e01d80ac1a5beaff5727022149c005efd3a72