Added SendPose
This commit is contained in:
parent
66ab007af9
commit
945f8af503
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 644399b574c7e1d2137ce466b06be00239b675e6
|
||||
Subproject commit f38e01d80ac1a5beaff5727022149c005efd3a72
|
Loading…
x
Reference in New Issue
Block a user