Go to the documentation of this file.00001 #include <ros/ros.h>
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00013
00014
00015
00017
00018
00019
00021
00022
00023
00024
00025
00026
00027
00028 #include <message_filters/subscriber.h>
00029 #include <message_filters/time_synchronizer.h>
00030
00031 #include <sensor_msgs/PointCloud2.h>
00032
00033 using namespace message_filters;
00034 #include "gripper_points_publisher.h"
00035
00036 int main(int argc, char** argv)
00037 {
00038 ros::init(argc, argv, "Keypoints_berechnen");
00039 ros::NodeHandle nh;
00040 tf::TransformListener *listener = new tf::TransformListener(nh, ros::Duration(10));
00041 sleep(1);
00042 GripperPointsPublisher gpp;
00043 message_filters::Subscriber<PointCloud> objekt_sub(nh, "points2", 3);
00044 message_filters::Subscriber<PointCloud> scene_sub(nh, "office_scene", 3);
00045 TimeSynchronizer<PointCloud, PointCloud> sync(objekt_sub, scene_sub, 10);
00046 sync.registerCallback(boost::bind(&GripperPointsPublisher::callback, &gpp, _1, _2, listener));
00047
00048 ros::spin();
00049 }
00050
00051