SMACC2
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
cl_nav2z::CpSlamToolbox Class Reference

#include <cp_slam_toolbox.hpp>

Inheritance diagram for cl_nav2z::CpSlamToolbox:
Inheritance graph
Collaboration diagram for cl_nav2z::CpSlamToolbox:
Collaboration graph

Public Types

enum class  SlamToolboxState { Resumed , Paused }
 

Public Member Functions

 CpSlamToolbox ()
 
virtual ~CpSlamToolbox ()
 
SlamToolboxState getState ()
 
void toogleState ()
 
- Public Member Functions inherited from smacc2::ISmaccComponent
 ISmaccComponent ()
 
virtual ~ISmaccComponent ()
 
virtual std::string getName () const
 

Private Attributes

SlamToolboxState state_
 

Additional Inherited Members

- Protected Member Functions inherited from smacc2::ISmaccComponent
virtual void onInitialize ()
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
template<typename TComponent >
void requiresComponent (TComponent *&requiredComponentStorage, bool throwExceptionIfNotExist=false)
 
template<typename TComponent >
void requiresComponent (std::string name, TComponent *&requiredComponentStorage, bool throwExceptionIfNotExist=false)
 
template<typename TClient >
void requiresClient (TClient *&requiredClientStorage)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createSiblingComponent (TArgs... targs)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createSiblingNamedComponent (std::string name, TArgs... targs)
 
rclcpp::Node::SharedPtr getNode ()
 
rclcpp::Logger getLogger () const
 
ISmaccStateMachinegetStateMachine ()
 
- Protected Attributes inherited from smacc2::ISmaccComponent
ISmaccStateMachinestateMachine_
 
ISmaccClientowner_
 

Detailed Description

Definition at line 31 of file cp_slam_toolbox.hpp.

Member Enumeration Documentation

◆ SlamToolboxState

Enumerator
Resumed 
Paused 

Definition at line 37 of file cp_slam_toolbox.hpp.

Constructor & Destructor Documentation

◆ CpSlamToolbox()

cl_nav2z::CpSlamToolbox::CpSlamToolbox ( )

Definition at line 25 of file cp_slam_toolbox.cpp.

◆ ~CpSlamToolbox()

cl_nav2z::CpSlamToolbox::~CpSlamToolbox ( )
virtual

Definition at line 26 of file cp_slam_toolbox.cpp.

26{}

Member Function Documentation

◆ getState()

SlamToolboxState cl_nav2z::CpSlamToolbox::getState ( )
inline

Definition at line 43 of file cp_slam_toolbox.hpp.

43{ return state_; }

References state_.

Referenced by cl_nav2z::CbPauseSlam::onEntry(), and cl_nav2z::CbResumeSlam::onEntry().

Here is the caller graph for this function:

◆ toogleState()

void cl_nav2z::CpSlamToolbox::toogleState ( )

Definition at line 28 of file cp_slam_toolbox.cpp.

29{
31 {
33 }
34 else
35 {
37 }
38}

References Paused, Resumed, and state_.

Referenced by cl_nav2z::CbPauseSlam::onEntry(), and cl_nav2z::CbResumeSlam::onEntry().

Here is the caller graph for this function:

Member Data Documentation

◆ state_

SlamToolboxState cl_nav2z::CpSlamToolbox::state_
private

Definition at line 48 of file cp_slam_toolbox.hpp.

Referenced by getState(), and toogleState().


The documentation for this class was generated from the following files: