SMACC2
Loading...
Searching...
No Matches
cl_nav2z::CpCostmapProxy Class Reference

#include <cp_costmap_switch.hpp>

Collaboration diagram for cl_nav2z::CpCostmapProxy:
Collaboration graph

Public Member Functions

 CpCostmapProxy (std::string costmap_name, std::string enablePropertyName, rclcpp::Node::SharedPtr nh)
 
void setCostmapEnabled (bool value)
 

Private Member Functions

rclcpp::Node::SharedPtr getNode ()
 

Private Attributes

std::string costmapName_
 
rclcpp::Node::SharedPtr nh_
 

Detailed Description

Definition at line 74 of file cp_costmap_switch.hpp.

Constructor & Destructor Documentation

◆ CpCostmapProxy()

cl_nav2z::CpCostmapProxy::CpCostmapProxy ( std::string costmap_name,
std::string enablePropertyName,
rclcpp::Node::SharedPtr nh )

Definition at line 118 of file cp_costmap_switch.cpp.

120: nh_(nh)
121{
122 RCLCPP_ERROR(nh->get_logger(), "costmap switch not implemented %s", costmapName_.c_str());
123}
rclcpp::Node::SharedPtr nh_

References costmapName_.

Member Function Documentation

◆ getNode()

rclcpp::Node::SharedPtr cl_nav2z::CpCostmapProxy::getNode ( )
inlineprivate

Definition at line 86 of file cp_costmap_switch.hpp.

86{ return nh_; }

References nh_.

◆ setCostmapEnabled()

void cl_nav2z::CpCostmapProxy::setCostmapEnabled ( bool value)

Definition at line 125 of file cp_costmap_switch.cpp.

126{
127 RCLCPP_ERROR(nh_->get_logger(), "costmap switch not implemented %s", costmapName_.c_str());
128}

References costmapName_, and nh_.

Member Data Documentation

◆ costmapName_

std::string cl_nav2z::CpCostmapProxy::costmapName_
private

Definition at line 83 of file cp_costmap_switch.hpp.

Referenced by CpCostmapProxy(), and setCostmapEnabled().

◆ nh_

rclcpp::Node::SharedPtr cl_nav2z::CpCostmapProxy::nh_
private

Definition at line 84 of file cp_costmap_switch.hpp.

Referenced by getNode(), and setCostmapEnabled().


The documentation for this class was generated from the following files: