#include <robotControl.h>
Public Member Functions | |
RobotControl (RobotInterface< T > *) | |
constructor | |
~RobotControl (void) | |
destructor | |
void | addModAsThread (SubsMod *, const int &modThreadSlpTime=200) |
add a subsumption module as a separate thread | |
void | addModAsVirtualThread (SubsMod *) |
add a subsumption module as a virtual thread | |
void | setVirtualThreadSlpTime (const int &pSLP_TIME) |
change the sleep time that the master thread (for the virtual modules) will sleep for after running each of them, to give other modules a chance to run | |
void | startVirtualThreads () |
start the modules that have been added as virtual threads | |
void | startThreads () |
start the modules that have been added as threads | |
void | stopVirtualThreads () |
stop the modules that have been added as virtual threads | |
void | stopThreads () |
stop the modules that have been added as threads | |
void | openDisplay () |
open and display a widget container for textView widgets from modules | |
void | addToDisplay (SubsMod *, char *name=0) |
add a subsumption module's output text to a container display within RobotControl |
RobotControl is used to set up all the modules in all the layers of the subsumption architecture. It controls how they are implemented. They can each be run as separate threads; or as virtual threads, all running within one thread. The template T is a user defined robot interface object. It is wrapped by RobotInterface, which is a member of RobotControl. This allows users to create an interface specific to their robot.
|
constructor
|
|
add a subsumption module as a separate thread
|
|
add a subsumption module as a virtual thread
|
|
add a subsumption module's output text to a container display within RobotControl
|
|
open and display a widget container for textView widgets from modules
|
|
change the sleep time that the master thread (for the virtual modules) will sleep for after running each of them, to give other modules a chance to run
|