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)
150 testing::InitGoogleTest(&argc, argv);
159 puts(
"Too many arguments\n");
163 return RUN_ALL_TESTS();
TEST_F(Subscriptions, subUnsub)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
void messageCallback(const test_roscpp::TestArrayConstPtr &)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void autoUnsubscribeCallback(const test_roscpp::TestArrayConstPtr &)
int main(int argc, char **argv)
void unsubscribeAfterBarrierWait(boost::barrier *barrier, ros::Subscriber &sub)
ROSCPP_DECL void spinOnce()
void spinThread(bool volatile *cont)
void messageCallback(const test_roscpp::TestArrayConstPtr &msg)