6namespace RoboidControl {
A thing is a functional component on a robot.
Definition Thing.h:9
static const unsigned int DistanceSensorType
The type of a distance sensor.
Definition Thing.h:20
bool IsSensor()
Check if the Thing is a Sensor.
Definition Thing.cpp:24
static const unsigned int MotorType
Bitmask for Motor type.
Definition Thing.h:46
bool IsMotor()
Check if the Thing is a Motor.
Definition Thing.cpp:22
Thing()
Default constructor for a Thing.
Definition Thing.cpp:5
static const unsigned int ControlledMotorType
The type of a controlled motor.
Definition Thing.h:22
static const unsigned int UncontrolledMotorType
The type of an uncontrolled motor.
Definition Thing.h:24
Thing * GetParent()
Definition Thing.cpp:28
Thing * parent
Definition Thing.h:64
Thing ** children
Definition Thing.h:66
unsigned int type
The type of Thing.
Definition Thing.h:15
static const unsigned int SensorType
Bitmap for Sensor type.
Definition Thing.h:48
static const unsigned int SwitchType
The type of a switch sensor.
Definition Thing.h:18
unsigned char childCount
Definition Thing.h:65
static const unsigned int ServoType
The type of an object received from the network.
Definition Thing.h:26
Polar position
Definition Thing.h:36
void AddChild(Thing *child)
Definition Thing.cpp:30
void SetParent(Thing *parent)
Definition Thing.cpp:26
Type
Basic Thing types.
Definition Thing.h:51
static const unsigned int ExternalType
Definition Thing.h:27
Thing * GetChild(unsigned char childIx)
Definition Thing.cpp:45
Definition Accelerometer.h:7
Definition AbsoluteEncoder.h:5