subscriber_test.cpp
Go to the documentation of this file.
00001 #include <ros/ros.h>
00002 //#include <pcl_ros/point_cloud.h>
00003 //#include <pcl/point_types.h>
00004 //#include <boost/foreach.hpp>
00005 //#include <pcl/io/pcd_io.h>
00006 //#include <iostream>
00007 //#include <fstream>
00008 //#include <stdio.h>
00009 //
00011 //
00012 //#include "pcl/range_image/range_image.h"
00013 //#include "pcl/io/pcd_io.h"
00014 //#include "pcl_ros/transforms.h"
00015 //
00017 //#include <pcl/point_types.h>
00018 //#include <pcl/filters/passthrough.h>
00019 //
00021 //#include <tf/tf.h>
00022 //#include <tf/transform_listener.h>
00023 //
00024 //
00025 //#include <visualization_msgs/Marker.h>
00026 //#include <unistd.h>
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 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


estimate_grasp_positions
Author(s): Jan Metzger
autogenerated on Wed Dec 26 2012 15:57:25