Homepage Demos Overview Downloads Tutorials Reference
Credits

StartupBehavior_SetupModeSwitch.cc

Go to the documentation of this file.
00001 #include "StartupBehavior.h"
00002 
00003 #include "Behaviors/Controls/ControlBase.h"
00004 #include "Behaviors/Controls/BehaviorSwitchControl.h"
00005 
00006 #include "Behaviors/Demos/AlanBehavior.h"
00007 #include "Behaviors/Demos/ChaseBallBehavior.h"
00008 #include "Behaviors/Demos/SimpleChaseBallBehavior.h"
00009 #include "Behaviors/Demos/StareAtBallBehavior.h"
00010 #include "Behaviors/Demos/FollowHeadBehavior.h"
00011 #include "Behaviors/Demos/WalkToTargetMachine.h"
00012 #include "Behaviors/Demos/BanditMachine.h"
00013 #include "Behaviors/Demos/WorldModel2Behavior.h"
00014 #include "Behaviors/Demos/SoundTestBehavior.h"
00015 #include "Behaviors/Demos/ExploreMachine.h"
00016 
00017 ControlBase*
00018 StartupBehavior::SetupModeSwitch() {
00019   addItem(new ControlBase("Mode Switch","Contains the \"major\" applications - mutually exclusive selection"));
00020   startSubMenu();
00021   {
00022     //this group allows the behaviors to turn each other off when you start a new one so
00023     //only one is running at a time - like radio buttons
00024     BehaviorSwitchControlBase::BehaviorGroup * bg = new BehaviorSwitchControlBase::BehaviorGroup();
00025 
00026     //put behaviors here:
00027     addItem(new BehaviorSwitchControl<AlanBehavior>("AlanBehavior",bg,false));
00028     addItem(new BehaviorSwitchControl<FollowHeadBehavior>("FollowHeadBehavior",bg,false));
00029     addItem(new BehaviorSwitchControl<SoundTestBehavior>("SoundTestBehavior",bg,false));
00030     addItem(new BehaviorSwitchControl<ChaseBallBehavior>("ChaseBallBehavior",bg,false));
00031     addItem(new BehaviorSwitchControl<SimpleChaseBallBehavior>("SimpleChaseBallBehavior",bg,false));
00032     addItem(new BehaviorSwitchControl<StareAtBallBehavior>("StareAtBallBehavior",bg,false));
00033     addItem(new BehaviorSwitchControl<WalkToTargetMachine,Factory1Arg<WalkToTargetMachine,VisionEventNS::VisionSourceID_t,VisionEventNS::PinkBallSID> >("WalkToPinkBall",bg,false));
00034     addItem(new BehaviorSwitchControl<BanditMachine>("BanditMachine",bg,false));
00035     addItem(new BehaviorSwitchControl<WorldModel2Behavior>("WorldModel2Behavior",bg,false));
00036     addItem(new BehaviorSwitchControl<ExploreMachine>("ExploreMachine",bg,false));
00037   }
00038   return endSubMenu();
00039 }
00040 

Tekkotsu v1.5
Generated Fri Oct 10 15:52:00 2003 by Doxygen 1.3.4