38 #include <gtest/gtest.h> 44 #include <test_roscpp/TestArray.h> 60 if(failure || success)
63 ROS_INFO(
"received message %d", msg->counter);
65 if(msg_i != msg->counter)
70 if(msg_i == (msg_count-1))
86 msg_count = atoi(
g_argv[1]);
140 ros::init(argc, argv,
"subscribe_resubscribe");
143 testing::InitGoogleTest(&argc, argv);
146 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())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
TEST_F(Subscriptions, resubscribe)
Duration & fromSec(double t)
test_roscpp::TestEmpty msg
int main(int argc, char **argv)
ROSCPP_DECL void spinOnce()
void messageCallback(const test_roscpp::TestArrayConstPtr &msg)