From a054967b194e0a0f3041fffcfe9c4dca48f1195e Mon Sep 17 00:00:00 2001 From: Louis-Guillaume DUBOIS Date: Wed, 22 Apr 2015 13:33:11 +0200 Subject: [PATCH] essai filtre POO --- hand_control/src/filtre.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 hand_control/src/filtre.cpp diff --git a/hand_control/src/filtre.cpp b/hand_control/src/filtre.cpp new file mode 100644 index 0000000..03f9f4b --- /dev/null +++ b/hand_control/src/filtre.cpp @@ -0,0 +1,27 @@ +#include +#include +#include + +class Filtre { + private: + typedef pcl::PointCloud PointCloud; + ros::NodeHandle node; + ros::Subscriber sub; + void callback(PointCloud&); + public: + Filtre() + { + ros::init(argc, argv, "filtre"); + callback(PointCloud& msg) + { + + } + subscriber = node.subscribe("input", 1, callback); + ros::spin(); + } +}; + +int main(int argc, char **argv) +{ + Filtre f(); +}