Go to the documentation of this file.
32 #include <gtest/gtest.h>
36 #include "test_roscpp/TestArray.h"
40 void callback(
const test_roscpp::TestArrayConstPtr&)
44 TEST(LoadsOfPublishers, waitForAll)
66 std::map<std::string, bool>
alive;
69 TEST(LoadsOfPublishers, receiveFromAll)
81 int main(
int argc,
char** argv)
83 testing::InitGoogleTest(&argc, argv);
84 ros::init(argc, argv,
"loads_of_publishers");
88 ROS_ERROR(
"Not enough arguments (usage: loads_of_publishers num_publishers)");
96 return RUN_ALL_TESTS();
std::map< std::string, bool > alive
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
void callback(const ros::MessageEvent< test_roscpp::TestArray > &msg_event)
ROSCPP_DECL void spinOnce()
const std::string & getPublisherName() const
uint32_t getNumPublishers() const
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 callback(const test_roscpp::TestArrayConstPtr &)
TEST(LoadsOfPublishers, waitForAll)
int main(int argc, char **argv)
ROSCPP_DECL CallbackQueue * getGlobalCallbackQueue()
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