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_nitrosz::ClNitrosZ * | nitroszClient_ |
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_nitrosz::CpCostmapSwitch::CpCostmapSwitch | ( | ) |
Definition at line 34 of file cp_costmap_switch.cpp.
void cl_nitrosz::CpCostmapSwitch::disable | ( | StandardLayers | layerType | ) |
Definition at line 111 of file cp_costmap_switch.cpp.
References disable(), and getStandardCostmapName().
void cl_nitrosz::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_nitrosz::CpCostmapSwitch::enable | ( | StandardLayers | layerType | ) |
Definition at line 88 of file cp_costmap_switch.cpp.
References enable(), and getStandardCostmapName().
void cl_nitrosz::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_nitrosz::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, nitroszClient_, smacc2::ISmaccComponent::owner_, and registerProxyFromDynamicReconfigureServer().
void cl_nitrosz::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 nitroszClient_.
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().