34 #include <gtest/gtest.h> 39 #include "test_roscpp/TestArray.h" 40 #include "roscpp/Empty.h" 43 void callback(
const test_roscpp::TestArrayConstPtr&)
48 TEST(SubscribeRetryTCP, localDisconnect)
80 TEST(SubscribeRetryTCP, localDisconnectNonTransportDisconnect)
117 TEST(SubscribeRetryTCP, remoteDisconnect)
132 roscpp::Empty::Request req;
133 roscpp::Empty::Response resp;
151 int main(
int argc,
char** argv)
153 testing::InitGoogleTest(&argc, argv);
154 ros::init(argc, argv,
"subscribe_retry_tcp");
156 return RUN_ALL_TESTS();
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
bool call(const std::string &service_name, MReq &req, MRes &res)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
TEST(SubscribeRetryTCP, localDisconnect)
int main(int argc, char **argv)
static const ConnectionManagerPtr & instance()
void callback(const test_roscpp::TestArrayConstPtr &)
ROSCPP_DECL void spinOnce()