42#include <moveit_mesh_filter_export.h>
73 Parameters(
unsigned width,
unsigned height,
float near_clipping_plane_distance,
float far_clipping_plane_distance,
74 float fx,
float fy,
float cx,
float cy,
float base_line,
float disparity_resolution);
124 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
143 float disparity_resolution_;
149 const Eigen::Vector3f padding_coefficients_;
Abstracts the OpenGL frame buffer objects, and provides an interface to render meshes,...
Abstract Interface defining Sensor Parameters.
Abstract Interface defining a sensor model for mesh filtering.
Parameters for Stereo-like devices.
void setBaseline(float base_line)
sets the base line = distance of the two projective devices (camera, projector-camera)
Parameters(unsigned width, unsigned height, float near_clipping_plane_distance, float far_clipping_plane_distance, float fx, float fy, float cx, float cy, float base_line, float disparity_resolution)
Constructor.
void setCameraParameters(float fx, float fy, float cx, float cy)
sets the camera parameters of the pinhole camera where the disparities were obtained....
~Parameters() override
Descturctor.
void setDisparityResolution(float disparity_resolution)
the quantization of disparity values in pixels. Usually 1/16th or 1/8th for OpenNI compatible devices
void setRenderParameters(GLRenderer &renderer) const override
set the shader parameters required for the model rendering
void setFilterParameters(GLRenderer &renderer) const override
set the shader parameters required for the mesh filtering
SensorModel::Parameters * clone() const override
polymorphic clone method
const Eigen::Vector3f & getPaddingCoefficients() const override
returns the coefficients that are required for obtaining the padding for meshes
Model for Disparity based devices. E.g stereo camera systems or OpenNI compatible devices.
static const std::string RENDER_VERTEX_SHADER_SOURCE
source code of the vertex shader used to render the meshes
static const std::string RENDER_FRAGMENT_SHADER_SOURCE
source code of the fragment shader used to render the meshes
static const StereoCameraModel::Parameters & REGISTERED_PSDK_PARAMS
predefined sensor model for OpenNI compatible devices (e.g., PrimeSense, Kinect, Asus Xtion)
static const std::string FILTER_FRAGMENT_SHADER_SOURCE
source code of the fragment shader used to filter the depth map
static const std::string FILTER_VERTEX_SHADER_SOURCE
source code of the vertex shader used to filter the depth map