Go to the documentation of this file.
38 #include <gtest/gtest.h>
43 #include <test_roscpp/TestArray.h>
54 test_roscpp::TestArray outmsg;
65 ROS_INFO(
"received message %d", msg->counter);
82 TEST(SelfSubscribe, advSub)
134 #define USAGE "USAGE: sub_pub <count> <time>"
139 testing::InitGoogleTest(&argc, argv);
153 return RUN_ALL_TESTS();
Duration & fromSec(double t)
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)
void subscriberCallback(const ros::SingleSubscriberPublisher &, const ros::Publisher &pub)
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)
TEST(SelfSubscribe, advSub)
void messageCallback(const test_roscpp::TestArrayConstPtr &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