1 #include <gtest/gtest.h> 4 #include <std_msgs/Int32.h> 43 void callback(
const std_msgs::Int32Ptr& number)
62 int main(
int argc,
char **argv)
64 testing::InitGoogleTest(&argc, argv);
65 int time_seed =
static_cast<int>(time(0));
73 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)
TEST(Publishers, internal)
static double CALLBACK_TEST_TIME_LIMIT_
void callback(const std_msgs::Int32Ptr &number)
int main(int argc, char **argv)
uint32_t getNumPublishers() const
Int32CallbackTest(const std::string &topic)
bool getParam(const std::string &key, std::string &s) const
std::atomic< bool > got_msg_
ROSCPP_DECL void spinOnce()