| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
BehaviorBase Class ReferenceThe basis from which all other Behaviors should inherit. More...
Inheritance diagram for BehaviorBase:
![]() Detailed DescriptionThe basis from which all other Behaviors should inherit. For complex behaviors, it may be helpful to break aspects of the behaviors into independent 'states', and use a state machine formalism to control them. See StateNode and Transition for more information. Quick-start boilerplate is included in the distribution: project Tutorials:
start() and stop() are control functions to trigger the appropriate state change in the behavior. preStart(), doStart(), and postStart() are hooks to notify subclasses in order to enact this change. Thus, subclasses should override one (or more) of the latter 3 functions, and users should call the main start() / stop() methods to (de)activate the behavior, not the hooks. Also, if you instantiate a behavior on the stack instead of the heap (this is very rarely done), remember to call setAutoDelete(false) (provided from the ReferenceCounter base class) — don't want it to try to free memory on the stack when the behavior is stopped! (The stack limits the allocation of the behavior to the current scope, which overrides the reference counting.) Don't forget to include a call to the REGISTER_BEHAVIOR macro so that your behavior will be inserted into the menu system! Definition at line 54 of file BehaviorBase.h.
Member Typedef Documentation
Typically would use MotionManager::MC_ID, but re-specified here for convenience and to avoid dependence on MotionManager.h. Definition at line 123 of file BehaviorBase.h. Member Enumeration Documentation
Specifies parameters for addMotion().
Definition at line 158 of file BehaviorBase.h. Constructor & Destructor Documentation
destructor - if is active when deleted, will display a warning (don't delete directly - use removeReference()) Definition at line 35 of file BehaviorBase.cc.
constructor, will use getClassName() as the instance name Definition at line 8 of file BehaviorBase.cc.
constructor, name is used as both instance name and class name Definition at line 14 of file BehaviorBase.cc.
copy constructor; assumes subclass handles copying approriately - i.e. if b is active, the copy will be as well, even though doStart was never called.. Definition at line 20 of file BehaviorBase.cc. Member Function Documentation
Registers the MotionCommand (contained within a shared memory region) with the MotionManager, and allows the behavior to track active motions so they can be automatically removed on stop(). If you manually call motman->addPersistentMotion() or motman->addPrunableMotion(), you avoid this safety net, such that for better or worse the motion could be "leaked" and outlive the behavior. In rare cases, this may be desired if the motion is self-pruning or shared with another behavior. Note that you can pass either SharedObject<MC> instances, or MotionPtr<MC> instances, which automatically expose their internal SharedObject when passed as such. Definition at line 138 of file BehaviorBase.cc.
Registers the MotionCommand (contained within a shared memory region) with the MotionManager, and allows the behavior to track active motions so they can be automatically removed on stop(). If you manually call motman->addPersistentMotion() or motman->addPrunableMotion(), you avoid this safety net, such that for better or worse the motion could be "leaked" and outlive the behavior. In rare cases, this may be desired if the motion is self-pruning or shared with another behavior. Note that you can pass either SharedObject<MC> instances, or MotionPtr<MC> instances, which automatically expose their internal SharedObject when passed as such. Definition at line 133 of file BehaviorBase.cc. Referenced by LookAtMarkers::setup().
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 in Controller, FreeMemReportControl, ArmController, CameraStreamBehavior, DepthCam, EchoBehavior, EStopController, MicrophoneServer, RawCam, RegionCam, SegCam, UPennWalkControllerBehavior, WalkController, WMMonitorBehavior, WorldStateSerializerBehavior, DynamicMotionSequenceNode, LogNode, MCNodeBase, MotionSequenceNode< SIZE >, RecordMotionNode, SoundNode, SpeechNode, WalkToTargetNode, WaypointEngineNode< W, mcName, mcDesc >, BatteryMonitorBehavior, CameraBehavior, FlashIPAddrBehavior, CompareTrans< T >, CompletionTrans, ConnectionMadeTrans, EventTrans, GrasperTrans, LostTargetTrans, NullTrans, PilotTrans, SignalTrans< T >, SmoothCompareTrans< T >, TextMsgTrans, TimeOutTrans, VisualTargetCloseTrans, VisualTargetTrans, DualCoding::Lookout, DualCoding::MapBuilder, DualCoding::Pilot, DualCoding::Pilot::RunMotionModel, DualCoding::Pilot::RunOpticalFlow, DualCoding::Pilot::CollisionChecker, DualCoding::Pilot::CollisionDispatch, DualCoding::Pilot::SetOdometryMachine::TurnHead, DeadReckoningBehavior< ParticleT >, FFPlanner, FFPlanNode, PitchDetector, BallDetectionGenerator, BufferedImageGenerator, CDTGenerator, FilterBankGenerator, InterleavedYUVGenerator, JPEGGenerator, PNGGenerator, RawCameraGenerator, RegionGenerator, RLEGenerator, and SegmentedColorGenerator. Definition at line 91 of file BehaviorBase.cc. Referenced by processEvent().
temporary to produce warnings to help people update Definition at line 238 of file BehaviorBase.h.
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 in Controller, FreeMemReportControl, Aibo3DControllerBehavior, ArmController, DepthCam, EchoBehavior, EStopController, HeadController, MicrophoneServer, RawCam, RegionCam, SegCam, SpeakerServer, UPennWalkControllerBehavior, WalkController, WMMonitorBehavior, WorldStateSerializerBehavior, PostStateCompletion, PostMachineCompletion, PostMachineSuccess, PostMachineFailure, WalkToTargetNode, BatteryMonitorBehavior, CameraBehavior, FlashIPAddrBehavior, Grasper::PlanBodyApproach, Grasper::PlanArmApproach, Grasper::FingersApproach, Grasper::Verify::CheckAprilTag, Grasper::ArmGrasp, Grasper::ArmNudge, Grasper::PlanBodyTransport, Grasper::PlanArmDeliver, Grasper::DoArmDeliver, Grasper::ReleaseArm, Grasper::MoveArm, Grasper::Rest::GetRestType, Grasper::Rest::GetOpenGripperFlag, Grasper::SetJoint, Grasper::PathPlanConstrained, Grasper::PathPlanToRest, Grasper::IfRequestIs, Grasper::SignalGraspError, Grasper::GrasperSucceeded, Grasper::GrasperFailed, Grasper::NextRequest, DualCoding::Lookout, DualCoding::Pilot, DualCoding::Pilot::RunMotionModel, DualCoding::Pilot::RunOpticalFlow, DualCoding::Pilot::CollisionChecker, DualCoding::Pilot::ReportCompletion, DualCoding::Pilot::CollisionDispatch, DualCoding::Pilot::TerminateDueToCollision, DualCoding::Pilot::ExecutePlan::Walk, DualCoding::Pilot::ExecutePlan::Turn, DualCoding::Pilot::ExecutePlan::AdjustTurn, DualCoding::Pilot::LocalizationUtility::ChooseGazePoints, DualCoding::Pilot::LocalizationUtility::PrepareForNextGazePoint, DualCoding::Pilot::LocalizationUtility::ReturnToInitialHeading, DualCoding::Pilot::WalkMachine::WalkMachine_WaypointWalker, DualCoding::Pilot::WalkMachine::SetWalking, DualCoding::Pilot::WaypointWalkMachine::WaypointWalkMachine_WaypointWalker, DualCoding::Pilot::WaypointWalkMachine::SetWalking, DualCoding::Pilot::SetVelocityMachine::SetVelocityMachine_Walker, DualCoding::Pilot::GoToShapeMachine::CheckParameters, DualCoding::Pilot::GoToShapeMachine::SetUpPlanNode, DualCoding::Pilot::GoToShapeMachine::SetMaxTurn, DualCoding::Pilot::PushObjectMachine::SetMaxTurn, DualCoding::Pilot::PushObjectMachine::CheckParameters, DualCoding::Pilot::PushObjectMachine::SetUpObjToDest, DualCoding::Pilot::PushObjectMachine::AddBackupPt, DualCoding::Pilot::PushObjectMachine::AddAcquirePt, DualCoding::Pilot::PushObjectMachine::SetUpObjToDest2, DualCoding::Pilot::PushObjectMachine::SetUpInitToObj, DualCoding::Pilot::PushObjectMachine::ChoosePathInitToObj, DualCoding::Pilot::PushObjectMachine::ChoosePathObjToDest, DualCoding::Pilot::PushObjectMachine::SetUpExecute2, DualCoding::Pilot::PushObjectMachine::DisplayStraightLineInitToObj, DualCoding::Pilot::PushObjectMachine::DisplayStraightLineObjToDest, DualCoding::Pilot::PushObjectMachine::DisplayPathInitToObj, DualCoding::Pilot::PushObjectMachine::DisplayPathObjToDest, DualCoding::Pilot::PushObjectMachine::WalkBackward, DualCoding::Pilot::PushObjectMachine::WalkForward, DualCoding::Pilot::PushObjectMachine::FetchObj, DualCoding::Pilot::PushObjectMachine::AdjustPush, DualCoding::Pilot::VisualSearchMachine::Check, DualCoding::Pilot::VisualSearchMachine::Rotate, DualCoding::Pilot::SetOdometryMachine::TurnHead, DualCoding::Pilot::Dispatch, EventGeneratorBase, DeadReckoningBehavior< ParticleT >, LookAtMarkers::DummyFinish, PitchDetector, BufferedImageGenerator, CDTGenerator, and RawCameraGenerator. Definition at line 139 of file BehaviorBase.h. Referenced by start().
temporary to produce warnings to help people update Definition at line 239 of file BehaviorBase.h.
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 in Controller, FreeMemReportControl, Aibo3DControllerBehavior, ArmController, DepthCam, EchoBehavior, EStopController, HeadController, MicrophoneServer, RawCam, RegionCam, SegCam, SpeakerServer, UPennWalkControllerBehavior, WalkController, WMMonitorBehavior, WorldStateSerializerBehavior, WalkToTargetNode, BatteryMonitorBehavior, CameraBehavior, FlashIPAddrBehavior, Grasper, DualCoding::Lookout, DualCoding::Pilot, DualCoding::Pilot::SetOdometryMachine::TurnHead, DualCoding::Pilot::SetOdometryMachine, EventGeneratorBase, and PitchDetector. Definition at line 149 of file BehaviorBase.h. Referenced by stop().
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 in Controller, Aibo3DControllerBehavior, ArmController, CameraStreamBehavior, DepthCam, EchoBehavior, EStopController, HeadController, RawCam, RegionCam, SegCam, UPennWalkControllerBehavior, WalkController, WMMonitorBehavior, WorldStateSerializerBehavior, LedNode, LogNode, MCNodeBase, MCNode< T, mcName, mcDesc, completes >, RecordMotionNode, WalkToTargetNode, BatteryMonitorBehavior, CameraBehavior, FlashIPAddrBehavior, TextMsgTrans, DualCoding::Lookout, DeadReckoningBehavior< ParticleT >, LookAtMarkers, PitchDetector, BallDetectionGenerator, CDTGenerator, InterleavedYUVGenerator, JPEGGenerator, PNGGenerator, RawCameraGenerator, RegionGenerator, RLEGenerator, SegmentedColorGenerator, MCNode< LedMC >, MCNode< WalkMC, defWalkNodeName, defWalkNodeDesc >, MCNode< MotionSequenceMC< SIZE >, defMotionSequenceNodeName, defMotionSequenceNodeDesc, true >, MCNode< DynamicMotionSequence, defDynamicMotionSequenceNodeName, defDynamicMotionSequenceNodeDesc, true >, MCNode< PostureMC, defPostureNodeName, defPostureNodeDesc, true >, MCNode< TailWagMC, defTailWagNodeName, defTailWagNodeDesc, false >, MCNode< W, mcName, mcDesc >, MCNode< HeadPointerMC, defHeadPointerNodeName, defHeadPointerNodeDesc, true >, MCNode< PIDMC, defPIDNodeName, defPIDNodeDesc, true >, and MCNode< ArmMC, defArmNodeName, defArmNodeDesc, true >. Definition at line 105 of file BehaviorBase.h. Referenced by getDescription().
Returns the name of the class of this behavior (aka its type) using typeid and gcc's demangle. Definition at line 96 of file BehaviorBase.cc. Referenced by PNGGenerator::calcImage(), JPEGGenerator::calcImage(), FilterBankGenerator::doEvent(), BufferedImageGenerator::doEvent(), BehaviorSwitchControlBase::getDescription(), Transition::getName(), getName(), EventLogger::spider(), StateNode::stop(), and StateNode::~StateNode().
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 in Controller, Aibo3DControllerBehavior, ArmController, CameraStreamBehavior, DepthCam, EchoBehavior, EStopController, HeadController, RawCam, RegionCam, SegCam, UPennWalkControllerBehavior, WalkController, WMMonitorBehavior, WorldStateSerializerBehavior, LedNode, LogNode, MCNodeBase, MCNode< T, mcName, mcDesc, completes >, RecordMotionNode, WalkToTargetNode, BatteryMonitorBehavior, CameraBehavior, FlashIPAddrBehavior, TextMsgTrans, DualCoding::Lookout, DualCoding::MapBuilder, DeadReckoningBehavior< ParticleT >, PitchDetector, MCNode< LedMC >, MCNode< WalkMC, defWalkNodeName, defWalkNodeDesc >, MCNode< MotionSequenceMC< SIZE >, defMotionSequenceNodeName, defMotionSequenceNodeDesc, true >, MCNode< DynamicMotionSequence, defDynamicMotionSequenceNodeName, defDynamicMotionSequenceNodeDesc, true >, MCNode< PostureMC, defPostureNodeName, defPostureNodeDesc, true >, MCNode< TailWagMC, defTailWagNodeName, defTailWagNodeDesc, false >, MCNode< W, mcName, mcDesc >, MCNode< HeadPointerMC, defHeadPointerNodeName, defHeadPointerNodeDesc, true >, MCNode< PIDMC, defPIDNodeName, defPIDNodeDesc, true >, and MCNode< ArmMC, defArmNodeName, defArmNodeDesc, true >. Definition at line 95 of file BehaviorBase.h. Referenced by BehaviorSwitchControl< B, Al >::getDescription(), and BehaviorSwitchControlBase::getDescription().
Identifies the behavior in menus and such. Reimplemented in FreeMemReportControl, and Transition. Definition at line 77 of file BehaviorBase.h. Referenced by PNGGenerator::calcImage(), JPEGGenerator::calcImage(), BallDetectionGenerator::createEvent(), SegCam::doEvent(), RawCam::doEvent(), LogNode::doEvent(), FlashIPAddrBehavior::doEvent(), FilterBankGenerator::doEvent(), DepthCam::doEvent(), BufferedImageGenerator::doEvent(), EventLogger::find(), getDescription(), BehaviorSwitchControlBase::getName(), EventLogger::isListening(), EventLogger::logImage(), EventLogger::logMessage(), EventLogger::logWebcam(), LogNode::postStart(), StateNode::postStateCompletion(), StateNode::postStateStart(), StateNode::postStateStop(), processEvent(), EventLogger::processStateMachineEvent(), CameraStreamBehavior::receiveData(), FilterBankGenerator::refresh(), EventLogger::runCommand(), Controller::select(), EventLogger::spider(), StateNode::start(), RecordMotionNode::stop(), and ~BehaviorBase().
This read-only set allows us list all the currently instantiated behaviors. Not all of these behaviors are necessarily active, this is everything that has been allocated and not yet deallocated Definition at line 112 of file BehaviorBase.h. Referenced by EventLogger::find(), and EventLogger::runCommand().
static function to provide well-defined initialization order Definition at line 101 of file BehaviorBase.cc. Referenced by BehaviorBase(), getRegistry(), and ~BehaviorBase().
A simple utility call for REGISTER_BEHAVIOR and friends to remove trailing "Behavior" suffix from display names and fix CamelCase. Disabled because it interferes with the Storyboard and other components; should be re-implemented inside ControllerGUI. a rough heuristic for inserting spaces... before any non-lowercase letter (i.e. caps or nums) where previous or next is lower, but not within a digit string or before a final digit string
Definition at line 107 of file BehaviorBase.cc.
Returns true if the behavior is currently running. Definition at line 108 of file BehaviorBase.h. Referenced by XWalkEdit::activate(), BehaviorActivatorControl::activate(), BehaviorSwitchControl< B, Al >::BehaviorSwitchControl(), BehaviorSwitchControlBase::BehaviorSwitchControlBase(), Transition::doFire(), RandomTrans::fire(), FreeMemReportControl::getName(), BehaviorSwitchControlBase::getName(), BehaviorSwitchControlBase::isRunning(), EventGeneratorBase::setAutoListen(), MotionSequenceNode< SIZE >::setFile(), DynamicMotionSequenceNode::setFile(), BehaviorSwitchControlBase::setGroup(), MCNodeBase::setMC(), StateNode::start(), BehaviorSwitchControlBase::stopother(), StateNode::~StateNode(), Transition::~Transition(), and XWalkEdit::~XWalkEdit().
assignment operator; assumes subclass handles assignment appropriately - i.e. if b is active, the copy will be as well, even though doStart was never called.. Definition at line 27 of file BehaviorBase.cc.
Called by start() after the doStart(), allows superclasses to complete initialization. For robustness to future change, subclasses should be sure to call the superclass implementation. Reimplemented in DynamicMotionSequenceNode, GroupNode, LogNode, MCNode< T, mcName, mcDesc, completes >, MotionSequenceNode< SIZE >, OutputNode, SoundNode, SpeechNode, WalkNode, WaypointEngineNode< W, mcName, mcDesc >, CompareTrans< T >, CompletionTrans, GrasperTrans, PilotTrans, SignalTrans< T >, SmoothCompareTrans< T >, TimeOutTrans, VisualTargetCloseTrans, VisualTargetTrans, FFPlanNode, MCNode< LedMC >, MCNode< WalkMC, defWalkNodeName, defWalkNodeDesc >, MCNode< MotionSequenceMC< SIZE >, defMotionSequenceNodeName, defMotionSequenceNodeDesc, true >, MCNode< DynamicMotionSequence, defDynamicMotionSequenceNodeName, defDynamicMotionSequenceNodeDesc, true >, MCNode< PostureMC, defPostureNodeName, defPostureNodeDesc, true >, MCNode< TailWagMC, defTailWagNodeName, defTailWagNodeDesc, false >, MCNode< W, mcName, mcDesc >, MCNode< HeadPointerMC, defHeadPointerNodeName, defHeadPointerNodeDesc, true >, MCNode< PIDMC, defPIDNodeName, defPIDNodeDesc, true >, and MCNode< ArmMC, defArmNodeName, defArmNodeDesc, true >. Definition at line 143 of file BehaviorBase.h. Referenced by start().
Called by start() before the doStart(), allows superclasses to do some initialization startup preceeding subclass customization. For robustness to future change, subclasses should be sure to call the superclass implementation. Reimplemented in DynamicMotionSequenceNode, MCNode< T, mcName, mcDesc, completes >, MotionSequenceNode< SIZE >, PIDNode, PostureNode, RecordMotionNode, SoundNode, SpeechNode, WalkNode, ConnectionMadeTrans, EventTrans, LostTargetTrans, NullTrans, TextMsgTrans, Grasper, DualCoding::MapBuilder, DualCoding::Pilot::SetOdometryMachine::TurnHead, MCNode< LedMC >, MCNode< WalkMC, defWalkNodeName, defWalkNodeDesc >, MCNode< MotionSequenceMC< SIZE >, defMotionSequenceNodeName, defMotionSequenceNodeDesc, true >, MCNode< DynamicMotionSequence, defDynamicMotionSequenceNodeName, defDynamicMotionSequenceNodeDesc, true >, MCNode< PostureMC, defPostureNodeName, defPostureNodeDesc, true >, MCNode< TailWagMC, defTailWagNodeName, defTailWagNodeDesc, false >, MCNode< W, mcName, mcDesc >, MCNode< HeadPointerMC, defHeadPointerNodeName, defHeadPointerNodeDesc, true >, MCNode< PIDMC, defPIDNodeName, defPIDNodeDesc, true >, and MCNode< ArmMC, defArmNodeName, defArmNodeDesc, true >. Definition at line 129 of file BehaviorBase.h. Referenced by start().
Assigns curEvent to event and calls to doEvent() for user processing. This is basically a hack for noobs who can't grok function arguments at the expense of creating a more complicated overall design for everyone else... Implements EventListener. Reimplemented in EventGeneratorBase. Definition at line 80 of file BehaviorBase.cc. Referenced by BatteryMonitorBehavior::doStart(), ArmController::relax(), and BehaviorSwitchControlBase::takeInput().
template<class T >
Registers a behavior class to be added to the specified Controller menu, use '/' to specify sub-menus, see REGISTER_BEHAVIOR macro. This only works when called as an initializer to a static variable. Once the menus have been initialized, later calls to this function won't update the menus. Definition at line 246 of file BehaviorBase.h.
template<template< typename T > class M, class T >
forwarding function so you can pass SharedObject<T> or MotionPtr<T> directly; extracts the MC_ID and passes to the other removeMotion Definition at line 188 of file BehaviorBase.h. Referenced by removeMotion().
Removes the motion from the MotionManager. As long as there exists a SharedObject reference to the underlying memory region (such as within a MotionPtr instance), the memory is not actually deallocated, and you can resubmit the same motion later if desired. Definition at line 152 of file BehaviorBase.cc.
Allows dynamic renaming of behaviors. Definition at line 80 of file BehaviorBase.h. Referenced by BehaviorSwitchControlBase::BehaviorSwitchControlBase(), and BehaviorSwitchControl< B, Al >::startmine().
Calling this signals that the behavior should start running. It will increment the reference counter, add to the registry, and call the subclass hooks (preStart() / doStart() postStart() ). Generally you shouldn't override this -- override some combination of preStart(), doStart(), and postStart() instead. Reimplemented in StateNode. Definition at line 46 of file BehaviorBase.cc. Referenced by XWalkEdit::activate(), BehaviorActivatorControl::activate(), Transition::doFire(), RandomTrans::fire(), and BehaviorSwitchControlBase::startmine().
Calling this signals the behavior to stop running. In turn, this calls doStop(), then removes the behavior from the registry and subtracts from the reference counter Ñ thus may delete the object if no other references remain. You shouldn't override this — override doStop instead. Reimplemented in LedActivate, LogNode, MCNodeBase, RecordMotionNode, SoundNode, SpeechNode, WalkNode, WaypointEngineNode< W, mcName, mcDesc >, StateNode, Transition, CompletionTrans, and DualCoding::MapBuilder. Definition at line 69 of file BehaviorBase.cc. Referenced by BehaviorActivatorControl::activate(), WalkController::doEvent(), SegCam::doEvent(), RawCam::doEvent(), DepthCam::doEvent(), BehaviorSwitchControlBase::setGroup(), BehaviorSwitchControlBase::stopother(), BehaviorSwitchControlBase::BehaviorGroup::~BehaviorGroup(), FreeMemReportControl::~FreeMemReportControl(), and XWalkEdit::~XWalkEdit(). Member Data Documentation
A list of active motions registered with this behavior to be removed when the behavior stops. If a motion is externally removed, e.g. prunes itself, the MonitorMotion instance kicks in to remove the dead MC_ID from this list Definition at line 219 of file BehaviorBase.h. Referenced by addMotion(), BehaviorBase::MonitorMotion::processEvent(), removeMotion(), stop(), and ~BehaviorBase().
the event, received by processEvent, stored for duration of call to doEvent() (also doStart() in the case of a StateNode receiving a transition), NULL at all other times Definition at line 235 of file BehaviorBase.h. Referenced by WorldStateSerializerBehavior::doEvent(), WalkController::doEvent(), VisualTargetTrans::doEvent(), VisualTargetCloseTrans::doEvent(), TimeOutTrans::doEvent(), TextMsgTrans::doEvent(), SignalTrans< T >::doEvent(), SegmentedColorGenerator::doEvent(), SegCam::doEvent(), RLEGenerator::doEvent(), RegionGenerator::doEvent(), RegionCam::doEvent(), RawCameraGenerator::doEvent(), RawCam::doEvent(), PNGGenerator::doEvent(), PitchDetector::doEvent(), PilotTrans::doEvent(), MotionSequenceNode< SIZE >::doEvent(), MCNodeBase::doEvent(), DualCoding::MapBuilder::doEvent(), LostTargetTrans::doEvent(), DualCoding::Lookout::doEvent(), LookAtMarkers::Search::doEvent(), LookAtMarkers::TrackMarker::doEvent(), LogNode::doEvent(), JPEGGenerator::doEvent(), InterleavedYUVGenerator::doEvent(), GrasperTrans::doEvent(), FreeMemReportControl::doEvent(), FlashIPAddrBehavior::doEvent(), FilterBankGenerator::doEvent(), FFPlanNode::doEvent(), FFPlanner::doEvent(), EventTrans::doEvent(), EStopController::doEvent(), EchoBehavior::doEvent(), DynamicMotionSequenceNode::doEvent(), DepthCam::doEvent(), DeadReckoningBehavior< ParticleT >::doEvent(), Controller::doEvent(), CompletionTrans::doEvent(), CDTGenerator::doEvent(), CameraStreamBehavior::doEvent(), CameraBehavior::doEvent(), BufferedImageGenerator::doEvent(), doEvent(), BatteryMonitorBehavior::doEvent(), BallDetectionGenerator::doEvent(), ArmController::doEvent(), LookAtMarkers::Search::doStart(), LookAtMarkers::TrackMarker::doStart(), Grasper::GrasperFailed::doStart(), Grasper::SignalGraspError::doStart(), Grasper::SetJoint::doStart(), SpeechNode::preStart(), SoundNode::preStart(), MotionSequenceNode< SIZE >::preStart(), DynamicMotionSequenceNode::preStart(), and processEvent().
holds the name of this instance of behavior, if empty then getName() forwards to getClassName() Definition at line 234 of file BehaviorBase.h. Referenced by Transition::getName(), getName(), operator=(), and setName().
Typically would use MotionManager::invalid_MC_ID, but re-specified here for convenience and to avoid dependence on MotionManager.h. Definition at line 125 of file BehaviorBase.h.
true when the behavior is active Definition at line 233 of file BehaviorBase.h. Referenced by isActive(), operator=(), StateNode::start(), start(), stop(), and ~BehaviorBase(). The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v5.1CVS |
Generated Sat May 4 06:33:12 2013 by Doxygen 1.6.3 |