Go to the documentation of this file.
38 #include <gtest/gtest.h>
45 #include <test_roscpp/TestArray.h>
90 test_roscpp::TestArray
msg;
126 FAIL() <<
"timed out after receiving " << msg_i <<
" of " <<
g_msg_count <<
" messages";
128 FAIL() <<
"message counter did not match";
132 #define USAGE "USAGE: sub_pub <count> <time>"
137 testing::InitGoogleTest(&argc, argv);
150 return RUN_ALL_TESTS();
Duration & fromSec(double t)
void messageCallback(const test_roscpp::TestArrayConstPtr &msg)
void subscriberCallback(const ros::SingleSubscriberPublisher &)
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
void publish(const boost::shared_ptr< M > &message) const
Publisher advertise(AdvertiseOptions &ops)
TEST_F(Subscriptions, subPub)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, const boost::function< void(C)> &callback, const VoidConstPtr &tracked_object=VoidConstPtr(), const TransportHints &transport_hints=TransportHints())
test_roscpp::TestEmpty msg
int main(int argc, char **argv)
ROSCPP_DECL CallbackQueue * getGlobalCallbackQueue()
test_roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:57