General purpose testing and demo program, using ArMode classes to provide keyboard control of various robot functions.demo uses ArMode subclasses from ARIA. These modes provide keyboard control of various aspects and accessories of the robot, and can be re-used in your programs if you wish. The ArMode classes are defined in ArModes.cpp.
"demo" is a useful program for testing out the operation of the robot for diagnostic or demonstration purposes. Other example programs focus on individual areas.
#include "Aria.h"
int main(int argc, char** argv)
{
{
{
ArLog::log(
ArLog::Terse,
"Could not connect to robot, will not have parameter file so options displayed later may not include everything");
}
else
{
}
}
{
}
{
return 1;
}
printf("You may press escape to exit\n");
false,
false,
true
))
{
printf("Could not connect to lasers... exiting\n");
}
ArTCM2 *compass = compassConnector.
create(&robot);
compass = NULL;
}
else
ArModeTCM2 tcm2(&robot,
"tcm2",
'm',
'M', compass);
ArModeIO io(&robot, "io", 'i', 'I');
ArModeCommand command(&robot, "command", 'd', 'D');
ArModePosition position(&robot, "position", 'p', 'P', &gyro);
ArModeBumps bumps(&robot, "bumps", 'b', 'B');
ArModeLaser laser(&robot, "laser", 'l', 'L');
return 0;
}