#include <Behavior.hpp>
Public Member Functions | |
bool | canTransitionTo (const Behavior &toBehavior) const |
virtual void | destroy ()=0 |
virtual void | didBecomeActive (const TKState ¤tState, const Behavior &previousBehavior)=0 |
virtual void | didBecomeInActive (const TKState ¤tState, const Behavior &nextBehavior)=0 |
uint64_t | getID () const |
std::string | getIDString () const |
std::string | getName () const |
Behavior * | getNextBehavior () const |
const ros::NodeHandle & | getNodeHandle () const |
BehaviorType | getType () const |
bool | hasNextBehavior () const |
virtual void | initialize ()=0 |
bool | isActive () const |
bool | isParameterInitialized () const |
virtual bool | isValid (const TKState ¤tState) const =0 |
bool | setNextBehavior (Behavior *nextBehavior_) |
void | setParameterInitialized (bool parameterInitialized_) |
virtual void | trajectoryStepActive (const TKState ¤tState, TKTrajectory &generatedTrajInput)=0 |
virtual void | trajectoryStepCreation (const TKState ¤tState, TKTrajectory &generatedTrajInput)=0 |
virtual void | trajectoryStepTermination (const TKState ¤tState, TKTrajectory &generatedTrajInput)=0 |
void | unsetNextBehavior () |
virtual bool | willBecomeActive (const TKState ¤tState, const Behavior &previousBehavior)=0 |
virtual void | willBecomeInActive (const TKState ¤tState, const Behavior &nextBehavior)=0 |
virtual | ~Behavior () |
Static Public Member Functions | |
static Behavior * | behaviorFromID (uint64_t behaviorID) |
static uint64_t | behaviorToID (Behavior *b) |
static bool | exists (Behavior *behavior) |
static bool | exists (uint64_t behaviorID) |
Protected Member Functions | |
Behavior (const std::string &name_, const BehaviorType &type_) | |
Protected Attributes | |
BehaviorController & | bController |
BehaviorInterface * | behaviorInterface |
std::string | name |
Behavior * | nextBehavior |
ros::NodeHandle | nodeHandle |
bool | parameterInitialized |
Private Attributes | |
BehaviorType | type |
Definition at line 39 of file Behavior.hpp.
TELEKYB_NAMESPACE::Behavior::Behavior | ( | const std::string & | name_, |
const BehaviorType & | type_ | ||
) | [protected] |
Definition at line 23 of file Behavior.cpp.
TELEKYB_NAMESPACE::Behavior::~Behavior | ( | ) | [virtual] |
Definition at line 37 of file Behavior.cpp.
Behavior * TELEKYB_NAMESPACE::Behavior::behaviorFromID | ( | uint64_t | behaviorID | ) | [static] |
Definition at line 123 of file Behavior.cpp.
uint64_t TELEKYB_NAMESPACE::Behavior::behaviorToID | ( | Behavior * | b | ) | [static] |
Definition at line 128 of file Behavior.cpp.
bool TELEKYB_NAMESPACE::Behavior::canTransitionTo | ( | const Behavior & | toBehavior | ) | const |
Definition at line 117 of file Behavior.cpp.
virtual void TELEKYB_NAMESPACE::Behavior::destroy | ( | ) | [pure virtual] |
virtual void TELEKYB_NAMESPACE::Behavior::didBecomeActive | ( | const TKState & | currentState, |
const Behavior & | previousBehavior | ||
) | [pure virtual] |
virtual void TELEKYB_NAMESPACE::Behavior::didBecomeInActive | ( | const TKState & | currentState, |
const Behavior & | nextBehavior | ||
) | [pure virtual] |
bool TELEKYB_NAMESPACE::Behavior::exists | ( | Behavior * | behavior | ) | [static] |
Definition at line 132 of file Behavior.cpp.
bool TELEKYB_NAMESPACE::Behavior::exists | ( | uint64_t | behaviorID | ) | [static] |
Definition at line 136 of file Behavior.cpp.
uint64_t TELEKYB_NAMESPACE::Behavior::getID | ( | ) | const |
Definition at line 43 of file Behavior.cpp.
std::string TELEKYB_NAMESPACE::Behavior::getIDString | ( | ) | const |
Definition at line 48 of file Behavior.cpp.
std::string TELEKYB_NAMESPACE::Behavior::getName | ( | ) | const |
Definition at line 73 of file Behavior.cpp.
Behavior * TELEKYB_NAMESPACE::Behavior::getNextBehavior | ( | ) | const |
Definition at line 107 of file Behavior.cpp.
const ros::NodeHandle & TELEKYB_NAMESPACE::Behavior::getNodeHandle | ( | ) | const |
Definition at line 63 of file Behavior.cpp.
BehaviorType TELEKYB_NAMESPACE::Behavior::getType | ( | ) | const |
Definition at line 112 of file Behavior.cpp.
bool TELEKYB_NAMESPACE::Behavior::hasNextBehavior | ( | ) | const |
Definition at line 102 of file Behavior.cpp.
virtual void TELEKYB_NAMESPACE::Behavior::initialize | ( | ) | [pure virtual] |
bool TELEKYB_NAMESPACE::Behavior::isActive | ( | ) | const |
Definition at line 78 of file Behavior.cpp.
bool TELEKYB_NAMESPACE::Behavior::isParameterInitialized | ( | ) | const |
Definition at line 53 of file Behavior.cpp.
virtual bool TELEKYB_NAMESPACE::Behavior::isValid | ( | const TKState & | currentState | ) | const [pure virtual] |
bool TELEKYB_NAMESPACE::Behavior::setNextBehavior | ( | Behavior * | nextBehavior_ | ) |
Definition at line 83 of file Behavior.cpp.
void TELEKYB_NAMESPACE::Behavior::setParameterInitialized | ( | bool | parameterInitialized_ | ) |
Definition at line 58 of file Behavior.cpp.
virtual void TELEKYB_NAMESPACE::Behavior::trajectoryStepActive | ( | const TKState & | currentState, |
TKTrajectory & | generatedTrajInput | ||
) | [pure virtual] |
virtual void TELEKYB_NAMESPACE::Behavior::trajectoryStepCreation | ( | const TKState & | currentState, |
TKTrajectory & | generatedTrajInput | ||
) | [pure virtual] |
virtual void TELEKYB_NAMESPACE::Behavior::trajectoryStepTermination | ( | const TKState & | currentState, |
TKTrajectory & | generatedTrajInput | ||
) | [pure virtual] |
Definition at line 97 of file Behavior.cpp.
virtual bool TELEKYB_NAMESPACE::Behavior::willBecomeActive | ( | const TKState & | currentState, |
const Behavior & | previousBehavior | ||
) | [pure virtual] |
virtual void TELEKYB_NAMESPACE::Behavior::willBecomeInActive | ( | const TKState & | currentState, |
const Behavior & | nextBehavior | ||
) | [pure virtual] |
Definition at line 48 of file Behavior.hpp.
Definition at line 64 of file Behavior.hpp.
std::string TELEKYB_NAMESPACE::Behavior::name [protected] |
Definition at line 53 of file Behavior.hpp.
Behavior* TELEKYB_NAMESPACE::Behavior::nextBehavior [protected] |
Definition at line 61 of file Behavior.hpp.
Definition at line 50 of file Behavior.hpp.
bool TELEKYB_NAMESPACE::Behavior::parameterInitialized [protected] |
Definition at line 58 of file Behavior.hpp.
BehaviorType TELEKYB_NAMESPACE::Behavior::type [private] |
Definition at line 43 of file Behavior.hpp.