SMACC
|
#include <cp_costmap_switch.h>
Public Types | |
enum class | StandardLayers { GLOBAL_OBSTACLES_LAYER = 0 , LOCAL_OBSTACLES_LAYER = 1 , GLOBAL_INFLATED_LAYER = 2 , LOCAL_INFLATED_LAYER = 3 } |
Public Member Functions | |
CostmapSwitch () | |
virtual void | onInitialize () override |
bool | exists (std::string layerName) |
void | enable (std::string layerName) |
void | enable (StandardLayers layerType) |
void | disable (std::string layerName) |
void | disable (StandardLayers layerType) |
void | registerProxyFromDynamicReconfigureServer (std::string costmapName, std::string enablePropertyName="enabled") |
Public Member Functions inherited from smacc::ISmaccComponent | |
ISmaccComponent () | |
virtual | ~ISmaccComponent () |
virtual std::string | getName () const |
Static Public Member Functions | |
static std::string | getStandardCostmapName (StandardLayers layertype) |
Static Public Attributes | |
static std::array< std::string, 4 > | layerNames |
Private Attributes | |
std::map< std::string, std::shared_ptr< CostmapProxy > > | costmapProxies |
cl_move_base_z::ClMoveBaseZ * | moveBaseClient_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc::ISmaccComponent | |
virtual void | initialize (ISmaccClient *owner) |
void | setStateMachine (ISmaccStateMachine *stateMachine) |
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) |
template<typename TClient > | |
void | requiresClient (TClient *&requiredClientStorage) |
virtual void | onInitialize () |
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) |
Protected Attributes inherited from smacc::ISmaccComponent | |
ISmaccStateMachine * | stateMachine_ |
ISmaccClient * | owner_ |
Definition at line 24 of file cp_costmap_switch.h.
|
strong |
Enumerator | |
---|---|
GLOBAL_OBSTACLES_LAYER | |
LOCAL_OBSTACLES_LAYER | |
GLOBAL_INFLATED_LAYER | |
LOCAL_INFLATED_LAYER |
Definition at line 27 of file cp_costmap_switch.h.
cl_move_base_z::CostmapSwitch::CostmapSwitch | ( | ) |
Definition at line 21 of file cp_costmap_switch.cpp.
void cl_move_base_z::CostmapSwitch::disable | ( | StandardLayers | layerType | ) |
Definition at line 92 of file cp_costmap_switch.cpp.
References disable(), and getStandardCostmapName().
void cl_move_base_z::CostmapSwitch::disable | ( | std::string | layerName | ) |
Definition at line 76 of file cp_costmap_switch.cpp.
References costmapProxies, and exists().
Referenced by disable().
void cl_move_base_z::CostmapSwitch::enable | ( | StandardLayers | layerType | ) |
Definition at line 71 of file cp_costmap_switch.cpp.
References enable(), and getStandardCostmapName().
void cl_move_base_z::CostmapSwitch::enable | ( | std::string | layerName | ) |
Definition at line 55 of file cp_costmap_switch.cpp.
References costmapProxies, and exists().
Referenced by enable().
bool cl_move_base_z::CostmapSwitch::exists | ( | std::string | layerName | ) |
Definition at line 45 of file cp_costmap_switch.cpp.
References costmapProxies.
Referenced by disable(), and enable().
|
static |
Definition at line 40 of file cp_costmap_switch.cpp.
References layerNames.
Referenced by disable(), enable(), and onInitialize().
|
overridevirtual |
Reimplemented from smacc::ISmaccComponent.
Definition at line 25 of file cp_costmap_switch.cpp.
References getStandardCostmapName(), GLOBAL_INFLATED_LAYER, GLOBAL_OBSTACLES_LAYER, LOCAL_INFLATED_LAYER, LOCAL_OBSTACLES_LAYER, moveBaseClient_, smacc::ISmaccComponent::owner_, and registerProxyFromDynamicReconfigureServer().
void cl_move_base_z::CostmapSwitch::registerProxyFromDynamicReconfigureServer | ( | std::string | costmapName, |
std::string | enablePropertyName = "enabled" |
||
) |
Definition at line 14 of file cp_costmap_switch.cpp.
References costmapProxies, moveBaseClient_, and smacc::client_bases::SmaccActionClientBase< ActionType >::name_.
Referenced by onInitialize().
|
private |
Definition at line 56 of file cp_costmap_switch.h.
Referenced by disable(), enable(), exists(), and registerProxyFromDynamicReconfigureServer().
|
static |
Definition at line 35 of file cp_costmap_switch.h.
Referenced by getStandardCostmapName().
|
private |
Definition at line 57 of file cp_costmap_switch.h.
Referenced by onInitialize(), and registerProxyFromDynamicReconfigureServer().