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();
void callback(const TestWithHeaderConstPtr &msg)
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)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
TEST(IncrementingSequence, incrementing)
int main(int argc, char **argv)
ROSCPP_DECL void spinOnce()