Disable LH tracker hack

This commit is contained in:
Pascal Serrarens 2024-04-17 15:21:58 +02:00
parent 6576a38f9b
commit 4403f7a341

View File

@ -80,7 +80,7 @@ void NetworkPerception::ReceiveObject(unsigned char *data, Roboid *roboid) {
}
// HACK!!!
#include "../../../src/LighthouseTracker.h"
// #include "../../../src/LighthouseTracker.h"
void NetworkPerception::ReceiveTypedObject(unsigned char *data,
Roboid *roboid) {
@ -99,9 +99,9 @@ void NetworkPerception::ReceiveTypedObject(unsigned char *data,
// roboid->perception->AddTrackedObject(this, objectType, worldPosition,
// worldOrientation);
Sensor *sensor =
roboid->perception->FindSensorOfType(0x82); // Lighthouse type sensor
LighthouseTracker *lhSensor = (LighthouseTracker *)sensor;
lhSensor->UpdateGeometry(objectId, worldPosition, worldOrientation);
// Sensor *sensor =
// roboid->perception->FindSensorOfType(0x82); // Lighthouse type sensor
// LighthouseTracker *lhSensor = (LighthouseTracker *)sensor;
// lhSensor->UpdateGeometry(objectId, worldPosition, worldOrientation);
}
}