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 26 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 235 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 42 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 58 of file Lookout.cc.
Definition at line 144 of file Lookout.cc. Referenced by executeRequest(), and requestComplete().
Definition at line 113 of file Lookout.cc.
Definition at line 120 of file Lookout.cc.
Definition at line 458 of file Lookout.cc.
Definition at line 768 of file Lookout.cc. Referenced by findLocationFor(), processScanEvent(), processTrackEvent(), and storeVisionRegionDataTo().
Definition at line 327 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 35 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 polygon with points for searching the ground around the robot Definition at line 75 of file Lookout.cc.
Definition at line 198 of file Lookout.cc. Referenced by executeRequest().
Definition at line 268 of file Lookout.cc. Referenced by doEvent().
Definition at line 492 of file Lookout.cc. Referenced by doEvent().
Definition at line 912 of file Lookout.cc. Referenced by doEvent().
Definition at line 713 of file Lookout.cc. Referenced by doEvent().
template<class T >
Inactivates all Lookout motion commands; called when MapBuilder finishes. Definition at line 192 of file Lookout.cc.
Definition at line 372 of file Lookout.cc. Referenced by processPointAtEvent(), processScanEvent(), processSearchEvent(), scanAlongPolygon(), and stopTrack().
Definition at line 603 of file Lookout.cc. Referenced by setupScan().
Definition at line 644 of file Lookout.cc. Referenced by setupScan().
Definition at line 1022 of file Lookout.cc. Referenced by triggerSearchMotionSequence().
Definition at line 558 of file Lookout.cc. Referenced by executeRequest().
Definition at line 896 of file Lookout.cc. Referenced by executeRequest().
Definition at line 691 of file Lookout.cc. Referenced by executeRequest().
Definition at line 763 of file Lookout.cc. Referenced by processTrackEvent().
Definition at line 465 of file Lookout.cc. Referenced by processScanEvent().
Definition at line 582 of file Lookout.cc. Referenced by processScanEvent().
Definition at line 986 of file Lookout.cc. Referenced by processSearchEvent(). Member Data Documentation
current Point-At request (same object as curReq) Definition at line 131 of file Lookout.h. Referenced by doStop(), executeRequest(), findPixelModes(), moveHeadToPoint(), processPointAtEvent(), and requestComplete().
pointer to request currently being executed Definition at line 130 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 124 of file Lookout.h. Referenced by executeRequest().
Definition at line 118 of file Lookout.h. Referenced by executeRequest().
Definition at line 123 of file Lookout.h. Referenced by executeRequest(), and findPixelModes().
id for HeadPointerMC for pointing the camera Definition at line 126 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 127 of file Lookout.h. Referenced by doStart(), doStop(), moveHeadToPoint(), processPointAtEvent(), processSearchEvent(), relax(), scanAlongLine(), setupTrack(), and triggerScanMotionSequence().
queue of pending LookoutRequestBase instances, including the current request Definition at line 129 of file Lookout.h. Referenced by doStop(), executeRequest(), pushRequest(), and requestComplete().
id for MotionSequenceMC for scanning Definition at line 128 of file Lookout.h. Referenced by doStart(), doStop(), moveHeadToPoint(), processScanEvent(), processSearchEvent(), relax(), scanAlongLine(), scanAlongPolygon(), setupTrack(), triggerScanMotionSequence(), and triggerSearchMotionSequence().
Definition at line 132 of file Lookout.h. Referenced by moveHeadToPoint(), processPointAtEvent(), processScanEvent(), processSearchEvent(), setupSearch(), 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 Mon May 9 04:59:20 2016 by Doxygen 1.6.3 |