6 #include <dynamic_reconfigure/server.h> 12 #include <boost/shared_ptr.hpp> 13 #include <boost/function.hpp> 14 #include <boost/bind.hpp> 18 using namespace boost;
21 #ifndef DDYNAMIC_RECONFIGURE_DDYNAMIC_RECONFIGURE_H 22 #define DDYNAMIC_RECONFIGURE_DDYNAMIC_RECONFIGURE_H 25 typedef map<string,DDPtr>
DDMap;
27 typedef boost::function<void(const DDMap&,int)>
DDFunc;
66 virtual void add(
DDParam *param);
72 virtual void remove(
DDPtr param);
78 virtual void remove(
DDParam *param);
84 virtual void remove(
string param_name);
100 virtual void start();
106 void start(DDFunc callback);
112 void start(
void(*callback)(
const DDMap&,
int));
121 void start(
void(T::*callback)(
const DDMap&,
int), T *obj) {
122 DDFunc
f = bind(callback,obj,_1,_2);
131 Value get(
const char* name);
153 ConfigDescription makeDescription();
169 static bool internalCallback(
DDynamicReconfigure *obj, Reconfigure::Request &req, Reconfigure::Response &rsp);
199 static int reassign(DDMap& map,
const string &name, T value);
207 int getUpdates(
const Reconfigure::Request &req, DDMap &config);
214 #pragma clang diagnostic push // CLion suppressor 215 #pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" 223 #pragma clang diagnostic pop 233 DDPtr at(
const DDMap& map,
const char* name);
241 Value get(
const DDMap& map,
const char* name);
243 #endif //DDYNAMIC_RECONFIGURE_DDYNAMIC_RECONFIGURE_H
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
void callback(const DDMap &map, int)