SMACC2
|
#include <cb_resume_slam.hpp>
Public Member Functions | |
CbResumeSlam (std::string serviceName="/slam_toolbox/pause_new_measurements") | |
void | onEntry () override |
Public Member Functions inherited from smacc2::client_behaviors::CbServiceCall< slam_toolbox::srv::Pause > | |
CbServiceCall (const char *serviceName) | |
CbServiceCall (const char *serviceName, std::shared_ptr< typename ServiceType::Request > request, std::chrono::milliseconds pollRate=100ms) | |
void | onEntry () override |
Public Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
virtual | ~SmaccAsyncClientBehavior () |
template<typename TCallback , typename T > | |
boost::signals2::connection | onSuccess (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onFinished (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onFailure (TCallback callback, T *object) |
void | requestForceFinish () |
void | executeOnEntry () override |
void | executeOnExit () override |
void | waitOnEntryThread (bool requestFinish) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onSuccess (TCallbackMethod callback, T *object) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onFinished (TCallbackMethod callback, T *object) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onFailure (TCallbackMethod callback, T *object) |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
ISmaccClientBehavior () | |
virtual | ~ISmaccClientBehavior () |
ISmaccStateMachine * | getStateMachine () |
std::string | getName () const |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage, bool throwExceptionIfNotExist=false) |
virtual void | onEntry () |
virtual void | onExit () |
virtual void | executeOnEntry () |
virtual void | executeOnExit () |
Protected Attributes | |
CpSlamToolbox * | slam_ |
Protected Attributes inherited from smacc2::client_behaviors::CbServiceCall< slam_toolbox::srv::Pause > | |
std::shared_ptr< rclcpp::Client< slam_toolbox::srv::Pause > > | client_ |
std::string | serviceName_ |
std::shared_ptr< typename ServiceType::Request > | request_ |
Additional Inherited Members | |
Public Attributes inherited from smacc2::client_behaviors::CbServiceCall< slam_toolbox::srv::Pause > | |
rclcpp::Client< slam_toolbox::srv::Pause >::SharedFuture | resultFuture_ |
std::shared_ptr< typename ServiceType::Response > | result_ |
std::chrono::milliseconds | pollRate_ |
Protected Member Functions inherited from smacc2::client_behaviors::CbServiceCall< slam_toolbox::srv::Pause > | |
virtual void | onServiceResponse (std::shared_ptr< typename ServiceType::Response >) |
Protected Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
void | postSuccessEvent () |
void | postFailureEvent () |
virtual void | dispose () override |
bool | isShutdownRequested () |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
virtual void | runtimeConfigure () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
ISmaccState * | getCurrentState () |
virtual void | dispose () |
virtual rclcpp::Node::SharedPtr | getNode () const |
virtual rclcpp::Logger | getLogger () const |
Definition at line 28 of file cb_resume_slam.hpp.
cl_nav2z::CbResumeSlam::CbResumeSlam | ( | std::string | serviceName = "/slam_toolbox/pause_new_measurements" | ) |
Definition at line 24 of file cb_resume_slam.cpp.
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 29 of file cb_resume_slam.cpp.
References smacc2::ISmaccClientBehavior::currentState, smacc2::ISmaccClientBehavior::getLogger(), cl_nav2z::CpSlamToolbox::getState(), smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry(), cl_nav2z::CpSlamToolbox::Paused, smacc2::client_behaviors::CbServiceCall< slam_toolbox::srv::Pause >::request_, smacc2::ISmaccClientBehavior::requiresComponent(), slam_, and cl_nav2z::CpSlamToolbox::toogleState().
|
protected |
Definition at line 35 of file cb_resume_slam.hpp.
Referenced by onEntry().