Go to the documentation of this file.
36 #include <gtest/gtest.h>
42 #include <test_roscpp/TestWithHeader.h>
50 void callback(
const TestWithHeaderConstPtr& msg)
56 TEST(IncrementingSequence, incrementing)
65 msg.header.frame_id =
"blah";
76 int main(
int argc,
char** argv)
78 testing::InitGoogleTest(&argc, argv);
79 ros::init(argc, argv,
"incrementing_sequence");
83 return RUN_ALL_TESTS();
TEST(IncrementingSequence, incrementing)
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spinOnce()
void publish(const boost::shared_ptr< M > &message) const
Publisher advertise(AdvertiseOptions &ops)
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())
int main(int argc, char **argv)
void callback(const TestWithHeaderConstPtr &msg)
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