1 #ifndef __VTK_TIMER_CALLBACK_HPP__
2 #define __VTK_TIMER_CALLBACK_HPP__
4 #include <pcl/point_types.h>
5 #include <pcl/kdtree/kdtree_flann.h>
7 #include <pcl/ModelCoefficients.h>
8 #include <pcl/filters/extract_indices.h>
9 #include <pcl/filters/filter.h>
10 #include <pcl/filters/voxel_grid.h>
11 #include <pcl/features/normal_3d.h>
12 #include <pcl/io/pcd_io.h>
14 #include <pcl/io/openni_grabber.h>
15 #include <pcl/kdtree/kdtree.h>
16 #include <pcl/sample_consensus/method_types.h>
17 #include <pcl/sample_consensus/model_types.h>
18 #include <pcl/segmentation/sac_segmentation.h>
19 #include <pcl/segmentation/extract_clusters.h>
21 #include <pcl/surface/poisson.h>
23 #include <pcl/surface/vtk_smoothing/vtk_utils.h>
24 #include <pcl/search/impl/search.hpp>
27 #include <vtkAxesActor.h>
28 #include <vtkCellArray.h>
29 #include <vtkCommand.h>
31 #include <vtkLineSource.h>
32 #include <vtkOBBTree.h>
33 #include <vtkPoints.h>
34 #include <vtkPointData.h>
35 #include <vtkPolyData.h>
36 #include <vtkPolyDataMapper.h>
37 #include <vtkPolygon.h>
38 #include <vtkProperty.h>
39 #include <vtkRenderer.h>
40 #include <vtkRenderWindow.h>
41 #include <vtkRenderWindowInteractor.h>
42 #include <vtkSmartPointer.h>
43 #include <vtkTransform.h>
44 #include <vtkVersion.h>
46 #include "SharedArea.hpp"
66 void setRenderer(vtkRenderer* _renderer);
68 void cloud_cb_ (
const pcl::PointCloud<pcl::PointXYZ>::ConstPtr &cbCloud);
69 virtual void Execute(vtkObject *caller,
unsigned long eventId,
void * vtkNotUsed(callData));
75 vtkRenderer *renderer;
78 void makeLineActor(vtkActor* _lineActor);
79 vtkSmartPointer<vtkLineSource> lineSource;
84 pcl::Grabber* interface;
85 pcl::PointCloud<pcl::PointXYZ>::Ptr cloud;
86 pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_filtered;
88 vtkSmartPointer<vtkPolyData> cloud_vtkPD;
89 void makeCloudActor(vtkActor* _cloudActor);
91 vtkSmartPointer<vtkPolyData> cloud_filtered_vtkPD;
92 void makeFilteredCloudActor(vtkActor* _filteredCloudActor);
93 void updateFilteredCloud();
95 void createFilteredCloud(pcl::PointCloud<pcl::PointXYZ>::Ptr& _outCloud);
97 void removePlanes(pcl::PointCloud<pcl::PointXYZ>::Ptr& _inOutCloud);
99 vtkSmartPointer<vtkActorCollection> objectActorCollection;
101 void objectSegmentation(pcl::PointCloud<pcl::PointXYZ>::Ptr& _inCloud, vtkActorCollection* _actorCollection);
104 void convertPointCloudToVTKPolyData (
const pcl::PointCloud<pcl::PointXYZ> &cloud,
105 vtkSmartPointer<vtkPolyData> &polydata);
Definition: SharedArea.hpp:12
Definition: vtkTimerCallback.hpp:58
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:5