15 if (clBehavior !=
nullptr)
17 ROS_INFO(
"[Orthogonal %s] adding client behavior: %s", this->
getName().c_str(), clBehavior->getName().c_str());
19 clBehavior->currentOrthogonal =
this;
25 ROS_INFO(
"[orthogonal %s] no client behaviors in this state", this->
getName().c_str());
35 ROS_INFO(
"[Orthogonal %s] initState: %s", this->
getName().c_str(), state->
getClassName().c_str());
36 clientBehaviors_.push_back(std::vector<std::shared_ptr<smacc::ISmaccClientBehavior>>());
48 ROS_INFO(
"[Orthogonal %s] runtimeConfigure, current Behavior: %s", this->
getName().c_str(),
49 clBehavior->getName().c_str());
51 clBehavior->runtimeConfigure();
61 ROS_INFO(
"[Orthogonal %s] OnEntry, current Behavior: %s", this->
getName().c_str(), clBehavior->getName().c_str());
65 clBehavior->executeOnEntry();
67 catch (
const std::exception &e)
69 ROS_ERROR(
"[ClientBehavior %s] Exception on Entry - continuing with next client behavior. Exception info: %s",
70 clBehavior->getName().c_str(), e.what());
76 ROS_INFO(
"[Orthogonal %s] OnEntry", this->
getName().c_str());
86 ROS_INFO(
"[Orthogonal %s] OnExit, current Behavior: %s", this->
getName().c_str(), clBehavior->getName().c_str());
89 clBehavior->executeOnExit();
91 catch (
const std::exception &e)
93 ROS_ERROR(
"[ClientBehavior %s] Exception onExit - continuing with next client behavior. Exception info: %s", clBehavior->getName().c_str(), e.what());
99 ROS_INFO(
"[Orthogonal %s] OnExit", this->
getName().c_str());
107 clBehavior->dispose();
void setStateMachine(ISmaccStateMachine *value)
ISmaccStateMachine * stateMachine_
virtual std::string getName() const
virtual void onInitialize()
void initState(ISmaccState *state)
std::vector< std::vector< std::shared_ptr< smacc::ISmaccClientBehavior > > > clientBehaviors_
ISmaccStateMachine * getStateMachine()
void addClientBehavior(std::shared_ptr< smacc::ISmaccClientBehavior > clientBehavior)
void disconnectSmaccSignalObject(void *object)
virtual std::string getClassName()
std::string demangleSymbol()