#include <cp_costmap_switch.h>
|
void | dynreconfCallback (const dynamic_reconfigure::Config::ConstPtr &configuration_update) |
|
Definition at line 60 of file cp_costmap_switch.h.
◆ CostmapProxy()
cl_move_base_z::CostmapProxy::CostmapProxy |
( |
std::string |
costmap_name, |
|
|
std::string |
enablePropertyName |
|
) |
| |
Definition at line 99 of file cp_costmap_switch.cpp.
100{
102 dynamic_reconfigure::BoolParameter enableField;
103 enableField.name = "enabled";
104 enableField.value = true;
105
107
108 enableField.value = false;
110}
dynamic_reconfigure::Config disableReq
dynamic_reconfigure::Config enableReq
References costmapName_, disableReq, and enableReq.
◆ dynreconfCallback()
void cl_move_base_z::CostmapProxy::dynreconfCallback |
( |
const dynamic_reconfigure::Config::ConstPtr & |
configuration_update | ) |
|
|
private |
◆ setCostmapEnabled()
void cl_move_base_z::CostmapProxy::setCostmapEnabled |
( |
bool |
value | ) |
|
Definition at line 112 of file cp_costmap_switch.cpp.
113{
114 dynamic_reconfigure::ReconfigureRequest srv_req;
115 dynamic_reconfigure::ReconfigureResponse srv_resp;
116
117 if (value)
119 else
121
123 {
124 ROS_INFO(
"sending dynamic reconfigure request: %s",
costmapName_.c_str());
126 }
127 else
128 {
129 ROS_WARN(
"could not call dynamic reconfigure server. It does not exist: %s",
costmapName_.c_str());
130 }
131}
References costmapName_, disableReq, and enableReq.
◆ costmapName_
std::string cl_move_base_z::CostmapProxy::costmapName_ |
|
private |
◆ disableReq
dynamic_reconfigure::Config cl_move_base_z::CostmapProxy::disableReq |
|
private |
◆ dynrecofSub_
ros::Subscriber cl_move_base_z::CostmapProxy::dynrecofSub_ |
|
private |
◆ enableReq
dynamic_reconfigure::Config cl_move_base_z::CostmapProxy::enableReq |
|
private |
The documentation for this class was generated from the following files:
- smacc_client_library/move_base_z_client/move_base_z_client_plugin/include/move_base_z_client_plugin/components/costmap_switch/cp_costmap_switch.h
- smacc_client_library/move_base_z_client/move_base_z_client_plugin/src/components/costmap_switch/cp_costmap_switch.cpp