42 #include <test_roscpp/TestArray.h> 48 test_roscpp::TestArray copy = *msg;
59 #define USAGE "USAGE: publish_n_fast <sz>" 61 int main(
int argc,
char** argv)
void publish(const boost::shared_ptr< M > &message) const
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
int main(int argc, char **argv)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
uint32_t getNumSubscribers() const
void messageCallback(const test_roscpp::TestArrayConstPtr &msg, ros::Publisher pub)