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 | |
CostmapSwitch () | |
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< CostmapProxy > > | costmapProxies |
cl_nav2z::ClNav2Z * | moveBaseClient_ |
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) |
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 () |
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 |
Definition at line 44 of file cp_costmap_switch.hpp.
cl_nav2z::CostmapSwitch::CostmapSwitch | ( | ) |
Definition at line 34 of file cp_costmap_switch.cpp.
void cl_nav2z::CostmapSwitch::disable | ( | StandardLayers | layerType | ) |
Definition at line 111 of file cp_costmap_switch.cpp.
References disable(), and getStandardCostmapName().
void cl_nav2z::CostmapSwitch::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::CostmapSwitch::enable | ( | StandardLayers | layerType | ) |
Definition at line 88 of file cp_costmap_switch.cpp.
References enable(), and getStandardCostmapName().
void cl_nav2z::CostmapSwitch::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::CostmapSwitch::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, moveBaseClient_, smacc2::ISmaccComponent::owner_, and registerProxyFromDynamicReconfigureServer().
void cl_nav2z::CostmapSwitch::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 moveBaseClient_.
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().