28 RCLCPP_INFO_STREAM(
getLogger(),
"[" <<
getName() <<
"] Creating sending goal callback signal.");
30 this->
navigationCallback_ = std::make_shared<cl_nav2z::ClNav2Z::SmaccNavigateResultSignal>();
51 getLogger(),
"[%s] Propagating action client signal skipped. the behavior is shutting down",
59 this->
getLogger(),
"[%s]Propagating action client signal, our goal handle is not valid",
65 auto goal_uuid_ = goalHandle->get_goal_id();
67 if (r.goal_id != goal_uuid_)
71 "[%s] Received a failure event from an action server with a different goal_uuid: %s, "
74 rclcpp_action::to_string(goal_uuid_).c_str());
84 getLogger(),
"[%s] Received result event from action server, result code",
getName().c_str());
86 if (r.code == rclcpp_action::ResultCode::SUCCEEDED)
108 RCLCPP_INFO(
getLogger(),
"[%s] Propagating success event from action server",
getName().c_str());
124 RCLCPP_INFO(
getLogger(),
"[%s] Propagating failure event from action server", name.c_str());
void sendGoal(ClNav2Z::Goal &goal)
virtual void onNavigationResult(const ClNav2Z::WrappedResult &)
std::shared_future< std::shared_ptr< rclcpp_action::ClientGoalHandle< nav2_msgs::action::NavigateToPose > > > goalHandleFuture_
bool isOwnActionResponse(const ClNav2Z::WrappedResult &)
cl_nav2z::ClNav2Z::SmaccNavigateResultSignal::SharedPtr navigationCallback_
cl_nav2z::ClNav2Z * nav2zClient_
virtual void onNavigationActionSuccess(const ClNav2Z::WrappedResult &)
virtual void onNavigationActionAbort(const ClNav2Z::WrappedResult &)
rclcpp_action::ResultCode navigationResult_
virtual ~CbNav2ZClientBehaviorBase()
std::string getName() const
virtual rclcpp::Logger getLogger() const
ISmaccStateMachine * getStateMachine()
boost::signals2::connection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)
bool isShutdownRequested()
onEntry is executed in a new thread. However the current state cannot be left until the onEntry threa...
typename ActionClient::Goal Goal
GoalHandle::WrappedResult WrappedResult
virtual bool cancelGoal() override
std::shared_future< typename GoalHandle::SharedPtr > sendGoal(Goal &goal, typename SmaccActionResultSignal::WeakPtr resultCallback=typename SmaccActionResultSignal::WeakPtr())
std::string demangleType(const std::type_info *tinfo)