Go to the documentation of this file.
38 #include <gtest/gtest.h>
44 #include <test_roscpp/TestEmpty.h>
52 test_roscpp::TestEmpty
msg;
65 printf(
"received message %d\n",
msg_i);
108 int main(
int argc,
char** argv)
110 ros::init(argc, argv,
"subscribe_empty");
113 testing::InitGoogleTest(&argc, argv);
116 return RUN_ALL_TESTS();
Duration & fromSec(double t)
void messageCallback(const test_roscpp::TestArrayConstPtr &msg)
TEST_F(Subscriptions, emptyMsg)
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spinOnce()
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())
test_roscpp::TestEmpty msg
void messageCallback(const test_roscpp::TestEmptyConstPtr &)
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