2 #include <gtest/gtest.h> 5 #include "std_srvs/Empty.h" 9 bool dummyService(std_srvs::Empty::Request &, std_srvs::Empty::Request &)
29 ROS_INFO(
"Persistent client is invalid");
41 unsigned seconds = 30;
62 ROS_INFO(
"Made it through %u loops in %u seconds", j, seconds);
66 int main(
int argc,
char **argv)
68 testing::InitGoogleTest(&argc, argv);
69 ros::init(argc, argv,
"service_deadlock");
70 return RUN_ALL_TESTS();
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool call(MReq &req, MRes &res)
ServiceServer advertiseService(const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj)
int main(int argc, char **argv)
TEST(roscpp, ServiceDeadlocking)
static const char SERVICE1[]
bool dummyService(std_srvs::Empty::Request &, std_srvs::Empty::Request &)
void call(ros::ServiceClient &client)