38 #include <gtest/gtest.h> 44 #include <test_roscpp/TestEmpty.h> 52 test_roscpp::TestEmpty
msg;
61 if(failure || success)
65 printf(
"received message %d\n", msg_i);
66 if(msg_i == (msg_count-1))
82 msg_count = atoi(
g_argv[1]);
108 int main(
int argc,
char** argv)
110 ros::init(argc, argv,
"subscribe_empty");
113 testing::InitGoogleTest(&argc, argv);
116 return RUN_ALL_TESTS();
TEST_F(Subscriptions, emptyMsg)
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)
int main(int argc, char **argv)
Duration & fromSec(double t)
void messageCallback(const test_roscpp::TestEmptyConstPtr &)
test_roscpp::TestEmpty msg
ROSCPP_DECL void spinOnce()
void messageCallback(const test_roscpp::TestArrayConstPtr &msg)