
#include "Beobot/BeobotControl.H"#include "Devices/BeoChip.H"#include "Component/ModelManager.H"#include "Util/Timer.H"#include "Util/Types.H"#include <iostream>#include <math.h>#include <signal.h>#include <unistd.h>
Go to the source code of this file.
Functions | |
| void | terminate (int s) |
| Signal handler (e.g., for control-C). | |
| int | main (const int argc, const char **argv) |
| The main method - run on Beobot. | |
Variables | |
| static bool | goforever = true |
| Will turn false on interrupt signal. | |
Test the BeobotControl class
Definition in file test-BeobotControl.C.
| int main | ( | const int | argc, | |
| const char ** | argv | |||
| ) |
The main method - run on Beobot.
Definition at line 55 of file test-BeobotControl.C.
References ModelComponent::addSubComponent(), Timer::get(), ModelManager::getExtraArg(), goforever, ModelManager::parseCommandLine(), Timer::reset(), SPEED_RAMP_LINEAR, SPEED_RAMP_SIGMOID, ModelComponent::start(), and ModelComponent::stop().
| void terminate | ( | int | s | ) |
Signal handler (e.g., for control-C).
Definition at line 51 of file test-BeobotControl.C.
References goforever.
bool goforever = true [static] |
Will turn false on interrupt signal.
Definition at line 47 of file test-BeobotControl.C.
Referenced by main(), and terminate().
1.6.3