Add GetPerceivedObjects
This commit is contained in:
parent
470b2e21e5
commit
4e186b875a
@ -201,6 +201,8 @@ unsigned char Perception::PerceivedObjectCount() {
|
|||||||
return objectCount;
|
return objectCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PerceivedObject **Perception::GetPerceivedObjects() { return perceivedObjects; }
|
||||||
|
|
||||||
void Perception::Update(float currentTimeMs) {
|
void Perception::Update(float currentTimeMs) {
|
||||||
float deltaTime = currentTimeMs - lastUpdateTimeMs;
|
float deltaTime = currentTimeMs - lastUpdateTimeMs;
|
||||||
if (deltaTime <= 0)
|
if (deltaTime <= 0)
|
||||||
|
@ -16,7 +16,7 @@ public:
|
|||||||
static constexpr float equalityAngle = 5.0F;
|
static constexpr float equalityAngle = 5.0F;
|
||||||
bool IsTheSameAs(PerceivedObject *otherObj);
|
bool IsTheSameAs(PerceivedObject *otherObj);
|
||||||
|
|
||||||
int id;
|
char id;
|
||||||
|
|
||||||
Polar position;
|
Polar position;
|
||||||
float radius;
|
float radius;
|
||||||
@ -96,6 +96,7 @@ public:
|
|||||||
|
|
||||||
void AddPerceivedObject(PerceivedObject *obj);
|
void AddPerceivedObject(PerceivedObject *obj);
|
||||||
unsigned char PerceivedObjectCount();
|
unsigned char PerceivedObjectCount();
|
||||||
|
PerceivedObject **GetPerceivedObjects();
|
||||||
|
|
||||||
// mainly used for confidence update
|
// mainly used for confidence update
|
||||||
void Update(float currentTimeMs);
|
void Update(float currentTimeMs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user