#include <global.h>
Public Member Functions | |
CGlobalContainer () | |
~CGlobalContainer () | |
bool | init (int argc, char *argv[]) |
Initialisation. | |
void | run () |
Inits and starts threads and runs main program loop. | |
void | clear () |
Finalisation. | |
void | threadMotion () |
Thread function. | |
void | threadCmd () |
Thread function. | |
Public Attributes | |
CConfiguration | config |
CWrapper | wrapper |
Communication wrapper. | |
CRobotWrapper | robotWrapper |
Hardware wrapper (ax12, axs1, buttons, leds, ..). | |
CRobot | robotInput |
Stores the current robot data, use MUTEXINPUT to access. | |
CRobot | robotCalc |
Robot structure to do calculations (inverse kinematics, ...). | |
CMotionContainer | motion |
Motion container. | |
CConsole | console |
Console object, processes input. | |
CParser | parser |
Lexx, yacc parser. | |
CTest | test |
Test Object. | |
bool | initialisationComplete |
True if initialisation is complete. | |
bool | writeToRobot |
Turns writing data to robot off/on. | |
bool | readFromRobot |
Turns reading data from robot off/on. | |
bool | showDebugMessages |
Show debug text in console. | |
int | ax12ToKinematicChain [AX12_COUNT] |
Mapping from ax12 servo ids to kinematic chain. | |
float | collisionAnglesBackup [AX12_COUNT] |
Stores robot angles if a collision occurred. Used to reduce the amount of generated collision warning. | |
int | viewType |
Index of camera frame in robot.frames (3d viewer). | |
bool | controlTorque |
Enables Torque PID controller. | |
bool | controlSpeed |
Enables Speed PID controller. | |
char | configFilename [255] |
char | dhFilename [255] |
Static Public Attributes | |
static const float | anglesMinMaxStart [AX12_COUNT][3] |
static float | parameters [CONSOLE_PARAMETER_COUNT] |
Stores global variables, objects. Manages initialisation, finalisation and execution of main program loop.
CGlobalContainer::CGlobalContainer | ( | ) |
CGlobalContainer::~CGlobalContainer | ( | ) |
bool CGlobalContainer::init | ( | int | argc, | |
char * | argv[] | |||
) |
Initialisation.
void CGlobalContainer::run | ( | ) |
Inits and starts threads and runs main program loop.
void CGlobalContainer::clear | ( | ) |
Finalisation.
void CGlobalContainer::threadMotion | ( | ) |
Thread function.
void CGlobalContainer::threadCmd | ( | ) |
Thread function.
const float CGlobalContainer::anglesMinMaxStart [static] |
Initial value:
{ {-150.0,150.0, 0.0},{-150.0,150.0, 0.0}, {-150.0,150.0, 0.0},{-150.0,150.0, 0.0}, {-150.0,150.0, 0.0},{-150.0,150.0, 0.0}, {-150.0,150.0, 0.0},{-150.0,150.0, 0.0}, {-150.0,150.0, 0.0},{-150.0,150.0, 0.0}, {-150.0,150.0, 0.0},{-150.0,150.0, 0.0}, {-150.0,150.0, 0.0},{-150.0,150.0, 0.0}, {-150.0,150.0, 0.0},{-150.0,150.0, 0.0}, {-150.0,150.0, 0.0},{-150.0,150.0, 0.0} }
float CGlobalContainer::parameters [static] |
Initial value:
{ 0.12, 0.08, 0.7, 1.3, 0.5, 3.0, 0.10, 0.2, 2.0, 3.0, 0.5, 0.5, 0.125, 3.0, 0.025, 0.5, 13.0, 0.5, 2.0, 0.15, 2.0, 0.25, 0.5, 0.35, 0.02, 0.08, 0.04, 2.0, 0.7, 0.01, 0.1, 0.875, 0.99, 4.0, 3.0, 5.0, 0.0, 60.0, 24.0, 0.0, 10.0, 0.0, 0.5, 150.0, 20.0, 0.05, 0.3, 100.0, 0.95 }
Communication wrapper.
Hardware wrapper (ax12, axs1, buttons, leds, ..).
Stores the current robot data, use MUTEXINPUT to access.
Robot structure to do calculations (inverse kinematics, ...).
Motion container.
Console object, processes input.
Lexx, yacc parser.
Test Object.
True if initialisation is complete.
Turns writing data to robot off/on.
Turns reading data from robot off/on.
Show debug text in console.
int CGlobalContainer::ax12ToKinematicChain[AX12_COUNT] |
Mapping from ax12 servo ids to kinematic chain.
float CGlobalContainer::collisionAnglesBackup[AX12_COUNT] |
Stores robot angles if a collision occurred. Used to reduce the amount of generated collision warning.
Index of camera frame in robot.frames (3d viewer).
Enables Torque PID controller.
Enables Speed PID controller.
char CGlobalContainer::configFilename[255] |
char CGlobalContainer::dhFilename[255] |