12namespace RoboidControl {
59 float GetDistance(
float horizontalDirection,
float verticalDirection,
91 unsigned char objectType = 0x00,
92 unsigned char networkId = 0x00);
95 Quaternion orientation = Quaternion::identity,
96 unsigned char objectId = 0x00,
unsigned networkId = 0x00);
100 unsigned char objectId, Spherical position,
101 Quaternion orientation = Quaternion::identity);
107 unsigned char objectId);
123 unsigned char bufferSize);
135 void Update(
float currentTimeMs);
An object tracked by the roboid.
Definition TrackedObject.h:12
Module to which keeps track of objects around the roboid.
Definition Perception.h:17
unsigned char lastObjectId
Definition Perception.h:163
unsigned int sensorCount
The number of Sensors used for Perception.
Definition Perception.h:160
void Update(float currentTimeMs)
Update the state of the perception.
Definition Perception.cpp:466
Sensor ** sensors
The Sensors used for Perception.
Definition Perception.h:158
float nearbyDistance
Objects with a distance closed that this value will be considered nearby.
Definition Perception.h:154
bool ObjectNearby(float direction, float range=10.0F)
Checks if an object is nearby.
Definition Perception.cpp:173
InterestingThing * GetMostInterestingThing()
Definition Perception.cpp:451
float GetDistanceOfType(unsigned char thingType, float horizontalAngle, float range=10.0F)
Definition Perception.cpp:129
unsigned char TrackedObjectCount()
Retrieve the number of objects currently being tracked by the roboid.
Definition Perception.cpp:403
Roboid * roboid
The roboid of this perception system.
Definition Perception.h:28
float GetDistance(float direction, float range=10.0F)
Gets the distance to the closest object.
Sensor * GetSensor(unsigned int sensorId)
Definition Perception.cpp:38
InterestingThing ** trackedObjects
Definition Perception.h:168
unsigned int GetSensorCount()
Get the number of Sensors.
Definition Perception.cpp:36
static unsigned char maxObjectCount
Definition Perception.h:165
Sensor * FindSensorOfType(unsigned int sensorType)
Find the first sensor of the given type.
Definition Perception.cpp:62
void UpdatePose(Polar translation)
Update the position/orientation of the preceived objects from the given roboid translation.
Definition Perception.cpp:518
void AddTrackedObject(Sensor *sensor, Polar position, unsigned char objectType=0x00, unsigned char networkId=0x00)
Checks if an object is nearby.
Perception()
Default Constructor.
Definition Perception.cpp:18
InterestingThing * ThingOfType(unsigned char objectType)
Definition Perception.cpp:439
bool IsInteresting(float distance)
Definition Perception.cpp:366
unsigned int AddSensor(Sensor *sensor)
Definition Perception.cpp:46
float lastUpdateTimeMs
Definition Perception.h:162
InterestingThing ** GetTrackedObjects()
Retreive the objects currently tracked by the roboid.
Definition Perception.cpp:412
unsigned char ThingsOfType(unsigned char objectType, InterestingThing *buffer[], unsigned char bufferSize)
Definition Perception.cpp:416
InterestingThing * FindTrackedObject(char objectId)
Definition Perception.cpp:377
A Roboid is used to control autonomous robots.
Definition Roboid.h:14
A sensor is a thing which can perform measurements in the environment.
Definition Sensor.h:9
Definition Accelerometer.h:7
Definition AbsoluteEncoder.h:5