Go to the documentation of this file.
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();
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)
int main(int argc, char **argv)
ros::MessageEvent< TestArray > last_msg_event_
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 cb(const ros::MessageEvent< TestArray > &msg_event)
TEST(RoscppLatchingPublisher, nonLatching)
M_string & getConnectionHeader() const
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