37 #ifndef MOVEIT_MESH_FILTER_SENSOR_MODEL_ 38 #define MOVEIT_MESH_FILTER_SENSOR_MODEL_ 41 #include <Eigen/Eigen> 71 Parameters(
unsigned width,
unsigned height,
float near_clipping_plane_distance,
float far_clipping_plane_distance);
virtual void setFilterParameters(GLRenderer &renderer) const =0
sets the specific Filter Renderer parameters
virtual ~SensorModel()
virtual destructor
void setDepthRange(float near, float far)
sets the clipping range
virtual const Eigen::Vector3f & getPaddingCoefficients() const =0
returns sensor dependent padding coefficients
Parameters(unsigned width, unsigned height, float near_clipping_plane_distance, float far_clipping_plane_distance)
Constructor taking core parameters that are required for all sensors.
unsigned width_
width of depth maps generated by the sensor
float far_clipping_plane_distance_
distance of far clipping plane
Abstracts the OpenGL frame buffer objects, and provides an interface to render meshes, and retrieve the color and depth ap from opengl.
unsigned getHeight() const
returns the height of depth maps
unsigned getWidth() const
returns the width of depth maps
float near_clipping_plane_distance_
distance of near clipping plane
Abstract Interface defining Sensor Parameters.
virtual void transformModelDepthToMetricDepth(float *depth) const
transforms depth values from rendered model to metric depth values
virtual void transformFilteredDepthToMetricDepth(float *depth) const
transforms depth values from filtered depth to metric depth values
virtual void setRenderParameters(GLRenderer &renderer) const =0
method that sets required parameters for the renderer. Each sensor usually has its own shaders with s...
float getFarClippingPlaneDistance() const
returns the distance to the far clipping plane
float getNearClippingPlaneDistance() const
returns distance to the near clipping plane
void setImageSize(unsigned width, unsigned height)
sets the image size
virtual Parameters * clone() const =0
polymorphic clone method
unsigned height_
height of depth maps generated by the sensor
virtual ~Parameters()
virtual destructor
MOVEIT_CLASS_FORWARD(Parameters)
Abstract Interface defining a sensor model for mesh filtering.