24#include <rclcpp/rclcpp.hpp>
29namespace client_behaviors
51 template <
typename TOrthogonal,
typename TBehavior,
typename... Args>
54 std::function<std::shared_ptr<smacc2::SmaccAsyncClientBehavior>()> delayedCBFactoryFn =
58 getLogger(),
"[CbSequence] then creating new sub behavior %s ",
60 auto createdBh = std::shared_ptr<TBehavior>(
new TBehavior(args...));
78 std::list<std::function<std::shared_ptr<smacc2::SmaccAsyncClientBehavior>()>>
sequenceNodes_;
79 boost::signals2::connection
conn_;
82 std::shared_ptr<smacc2::SmaccAsyncClientBehavior>
bh_;
ISmaccState * getCurrentState()
virtual rclcpp::Logger getLogger() const
TOrthogonal * getOrthogonal()
void onStateOrthogonalAllocation()
CbSequence * then(Args &&... args)
void recursiveConsumeNext()
std::atomic< int > consume_
boost::signals2::connection conn_
boost::signals2::connection conn2_
std::list< std::function< std::shared_ptr< smacc2::SmaccAsyncClientBehavior >()> > sequenceNodes_
std::shared_ptr< smacc2::SmaccAsyncClientBehavior > bh_
std::string demangleSymbol()