|
SMACC2
|
#include <cp_costmap_switch.hpp>


Public Types | |
| enum class | StandardLayers { GLOBAL_OBSTACLES_LAYER = 0 , LOCAL_OBSTACLES_LAYER = 1 , GLOBAL_INFLATED_LAYER = 2 , LOCAL_INFLATED_LAYER = 3 , GLOBAL_OBSTACLES_LAYER = 0 , LOCAL_OBSTACLES_LAYER = 1 , GLOBAL_INFLATED_LAYER = 2 , LOCAL_INFLATED_LAYER = 3 } |
| enum class | StandardLayers { GLOBAL_OBSTACLES_LAYER = 0 , LOCAL_OBSTACLES_LAYER = 1 , GLOBAL_INFLATED_LAYER = 2 , LOCAL_INFLATED_LAYER = 3 , GLOBAL_OBSTACLES_LAYER = 0 , LOCAL_OBSTACLES_LAYER = 1 , GLOBAL_INFLATED_LAYER = 2 , LOCAL_INFLATED_LAYER = 3 } |
Public Member Functions | |
| CpCostmapSwitch () | |
| 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") |
| CpCostmapSwitch () | |
| 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 smacc2::ISmaccComponent | |
| ISmaccComponent () | |
| virtual | ~ISmaccComponent () |
| virtual std::string | getName () const |
Static Public Member Functions | |
| static std::string | getStandardCostmapName (StandardLayers layertype) |
| 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< CpCostmapProxy > > | costmapProxies |
| cl_nav2z::ClNav2Z * | nav2zClient_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccComponent | |
| template<typename TOrthogonal , typename TClient > | |
| void | onComponentInitialization () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onOrthogonalAllocation () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| template<typename TComponent > | |
| void | requiresComponent (TComponent *&requiredComponentStorage, bool throwExceptionIfNotExist) |
| template<typename TComponent > | |
| void | requiresComponent (std::string name, TComponent *&requiredComponentStorage, bool throwExceptionIfNotExist) |
| template<typename TComponent > | |
| void | requiresComponent (TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename TComponent > | |
| void | requiresComponent (std::string name, TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| 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 |
| ISmaccStateMachine * | getStateMachine () |
Protected Attributes inherited from smacc2::ISmaccComponent | |
| ISmaccStateMachine * | stateMachine_ |
| ISmaccClient * | owner_ |
Definition at line 41 of file cp_costmap_switch.hpp.
|
strong |
| Enumerator | |
|---|---|
| GLOBAL_OBSTACLES_LAYER | |
| LOCAL_OBSTACLES_LAYER | |
| GLOBAL_INFLATED_LAYER | |
| LOCAL_INFLATED_LAYER | |
| GLOBAL_OBSTACLES_LAYER | |
| LOCAL_OBSTACLES_LAYER | |
| GLOBAL_INFLATED_LAYER | |
| LOCAL_INFLATED_LAYER | |
Definition at line 44 of file cp_costmap_switch.hpp.
|
strong |
| Enumerator | |
|---|---|
| GLOBAL_OBSTACLES_LAYER | |
| LOCAL_OBSTACLES_LAYER | |
| GLOBAL_INFLATED_LAYER | |
| LOCAL_INFLATED_LAYER | |
| GLOBAL_OBSTACLES_LAYER | |
| LOCAL_OBSTACLES_LAYER | |
| GLOBAL_INFLATED_LAYER | |
| LOCAL_INFLATED_LAYER | |
Definition at line 44 of file cp_costmap_switch.hpp.
| cl_nav2z::CpCostmapSwitch::CpCostmapSwitch | ( | ) |
Definition at line 34 of file cp_costmap_switch.cpp.
| cl_nav2z::CpCostmapSwitch::CpCostmapSwitch | ( | ) |
| void cl_nav2z::CpCostmapSwitch::disable | ( | StandardLayers | layerType | ) |
Definition at line 111 of file cp_costmap_switch.cpp.
References disable(), and getStandardCostmapName().

| void cl_nav2z::CpCostmapSwitch::disable | ( | StandardLayers | layerType | ) |
| void cl_nav2z::CpCostmapSwitch::disable | ( | std::string | layerName | ) |
Definition at line 93 of file cp_costmap_switch.cpp.
References costmapProxies, exists(), and smacc2::ISmaccComponent::getLogger().
Referenced by disable().


| void cl_nav2z::CpCostmapSwitch::disable | ( | std::string | layerName | ) |
| void cl_nav2z::CpCostmapSwitch::enable | ( | StandardLayers | layerType | ) |
Definition at line 88 of file cp_costmap_switch.cpp.
References enable(), and getStandardCostmapName().

| void cl_nav2z::CpCostmapSwitch::enable | ( | StandardLayers | layerType | ) |
| void cl_nav2z::CpCostmapSwitch::enable | ( | std::string | layerName | ) |
Definition at line 70 of file cp_costmap_switch.cpp.
References costmapProxies, exists(), and smacc2::ISmaccComponent::getLogger().
Referenced by enable().


| void cl_nav2z::CpCostmapSwitch::enable | ( | std::string | layerName | ) |
| bool cl_nav2z::CpCostmapSwitch::exists | ( | std::string | layerName | ) |
Definition at line 60 of file cp_costmap_switch.cpp.
References costmapProxies.
Referenced by disable(), and enable().

| bool cl_nav2z::CpCostmapSwitch::exists | ( | std::string | layerName | ) |
|
static |
Definition at line 55 of file cp_costmap_switch.cpp.
References layerNames.
Referenced by disable(), enable(), and onInitialize().

|
static |
|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 36 of file cp_costmap_switch.cpp.
References smacc2::ISmaccComponent::getLogger(), getStandardCostmapName(), GLOBAL_INFLATED_LAYER, GLOBAL_OBSTACLES_LAYER, LOCAL_INFLATED_LAYER, LOCAL_OBSTACLES_LAYER, nav2zClient_, smacc2::ISmaccComponent::owner_, and registerProxyFromDynamicReconfigureServer().

|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
| void cl_nav2z::CpCostmapSwitch::registerProxyFromDynamicReconfigureServer | ( | std::string | costmapName, |
| std::string | enablePropertyName = "enabled" ) |
Definition at line 25 of file cp_costmap_switch.cpp.
References costmapProxies, smacc2::ISmaccComponent::getLogger(), smacc2::ISmaccClient::getName(), smacc2::ISmaccComponent::getNode(), and nav2zClient_.
Referenced by onInitialize().


| void cl_nav2z::CpCostmapSwitch::registerProxyFromDynamicReconfigureServer | ( | std::string | costmapName, |
| std::string | enablePropertyName = "enabled" ) |
|
private |
Definition at line 74 of file cp_costmap_switch.hpp.
Referenced by disable(), enable(), exists(), and registerProxyFromDynamicReconfigureServer().
|
static |
Definition at line 52 of file cp_costmap_switch.hpp.
Referenced by getStandardCostmapName().
|
private |
Definition at line 75 of file cp_costmap_switch.hpp.
Referenced by onInitialize(), and registerProxyFromDynamicReconfigureServer().