38 #include <gtest/gtest.h> 45 #include <test_roscpp/TestArray.h> 61 if(failure || success)
67 msg_i = msg->counter - 1;
72 if(msg_i != msg->counter)
90 test_roscpp::TestArray
msg;
129 #define USAGE "USAGE: sub_pub <count> <time>" 134 testing::InitGoogleTest(&argc, argv);
147 return RUN_ALL_TESTS();
void publish(const boost::shared_ptr< M > &message) const
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)
ROSCPP_DECL CallbackQueue * getGlobalCallbackQueue()
void subscriberCallback(const ros::SingleSubscriberPublisher &)
Duration & fromSec(double t)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
int main(int argc, char **argv)
test_roscpp::TestEmpty msg
TEST_F(Subscriptions, subPub)
void messageCallback(const test_roscpp::TestArrayConstPtr &msg)