4 #include <simple_node/GetMessage.h> 6 std::atomic<unsigned>
i;
9 simple_node::GetMessage::Response &res)
15 res.return_status =
true;
16 res.return_message =
"Hello!\nThis service will fail next time you call it.";
20 res.return_status =
false;
21 res.return_message =
"Uh oh, failure!\nThis service will succeed next time you call it.";
bool getMessageCallback(simple_node::GetMessage::Request &req, simple_node::GetMessage::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)
int main(int argc, char **argv)
#define ROS_INFO_STREAM(args)
ROSCPP_DECL void waitForShutdown()
std::atomic< unsigned > i