moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
Abstract Interface defining Sensor Parameters. More...
#include <sensor_model.h>
Public Member Functions | |
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 | ~Parameters () |
virtual destructor | |
virtual void | setRenderParameters (GLRenderer &renderer) const =0 |
method that sets required parameters for the renderer. Each sensor usually has its own shaders with specific parameters depending on sensor parameters. This method is called within MeshFilter before any rendering/filtering is done to set any changed sensor parameters in the shader code. | |
virtual void | setFilterParameters (GLRenderer &renderer) const =0 |
sets the specific Filter Renderer parameters | |
virtual Parameters * | clone () const =0 |
polymorphic clone method | |
virtual const Eigen::Vector3f & | getPaddingCoefficients () const =0 |
returns sensor dependent padding coefficients | |
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 | |
Protected Attributes | |
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 | |
Abstract Interface defining Sensor Parameters.
Definition at line 60 of file sensor_model.h.
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.
width | width of the image generated by this kind of sensor |
height | height of the image generated by this kind of sensors |
near_clipping_plane_distance | distance of the near clipping plane in meters |
far_clipping_plane_distance | distance of the far clipping plane in meters |
Definition at line 42 of file sensor_model.cpp.
|
virtualdefault |
virtual destructor
Reimplemented in mesh_filter::StereoCameraModel::Parameters.
|
pure virtual |
polymorphic clone method
Implemented in mesh_filter::StereoCameraModel::Parameters.
float mesh_filter::SensorModel::Parameters::getFarClippingPlaneDistance | ( | ) | const |
returns the distance to the far clipping plane
Definition at line 86 of file sensor_model.cpp.
unsigned mesh_filter::SensorModel::Parameters::getHeight | ( | ) | const |
returns the height of depth maps
Definition at line 76 of file sensor_model.cpp.
float mesh_filter::SensorModel::Parameters::getNearClippingPlaneDistance | ( | ) | const |
returns distance to the near clipping plane
Definition at line 81 of file sensor_model.cpp.
|
pure virtual |
returns sensor dependent padding coefficients
Implemented in mesh_filter::StereoCameraModel::Parameters.
unsigned mesh_filter::SensorModel::Parameters::getWidth | ( | ) | const |
returns the width of depth maps
Definition at line 71 of file sensor_model.cpp.
void mesh_filter::SensorModel::Parameters::setDepthRange | ( | float | near, |
float | far | ||
) |
sets the clipping range
[in] | near | distance of near clipping plane |
[in] | far | distance of far clipping plane |
Definition at line 59 of file sensor_model.cpp.
|
pure virtual |
sets the specific Filter Renderer parameters
renderer | renderer the renderer that needs to be updated |
Implemented in mesh_filter::StereoCameraModel::Parameters.
void mesh_filter::SensorModel::Parameters::setImageSize | ( | unsigned | width, |
unsigned | height | ||
) |
sets the image size
[in] | width | with of depth map |
[in] | height | height of depth map |
Definition at line 53 of file sensor_model.cpp.
|
pure virtual |
method that sets required parameters for the renderer. Each sensor usually has its own shaders with specific parameters depending on sensor parameters. This method is called within MeshFilter before any rendering/filtering is done to set any changed sensor parameters in the shader code.
renderer | the renderer that needs to be updated |
Implemented in mesh_filter::StereoCameraModel::Parameters.
|
virtual |
transforms depth values from filtered depth to metric depth values
[in,out] | depth | pointer to floating point depth buffer |
Definition at line 181 of file sensor_model.cpp.
|
virtual |
transforms depth values from rendered model to metric depth values
[in,out] | depth | pointer to floating point depth buffer |
Definition at line 105 of file sensor_model.cpp.
|
protected |
distance of far clipping plane
Definition at line 160 of file sensor_model.h.
|
protected |
height of depth maps generated by the sensor
Definition at line 157 of file sensor_model.h.
|
protected |
distance of near clipping plane
Definition at line 163 of file sensor_model.h.
|
protected |
width of depth maps generated by the sensor
Definition at line 154 of file sensor_model.h.