Go to the documentation of this file.
38 #include <gtest/gtest.h>
46 #include <test_roscpp/TestArray.h>
53 void callback(
const test_roscpp::TestArrayConstPtr&)
63 try_count = atoi(
g_argv[1]);
66 for (
int i = 0; i < try_count; ++i )
79 pub.
publish(test_roscpp::TestArray());
82 ASSERT_TRUE(
g_got_callback) <<
"did not receive a message in iteration " << i;
89 main(
int argc,
char** argv)
91 testing::InitGoogleTest(&argc, argv);
94 return RUN_ALL_TESTS();
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ROSCPP_DECL void shutdown()
void publish(const boost::shared_ptr< M > &message) const
Publisher advertise(AdvertiseOptions &ops)
int main(int argc, char **argv)
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())
void callback(const test_roscpp::TestArrayConstPtr &)
TEST(roscpp, multipleInitAndFini)
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