3 #ifndef __YARP_OPENRAVE_MESH_FROM_REAL_DEPTH_HPP__
4 #define __YARP_OPENRAVE_MESH_FROM_REAL_DEPTH_HPP__
6 #include <yarp/os/PeriodicThread.h>
7 #include <yarp/os/Property.h>
9 #include <yarp/dev/DeviceDriver.h>
10 #include <yarp/dev/IRGBDSensor.h>
11 #include <yarp/dev/PolyDriver.h>
13 #include <yarp/sig/IntrinsicParams.h>
14 #include <yarp/sig/PointCloudUtils.h>
15 #include <yarp/sig/Vector.h>
17 #include <openrave/openrave.h>
19 #include "YarpOpenraveBase.hpp"
21 #define DEFAULT_PERIOD 0.1
22 #define DEFAULT_LOCAL_PREFIX "/YarpOpenraveDepthToMesh/client"
39 public yarp::os::PeriodicThread,
40 public yarp::dev::DeviceDriver
50 bool open(yarp::os::Searchable & config)
override;
51 bool close()
override;
58 yarp::dev::PolyDriver sensorDevice;
59 yarp::dev::IRGBDSensor * iRGBDSensor {
nullptr};
60 yarp::sig::IntrinsicParams depthIntrinsicParams;
61 yarp::sig::VectorOf<yarp::os::Property> meshOptions;
63 OpenRAVE::KinBodyPtr previousMesh {
nullptr};
64 OpenRAVE::RobotBase::AttachedSensorPtr depthSensor;
66 yarp::sig::utils::PCL_ROI roi;
Implements shared configuration functions.
Definition: YarpOpenraveBase.hpp:32
Converts depth frames into a 3D mesh.
Definition: YarpOpenraveMeshFromRealDepth.hpp:41
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:5