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 } |
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") |
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 Public Attributes | |
static std::array< std::string, 4 > | layerNames |
Private Attributes | |
std::map< std::string, std::shared_ptr< CpCostmapProxy > > | costmapProxies |
cl_nav2z::ClNav2Z * | nav2zClient_ |
Definition at line 41 of file cp_costmap_switch.hpp.
|
strong |
Enumerator | |
---|---|
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.
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 | ( | 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::enable | ( | StandardLayers | layerType | ) |
Definition at line 88 of file cp_costmap_switch.cpp.
References enable(), and getStandardCostmapName().
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().
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().
|
static |
Definition at line 55 of file cp_costmap_switch.cpp.
References layerNames.
Referenced by disable(), enable(), and onInitialize().
|
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().
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::client_bases::ISmaccActionClient::getName(), smacc2::ISmaccComponent::getNode(), and nav2zClient_.
Referenced by onInitialize().
|
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().