Nodelet for filtering meshes from depth images. e.g. meshes of the robot or any attached object where a transformation can be provided for. More...
#include <depth_self_filter_nodelet.h>
Public Member Functions | |
virtual void | onInit () |
Nodelet init callback. | |
Private Member Functions | |
void | addMeshes (mesh_filter::MeshFilter< mesh_filter::StereoCameraModel > &mesh_filter) |
adding the meshes to a given mesh filter object. | |
void | connectCb () |
Callback for connection/deconnection of listener. | |
void | depthCb (const sensor_msgs::ImageConstPtr &depth_msg, const sensor_msgs::CameraInfoConstPtr &info_msg) |
Callback for subscribed depth images. | |
void | filter (const sensor_msgs::ImageConstPtr &depth_msg, const sensor_msgs::CameraInfoConstPtr &info_msg) |
main filtering routine | |
~DepthSelfFiltering () | |
Private Attributes | |
boost::mutex | connect_mutex_ |
required to avoid listener registration before we are all set | |
double | far_clipping_plane_distance_ |
distance of far clipping plane | |
cv_bridge::CvImagePtr | filtered_depth_ptr_ |
boost::shared_ptr < image_transport::ImageTransport > | filtered_depth_transport_ |
cv_bridge::CvImagePtr | filtered_label_ptr_ |
boost::shared_ptr < image_transport::ImageTransport > | filtered_label_transport_ |
boost::shared_ptr < image_transport::ImageTransport > | input_depth_transport_ |
MeshFilter< StereoCameraModel > ::Ptr | mesh_filter_ |
cv_bridge::CvImagePtr | model_depth_ptr_ |
boost::shared_ptr < image_transport::ImageTransport > | model_depth_transport_ |
cv_bridge::CvImagePtr | model_label_ptr_ |
boost::shared_ptr < image_transport::ImageTransport > | model_label_transport_ |
double | near_clipping_plane_distance_ |
distance of near clipping plane | |
double | padding_offset_ |
the coefficient for the linear component of the padding function | |
double | padding_scale_ |
the coefficient for the square component of padding function in 1/m | |
image_transport::CameraPublisher | pub_filtered_depth_image_ |
image_transport::CameraPublisher | pub_filtered_label_image_ |
image_transport::CameraPublisher | pub_model_depth_image_ |
image_transport::CameraPublisher | pub_model_label_image_ |
int | queue_size_ |
double | shadow_threshold_ |
threshold that indicates a pixel to be in shadow, rather than being filtered out | |
image_transport::CameraSubscriber | sub_depth_image_ |
TransformProvider | transform_provider_ |
Nodelet for filtering meshes from depth images. e.g. meshes of the robot or any attached object where a transformation can be provided for.
Definition at line 57 of file depth_self_filter_nodelet.h.
mesh_filter::DepthSelfFiltering::~DepthSelfFiltering | ( | ) | [private] |
Definition at line 52 of file depth_self_filter_nodelet.cpp.
void mesh_filter::DepthSelfFiltering::addMeshes | ( | mesh_filter::MeshFilter< mesh_filter::StereoCameraModel > & | mesh_filter | ) | [private] |
adding the meshes to a given mesh filter object.
[in,out] | mesh_filter | mesh filter object that gets meshes from the robot description added to |
Definition at line 176 of file depth_self_filter_nodelet.cpp.
void mesh_filter::DepthSelfFiltering::connectCb | ( | ) | [private] |
Callback for connection/deconnection of listener.
Definition at line 194 of file depth_self_filter_nodelet.cpp.
void mesh_filter::DepthSelfFiltering::depthCb | ( | const sensor_msgs::ImageConstPtr & | depth_msg, |
const sensor_msgs::CameraInfoConstPtr & | info_msg | ||
) | [private] |
Callback for subscribed depth images.
depth_msg | depth image |
info_msg | camera information containing parameters frame, etc. |
Definition at line 210 of file depth_self_filter_nodelet.cpp.
void mesh_filter::DepthSelfFiltering::filter | ( | const sensor_msgs::ImageConstPtr & | depth_msg, |
const sensor_msgs::CameraInfoConstPtr & | info_msg | ||
) | [private] |
main filtering routine
Definition at line 108 of file depth_self_filter_nodelet.cpp.
void mesh_filter::DepthSelfFiltering::onInit | ( | ) | [virtual] |
Nodelet init callback.
Definition at line 56 of file depth_self_filter_nodelet.cpp.
boost::mutex mesh_filter::DepthSelfFiltering::connect_mutex_ [private] |
required to avoid listener registration before we are all set
Definition at line 107 of file depth_self_filter_nodelet.h.
double mesh_filter::DepthSelfFiltering::far_clipping_plane_distance_ [private] |
distance of far clipping plane
Definition at line 119 of file depth_self_filter_nodelet.h.
Definition at line 111 of file depth_self_filter_nodelet.h.
boost::shared_ptr<image_transport::ImageTransport> mesh_filter::DepthSelfFiltering::filtered_depth_transport_ [private] |
Definition at line 97 of file depth_self_filter_nodelet.h.
Definition at line 112 of file depth_self_filter_nodelet.h.
boost::shared_ptr<image_transport::ImageTransport> mesh_filter::DepthSelfFiltering::filtered_label_transport_ [private] |
Definition at line 96 of file depth_self_filter_nodelet.h.
boost::shared_ptr<image_transport::ImageTransport> mesh_filter::DepthSelfFiltering::input_depth_transport_ [private] |
Definition at line 95 of file depth_self_filter_nodelet.h.
MeshFilter<StereoCameraModel>::Ptr mesh_filter::DepthSelfFiltering::mesh_filter_ [private] |
mesh filter object
Definition at line 131 of file depth_self_filter_nodelet.h.
Definition at line 113 of file depth_self_filter_nodelet.h.
boost::shared_ptr<image_transport::ImageTransport> mesh_filter::DepthSelfFiltering::model_depth_transport_ [private] |
Definition at line 98 of file depth_self_filter_nodelet.h.
Definition at line 114 of file depth_self_filter_nodelet.h.
boost::shared_ptr<image_transport::ImageTransport> mesh_filter::DepthSelfFiltering::model_label_transport_ [private] |
Definition at line 99 of file depth_self_filter_nodelet.h.
double mesh_filter::DepthSelfFiltering::near_clipping_plane_distance_ [private] |
distance of near clipping plane
Definition at line 116 of file depth_self_filter_nodelet.h.
double mesh_filter::DepthSelfFiltering::padding_offset_ [private] |
the coefficient for the linear component of the padding function
Definition at line 128 of file depth_self_filter_nodelet.h.
double mesh_filter::DepthSelfFiltering::padding_scale_ [private] |
the coefficient for the square component of padding function in 1/m
Definition at line 125 of file depth_self_filter_nodelet.h.
image_transport::CameraPublisher mesh_filter::DepthSelfFiltering::pub_filtered_depth_image_ [private] |
Definition at line 101 of file depth_self_filter_nodelet.h.
image_transport::CameraPublisher mesh_filter::DepthSelfFiltering::pub_filtered_label_image_ [private] |
Definition at line 102 of file depth_self_filter_nodelet.h.
Definition at line 103 of file depth_self_filter_nodelet.h.
Definition at line 104 of file depth_self_filter_nodelet.h.
int mesh_filter::DepthSelfFiltering::queue_size_ [private] |
Definition at line 108 of file depth_self_filter_nodelet.h.
double mesh_filter::DepthSelfFiltering::shadow_threshold_ [private] |
threshold that indicates a pixel to be in shadow, rather than being filtered out
Definition at line 122 of file depth_self_filter_nodelet.h.
Definition at line 100 of file depth_self_filter_nodelet.h.
Definition at line 109 of file depth_self_filter_nodelet.h.