38 #include <gtest/gtest.h>
44 #include <test_roscpp/TestArray.h>
46 #include <boost/thread.hpp>
82 for(
int i=0;i<100;i++)
129 boost::barrier barrier(2);
130 for (
int i = 0; i < 100; ++i)
133 sub_ = nh_.subscribe<test_roscpp::TestArray>(
"roscpp/pubsub_test", 1, boost::bind(
unsubscribeAfterBarrierWait, &barrier, boost::ref(sub)));
150 testing::InitGoogleTest(&argc, argv);
159 puts(
"Too many arguments\n");
163 return RUN_ALL_TESTS();