| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
DualCoding::Lookout Class ReferenceThe Lookout accepts LookoutRequests to move the head and collect sensor information. More...
Inheritance diagram for DualCoding::Lookout:
![]() Detailed DescriptionThe Lookout accepts LookoutRequests to move the head and collect sensor information. HeadMotionType can be none (user will point the head himself), pointAt, scan, track, or search. The data collected can be an image or distance reading, or for scan operations, it can be a list of locations where certain VisionObject or VisionRegion streams reported hits. Definition at line 25 of file Lookout.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
Constructor. Definition at line 31 of file Lookout.cc.
Member Function Documentation
Delegate function for event processing, the event itself is pointed to (only for the duration of the doEvent() call!) by event. Default implementation watches for 'private' text message events (those forwarded by a BehaviorSwitchControl from ControllerGUI input) and will publically rebroadcast them. The idea is that your own processEvent gets first dibs, but if the behavior doesn't handle the text message, it will be handed off for others. Reimplemented from BehaviorBase. Definition at line 209 of file Lookout.cc.
Delegate function for subclasses to be notified when the behavior starts up. Should be overridden by subclasses to subscribe to events, install motion commands, etc. doStart() is basically a hook to allow subclasses to jump in and do some customization of behavior parameters while the behavior is starting. If you are writing a behavior class and do not expect further derivation, just override doStart() yourself. However, if you do expect further derivation of your class, consider using preStart() or postStart() instead, and leave doStart() for the 'leaf' classes. Reimplemented from BehaviorBase. Definition at line 41 of file Lookout.cc.
Delegate function for subclasses to be notified when the behavior starts up. May be overridden to cleanup when the behavior is shutting down. However events will automatically be unsubscribed, and by using addMotion(), motions will automatically be removed by stop(), so you may not need any cleanup. Reimplemented from BehaviorBase. Definition at line 57 of file Lookout.cc.
Definition at line 117 of file Lookout.cc. Referenced by executeRequest(), and requestComplete().
Definition at line 94 of file Lookout.cc.
Definition at line 415 of file Lookout.cc.
Definition at line 725 of file Lookout.cc. Referenced by findLocationFor(), processScanEvent(), processSearchEvent(), processTrackEvent(), and storeVisionRegionDataTo().
Definition at line 301 of file Lookout.cc. Referenced by processPointAtEvent().
Gives a short description of what this class of behaviors does... you should override this (but don't have to). If you do override this, also consider overriding getDescription() to return it Reimplemented from BehaviorBase. Definition at line 34 of file Lookout.h. Referenced by getDescription().
Gives a short description of what this particular instantiation does (in case a more specific description is needed on an individual basis). By default simply returns getName(), because any calls from a BehaviorBase function to getClassDescription() are going to call BehaviorBase::getClassDescription(), not ~YourSubClass~getClassDescription(), because static functions can't be virtual in C++ (doh!) This means that getDescription called on a pointer to a BehaviorBase of unknown subtype would always return an empty string, which is pretty useless. So instead we return the name in this situation. If you want getDescription to return getClassDescription, you'll have to override it in your subclass to do so. Reimplemented from BehaviorBase.
returns a vector of points for searching the ground around the robot Definition at line 73 of file Lookout.cc.
Definition at line 171 of file Lookout.cc. Referenced by executeRequest().
Definition at line 242 of file Lookout.cc. Referenced by doEvent().
Definition at line 449 of file Lookout.cc. Referenced by doEvent().
Definition at line 868 of file Lookout.cc. Referenced by doEvent().
Definition at line 670 of file Lookout.cc. Referenced by doEvent().
template<class T >
Inactivates all Lookout motion commands; called when MapBuilder finishes. Definition at line 165 of file Lookout.cc.
Definition at line 346 of file Lookout.cc. Referenced by processPointAtEvent(), processScanEvent(), processSearchEvent(), scanAlongPolygon(), and stopTrack().
Definition at line 560 of file Lookout.cc. Referenced by setupScan().
Definition at line 601 of file Lookout.cc. Referenced by setupScan().
Definition at line 957 of file Lookout.cc. Referenced by triggerSearchMotionSequence().
Definition at line 515 of file Lookout.cc. Referenced by executeRequest().
Definition at line 851 of file Lookout.cc. Referenced by executeRequest().
Definition at line 648 of file Lookout.cc. Referenced by executeRequest().
Definition at line 720 of file Lookout.cc. Referenced by processTrackEvent().
Definition at line 422 of file Lookout.cc. Referenced by processScanEvent().
Definition at line 539 of file Lookout.cc. Referenced by processScanEvent().
Definition at line 920 of file Lookout.cc. Referenced by processSearchEvent(). Member Data Documentation
current Point-At request (same object as curReq) Definition at line 128 of file Lookout.h. Referenced by doStop(), executeRequest(), findPixelModes(), moveHeadToPoint(), processPointAtEvent(), and requestComplete().
pointer to request currently being executed Definition at line 127 of file Lookout.h. Referenced by busy(), doEvent(), doStop(), executeRequest(), processPointAtEvent(), processScanEvent(), processSearchEvent(), processTrackEvent(), requestComplete(), scanAlongLine(), scanAlongPolygon(), setupScan(), setupSearch(), setupTrack(), stopTrack(), triggerScanMotionSequence(), and triggerSearchMotionSequence().
Definition at line 121 of file Lookout.h. Referenced by executeRequest().
Definition at line 139 of file Lookout.h. Referenced by executeRequest().
Definition at line 120 of file Lookout.h. Referenced by executeRequest(), and findPixelModes().
id for HeadPointerMC for pointing the camera Definition at line 123 of file Lookout.h. Referenced by doStart(), doStop(), moveHeadToPoint(), processPointAtEvent(), processScanEvent(), processSearchEvent(), processTrackEvent(), relax(), scanAlongLine(), scanAlongPolygon(), setupSearch(), setupTrack(), and triggerScanMotionSequence().
id for PostureMC for pointing the IR sensors Definition at line 124 of file Lookout.h. Referenced by doStart(), doStop(), moveHeadToPoint(), processPointAtEvent(), processSearchEvent(), relax(), scanAlongLine(), setupTrack(), and triggerScanMotionSequence().
queue of pending LookoutRequest instances, including the current request Definition at line 126 of file Lookout.h. Referenced by doStop(), executeRequest(), pushRequest(), and requestComplete().
id for MotionSequenceMC for scanning Definition at line 125 of file Lookout.h. Referenced by doStart(), doStop(), moveHeadToPoint(), processScanEvent(), processSearchEvent(), relax(), scanAlongLine(), scanAlongPolygon(), setupTrack(), triggerScanMotionSequence(), and triggerSearchMotionSequence().
Definition at line 129 of file Lookout.h. Referenced by moveHeadToPoint(), processPointAtEvent(), and setupTrack().
Referenced by executeRequest(), processSearchEvent(), processTrackEvent(), setupSearch(), setupTrack(), and triggerSearchMotionSequence(). The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v5.1CVS |
Generated Tue Jan 31 04:32:30 2012 by Doxygen 1.6.3 |