36 #include <gtest/gtest.h> 42 #include <test_roscpp/TestArray.h> 59 last_msg_event_ = msg_event;
66 TEST(RoscppLatchingPublisher, nonLatching)
81 TEST(RoscppLatchingPublisher, latching)
98 TEST(RoscppLatchingPublisher, latchingMultipleSubscriptions)
120 int main(
int argc,
char** argv)
122 testing::InitGoogleTest(&argc, argv);
127 return RUN_ALL_TESTS();
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())
M_string & getConnectionHeader() const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
TEST(RoscppLatchingPublisher, nonLatching)
int main(int argc, char **argv)
void cb(const ros::MessageEvent< TestArray > &msg_event)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
ROSCPP_DECL void spinOnce()
ros::MessageEvent< TestArray > last_msg_event_