17 #ifndef __OBJECT_RECONSTRUCTION_MODULE_H__ 18 #define __OBJECT_RECONSTRUCTION_MODULE_H__ 21 #include <yarp/os/Vocab.h> 22 #include <yarp/os/RFModule.h> 23 #include <iCub/data3D/SurfaceMeshWithBoundingBox.h> 24 #include <iCub/data3D/minBoundBox.h> 25 #include <reconstructionRoutine.h> 26 #include <visThread.h> 28 #define ACK VOCAB3('a','c','k') 29 #define NACK VOCAB4('n','a','c','k') 32 #define STATE_RECONSTRUCT 1 33 #define STATE_VISUALIZE 2 35 class ObjectReconstr:
public yarp::os::RFModule
45 std::string outputDir;
51 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > imagePortInLeft;
52 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > imagePortInRight;
53 yarp::os::BufferedPort<iCub::data3D::SurfaceMeshWithBoundingBox> pointCloudPort;
54 yarp::os::RpcClient segmentationPort;
56 ReconstructionRoutine recRoutine;
61 void filter(pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud_in,pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud_in_filtered,
bool second=
false);
62 yarp::os::Bottle getPixelList();
63 void savePointsPly(pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud,
const std::string& name);
68 bool configure(ResourceFinder &rf);
71 bool interruptModule();
73 bool respond(
const yarp::os::Bottle& command, yarp::os::Bottle& reply);
The Definition of the BoundingBox class.