Groups all global the definitions for the package. More...
#include <april/april_config.h>#include <april/april_global.h>#include <april/april_debug.h>#include <april/april_version.h>#include <libbbb/1/memtrack.h>#include <libbbb/1/refcnt.h>Go to the source code of this file.
Macros | |
| #define | RAND_0_1 ( ((qreal)qrand()) / RAND_MAX ) | 
| generate a random real number between 0 and 1  | |
| #define | RAND_ARROUND_1 ( RAND_0_1 + 0.5 ) | 
| generate a random real number between 0.5 and 1.5  | |
| #define | RAND_ARROUND_0 ( RAND_0_1 - 0.5 ) | 
| generate a random real number between -0.5 and 0.5  | |
| #define | SMALL_RANDOM ( RAND_ARROUND_0 / 100000 ) | 
| a very small random value  | |
| #define | RANDINT_0_MAX(m) ( qrand() % (m) ) | 
| a random value between 0 and m  | |
| #define | xstringify(s) #s | 
| helper for stringify  | |
| #define | stringify(s) xstringify(s) | 
| convert an identifier to its string representation  | |
| #define | firstSensor_(p) static_cast<Sensor*>(p->sensors_.first()) | 
| #define | prevSensor_(p) static_cast<Sensor*>(p->prev()) | 
| #define | nextSensor_(p) static_cast<Sensor*>(p->next()) | 
| #define | firstActor_(p) static_cast<Actor*>(p->actors_.first()) | 
| #define | prevActor_(p) static_cast<Actor*>(p->prev()) | 
| #define | nextActor_(p) static_cast<Actor*>(p->next()) | 
| #define | firstActuator_(p) static_cast<Actuator*>(p->actuators_.first()) | 
| #define | prevActuator_(p) static_cast<Actuator*>(p->prev()) | 
| #define | nextActuator_(p) static_cast<Actuator*>(p->next()) | 
| #define | firstReflex_(p) static_cast<Reflex*>(p->reflexes_.first()) | 
| #define | prevReflex_(p) static_cast<Reflex*>(p->prev()) | 
| #define | nextReflex_(p) static_cast<Reflex*>(p->next()) | 
| #define | firstBrain_(p) static_cast<Brain*>(p->brains_.first()) | 
| #define | prevBrain_(p) static_cast<Brain*>(p->prev()) | 
| #define | nextBrain_(p) static_cast<Brain*>(p->next()) | 
| #define | firstEvent_(p) static_cast<EventSource*>(p->events_.first()) | 
| #define | prevEvent_(p) static_cast<EventSource*>(p->prev()) | 
| #define | nextEvent_(p) static_cast<EventSource*>(p->next()) | 
| #define | firstWorld_(p) static_cast<World*>(p->worlds_.first()) | 
| #define | prevWorld_(p) static_cast<World*>(p->prev()) | 
| #define | nextWorld_(p) static_cast<World*>(p->next()) | 
| #define | firstEventData_(p) static_cast<EventData*>(p->event_data_.first()) | 
| #define | prevEventData_(p) static_cast<EventData*>(p->prev()) | 
| #define | nextEventData_(p) static_cast<EventData*>(p->next()) | 
| #define | firstPlugin_(p) static_cast<AprilPluginLoader*>(p->plugins_.first()) | 
| #define | prevPlugin_(p) static_cast<AprilPluginLoader*>(p->prev()) | 
| #define | nextPlugin_(p) static_cast<AprilPluginLoader*>(p->next()) | 
Groups all global the definitions for the package.
| #define firstActor_ | ( | p | ) | static_cast<Actor*>(p->actors_.first()) | 
easy accesor macro for List2De derived classes
| #define firstActuator_ | ( | p | ) | static_cast<Actuator*>(p->actuators_.first()) | 
easy accesor macro for List2De derived classes
| #define firstBrain_ | ( | p | ) | static_cast<Brain*>(p->brains_.first()) | 
easy accesor macro for List2De derived classes
| #define firstEvent_ | ( | p | ) | static_cast<EventSource*>(p->events_.first()) | 
easy accesor macro for List2De derived classes
| #define firstEventData_ | ( | p | ) | static_cast<EventData*>(p->event_data_.first()) | 
easy accesor macro for List2De derived classes
| #define firstPlugin_ | ( | p | ) | static_cast<AprilPluginLoader*>(p->plugins_.first()) | 
easy accesor macro for List2De derived classes
| #define firstReflex_ | ( | p | ) | static_cast<Reflex*>(p->reflexes_.first()) | 
easy accesor macro for List2De derived classes
| #define firstSensor_ | ( | p | ) | static_cast<Sensor*>(p->sensors_.first()) | 
easy accesor macro for List2De derived classes
| #define firstWorld_ | ( | p | ) | static_cast<World*>(p->worlds_.first()) | 
easy accesor macro for List2De derived classes
| #define nextActor_ | ( | p | ) | static_cast<Actor*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define nextActuator_ | ( | p | ) | static_cast<Actuator*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define nextBrain_ | ( | p | ) | static_cast<Brain*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define nextEvent_ | ( | p | ) | static_cast<EventSource*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define nextEventData_ | ( | p | ) | static_cast<EventData*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define nextPlugin_ | ( | p | ) | static_cast<AprilPluginLoader*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define nextReflex_ | ( | p | ) | static_cast<Reflex*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define nextSensor_ | ( | p | ) | static_cast<Sensor*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define nextWorld_ | ( | p | ) | static_cast<World*>(p->next()) | 
easy accesor macro for List2De derived classes
| #define prevActor_ | ( | p | ) | static_cast<Actor*>(p->prev()) | 
easy accesor macro for List2De derived classes
| #define prevActuator_ | ( | p | ) | static_cast<Actuator*>(p->prev()) | 
easy accesor macro for List2De derived classes
| #define prevBrain_ | ( | p | ) | static_cast<Brain*>(p->prev()) | 
easy accesor macro for List2De derived classes
| #define prevEvent_ | ( | p | ) | static_cast<EventSource*>(p->prev()) | 
easy accesor macro for List2De derived classes
| #define prevEventData_ | ( | p | ) | static_cast<EventData*>(p->prev()) | 
easy accesor macro for List2De derived classes
| #define prevPlugin_ | ( | p | ) | static_cast<AprilPluginLoader*>(p->prev()) | 
easy accesor macro for List2De derived classes
| #define prevReflex_ | ( | p | ) | static_cast<Reflex*>(p->prev()) | 
easy accesor macro for List2De derived classes
| #define prevSensor_ | ( | p | ) | static_cast<Sensor*>(p->prev()) | 
easy accesor macro for List2De derived classes
| #define prevWorld_ | ( | p | ) | static_cast<World*>(p->prev()) | 
easy accesor macro for List2De derived classes