essai filtre POO
This commit is contained in:
parent
99503b2f87
commit
a054967b19
1 changed files with 27 additions and 0 deletions
27
hand_control/src/filtre.cpp
Normal file
27
hand_control/src/filtre.cpp
Normal 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();
|
||||
}
|
Loading…
Reference in a new issue