37 #include <test_roscpp/TestStringString.h> 39 bool caseFlip(test_roscpp::TestStringString::Request &req,
40 test_roscpp::TestStringString::Response &res)
44 for (
size_t i = 0; i < res.str.length(); i++)
57 test_roscpp::TestStringString::Response &res)
78 main(
int argc,
char** argv)
86 srv3 = nh.
advertiseService<test_roscpp::TestStringString::Request, test_roscpp::TestStringString::Response>(
"service_adv_unadv_in_callback", boost::bind(
caseFlipUnadvertise, _1, _2, boost::ref(srv3)));
bool caseFlipUnadvertise(test_roscpp::TestStringString::Request &req, test_roscpp::TestStringString::Response &res, ros::ServiceServer &srv)
bool caseFlip(test_roscpp::TestStringString::Request &req, test_roscpp::TestStringString::Response &res)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ServiceServer advertiseService(const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj)
bool caseFlipLongRunning(test_roscpp::TestStringString::Request &req, test_roscpp::TestStringString::Response &res)
int main(int argc, char **argv)