40 #include "calibration_msgs/Interval.h" 52 int main(
int argc,
char **argv)
54 ros::init(argc,argv,
"interval_intersection");
62 for (
int i=1; i<argc; i++) {
63 names.push_back(argv[i]);
73 vector<ros::Subscriber> subscribers;
74 for (
size_t i=0; i < names.size(); i++) {
75 ROS_DEBUG(
"Listening On Topic [%s]", names[i].c_str());
76 subscribers.push_back(nh.
subscribe<calibration_msgs::Interval>(names[i], 200, intersector.getNewInputStream()));
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)
#define ROS_INFO_STREAM_NAMED(name, args)
void publish(const boost::shared_ptr< M > &message) const
void myPublish(ros::Publisher *pub, calibration_msgs::Interval interval)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
int main(int argc, char **argv)