33 #ifndef RC_PICK_CLIENT_PICK_CLIENT_H
34 #define RC_PICK_CLIENT_PICK_CLIENT_H
36 #include <std_srvs/Trigger.h>
39 #include <dynamic_reconfigure/server.h>
42 #include <rc_pick_client/pickModuleConfig.h>
43 #include "json/json.hpp"
62 std::unique_ptr<dynamic_reconfigure::Server<rc_pick_client::pickModuleConfig>>
server_;
69 void paramsToCfg(
const json& params, rc_pick_client::pickModuleConfig& cfg);
71 template <
typename Request,
typename Response>
72 bool callService(
const std::string& name,
const Request& req, Response& res)
81 catch (
const std::exception& ex)
84 res.return_code.value = -2;
85 res.return_code.message = ex.what();
100 #endif // RC_PICK_CLIENT_PICK_CLIENT_H