28 RCLCPP_INFO_STREAM(
getLogger(),
"[" <<
getName() <<
"] Creating sending goal callback signal.");
30 this->
navigationCallback_ = std::make_shared<cl_nitrosz::ClNitrosZ::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());
std::shared_future< std::shared_ptr< rclcpp_action::ClientGoalHandle< nav2_msgs::action::NavigateToPose > > > goalHandleFuture_
rclcpp_action::ResultCode navigationResult_
virtual void onNavigationActionAbort(const ClNitrosZ::WrappedResult &)
virtual ~CbNav2ZClientBehaviorBase()
cl_nitrosz::ClNitrosZ * nitroszClient_
bool isOwnActionResponse(const ClNitrosZ::WrappedResult &)
void sendGoal(ClNitrosZ::Goal &goal)
cl_nitrosz::ClNitrosZ::SmaccNavigateResultSignal::SharedPtr navigationCallback_
virtual void onNavigationResult(const ClNitrosZ::WrappedResult &)
virtual void onNavigationActionSuccess(const ClNitrosZ::WrappedResult &)
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)