moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
Parameters for Stereo-like devices. More...
#include <stereo_camera_model.h>
Public Member Functions | |
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. | |
~Parameters () override | |
Descturctor. | |
SensorModel::Parameters * | clone () const override |
polymorphic clone method | |
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 | |
void | setCameraParameters (float fx, float fy, float cx, float cy) |
sets the camera parameters of the pinhole camera where the disparities were obtained. Usually the left camera | |
void | setBaseline (float base_line) |
sets the base line = distance of the two projective devices (camera, projector-camera) | |
void | setDisparityResolution (float disparity_resolution) |
the quantization of disparity values in pixels. Usually 1/16th or 1/8th for OpenNI compatible devices | |
const Eigen::Vector3f & | getPaddingCoefficients () const override |
returns the coefficients that are required for obtaining the padding for meshes | |
Public Member Functions inherited from mesh_filter::SensorModel::Parameters | |
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. | |
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 | |
void | setImageSize (unsigned width, unsigned height) |
sets the image size | |
void | setDepthRange (float near, float far) |
sets the clipping range | |
unsigned | getWidth () const |
returns the width of depth maps | |
unsigned | getHeight () const |
returns the height of depth maps | |
float | getNearClippingPlaneDistance () const |
returns distance to the near clipping plane | |
float | getFarClippingPlaneDistance () const |
returns the distance to the far clipping plane | |
Additional Inherited Members | |
Protected Attributes inherited from mesh_filter::SensorModel::Parameters | |
unsigned | width_ |
width of depth maps generated by the sensor | |
unsigned | height_ |
height of depth maps generated by the sensor | |
float | far_clipping_plane_distance_ |
distance of far clipping plane | |
float | near_clipping_plane_distance_ |
distance of near clipping plane | |
Parameters for Stereo-like devices.
Definition at line 57 of file stereo_camera_model.h.
mesh_filter::StereoCameraModel::Parameters::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.
[in] | width | width of generated depth maps from this device |
[in] | height | height of generated depth maps from this device |
[in] | near_clipping_plane_distance | distance of near clipping plane |
[in] | far_clipping_plane_distance | distance of far clipping plene |
[in] | fx | focal length in x-direction |
[in] | fy | focal length in y-direction |
[in] | cx | x component of principal point |
[in] | cy | y component of principal point |
[in] | base_line | the distance in meters used to determine disparity values |
[in] | disparity_resolution | resolution/quantization of disparity values in pixels |
Definition at line 40 of file stereo_camera_model.cpp.
|
overridevirtualdefault |
Descturctor.
Reimplemented from mesh_filter::SensorModel::Parameters.
|
overridevirtual |
polymorphic clone method
Implements mesh_filter::SensorModel::Parameters.
Definition at line 57 of file stereo_camera_model.cpp.
|
overridevirtual |
returns the coefficients that are required for obtaining the padding for meshes
Implements mesh_filter::SensorModel::Parameters.
Definition at line 94 of file stereo_camera_model.cpp.
void mesh_filter::StereoCameraModel::Parameters::setBaseline | ( | float | base_line | ) |
sets the base line = distance of the two projective devices (camera, projector-camera)
[in] | base_line | the distance in meters |
Definition at line 71 of file stereo_camera_model.cpp.
void mesh_filter::StereoCameraModel::Parameters::setCameraParameters | ( | float | fx, |
float | fy, | ||
float | cx, | ||
float | cy | ||
) |
sets the camera parameters of the pinhole camera where the disparities were obtained. Usually the left camera
[in] | fx | focal length in x-direction |
[in] | fy | focal length in y-direction |
[in] | cx | x component of principal point |
[in] | cy | y component of principal point |
Definition at line 63 of file stereo_camera_model.cpp.
void mesh_filter::StereoCameraModel::Parameters::setDisparityResolution | ( | float | disparity_resolution | ) |
the quantization of disparity values in pixels. Usually 1/16th or 1/8th for OpenNI compatible devices
disparity_resolution |
Definition at line 76 of file stereo_camera_model.cpp.
|
overridevirtual |
set the shader parameters required for the mesh filtering
[in] | renderer | the renderer that holds the filtering shader |
Implements mesh_filter::SensorModel::Parameters.
Definition at line 99 of file stereo_camera_model.cpp.
|
overridevirtual |
set the shader parameters required for the model rendering
[in] | renderer | the renderer that holds the rendering shader. |
Implements mesh_filter::SensorModel::Parameters.
Definition at line 81 of file stereo_camera_model.cpp.