essai filtre POO

This commit is contained in:
Louis-Guillaume DUBOIS 2015-04-22 13:33:11 +02:00
parent 99503b2f87
commit a054967b19

View file

@ -0,0 +1,27 @@
#include <ros/ros.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/point_types.h>
class Filtre {
private:
typedef pcl::PointCloud<pcl::PointXYZRGB> PointCloud;
ros::NodeHandle node;
ros::Subscriber sub;
void callback(PointCloud&);
public:
Filtre()
{
ros::init(argc, argv, "filtre");
callback(PointCloud& msg)
{
}
subscriber = node.subscribe<PointCloud>("input", 1, callback);
ros::spin();
}
};
int main(int argc, char **argv)
{
Filtre f();
}