Class of the PointCloudXYZNodelet nodelet, which converts a depth image into a point cloud containing x, y and z coordinates. More...
#include <point_cloud_xyz.h>

Private Member Functions | |
| void | connectCb () |
| Callback function that is called whenever anyone is subscribed to the output point cloud. More... | |
| void | depthCb (const sensor_msgs::ImageConstPtr &depth_msg, const sensor_msgs::CameraInfoConstPtr &info_msg) |
| Callback function that is called whenever a new depth image is received. More... | |
| virtual void | onInit () |
| This function is called by the initialization of the nodelet and acts as a constructor. More... | |
Private Attributes | |
| image_geometry::PinholeCameraModel | camera_model_ |
| std::string | cl_file_path_ |
| boost::mutex | connect_mutex_ |
| PointCloudMsg::Ptr | current_cloud_ |
| boost::shared_ptr< image_transport::ImageTransport > | it_ |
| bool | kernel_ready_ |
| DepthConvPtr | pcl_conversion_ |
| ros::Publisher | pub_cloud_ |
| int | queue_size_ |
| image_transport::CameraSubscriber | sub_depth_ |
| std::string | tf_frame_ |
Class of the PointCloudXYZNodelet nodelet, which converts a depth image into a point cloud containing x, y and z coordinates.
Definition at line 48 of file point_cloud_xyz.h.
|
private |
Callback function that is called whenever anyone is subscribed to the output point cloud.
Definition at line 51 of file point_cloud_xyz.cpp.
|
private |
Callback function that is called whenever a new depth image is received.
| [in] | depth_msg | Contains the received depth image. |
| [in] | info_msg | Contains the camera info and metadata of the received depth image. |
Definition at line 69 of file point_cloud_xyz.cpp.
|
privatevirtual |
This function is called by the initialization of the nodelet and acts as a constructor.
Definition at line 24 of file point_cloud_xyz.cpp.
|
private |
Attribute to store the corresponding camera model.
Definition at line 56 of file point_cloud_xyz.h.
|
private |
Attribute to store the path of the opencl kernel.
Definition at line 53 of file point_cloud_xyz.h.
|
private |
Definition at line 62 of file point_cloud_xyz.h.
|
private |
Attribute to store last computed point cloud.
Definition at line 54 of file point_cloud_xyz.h.
|
private |
Pointer to an ImageTransport Object, which is used to subscribe depth images.
Definition at line 59 of file point_cloud_xyz.h.
|
private |
Boolean flag that is used to know if the opencl kernel was already compiled.
Definition at line 57 of file point_cloud_xyz.h.
|
private |
Pointer to a DepthImageToPCL object, which makes the actual conversion using a opencl kernel.
Definition at line 55 of file point_cloud_xyz.h.
|
private |
Publisher of the point cloud.
Definition at line 63 of file point_cloud_xyz.h.
|
private |
Attribute to store the desired queue size for the depth image subscriber.
Definition at line 51 of file point_cloud_xyz.h.
|
private |
Subscriber of the depth image.
Definition at line 60 of file point_cloud_xyz.h.
|
private |
Attribute to store the tf frame id that has to be assigned to the output point cloud.
Definition at line 52 of file point_cloud_xyz.h.