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();
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)
int main(int argc, char **argv)
void callback(const test_roscpp::TestArrayConstPtr &)
ROSCPP_DECL CallbackQueue * getGlobalCallbackQueue()
const std::string & getPublisherName() const
void callback(const ros::MessageEvent< test_roscpp::TestArray > &msg_event)
TEST(LoadsOfPublishers, waitForAll)
uint32_t getNumPublishers() const
std::map< std::string, bool > alive
ROSCPP_DECL void spinOnce()