This class gathers actual point cloud data and provides method which returns closest point from a specified link. More...
#include <point_cloud_tools.h>
Public Member Functions | |
srs_ui_but::ClosestPoint | getClosestPoint (std::string link) |
This function calculates closest point from a robot link from latest point cloud. | |
std::string | getPointCloudTopic () |
This function gets the Point Cloud 2 topic. | |
PointCloudTools () | |
Constructor. | |
void | setPointCloudTopic (std::string topic) |
This function sets Point Cloud 2 topic to get closest points from it. | |
virtual | ~PointCloudTools () |
Destructor. | |
Private Member Functions | |
void | incomingCloudCallback (const sensor_msgs::PointCloud2ConstPtr &cloud) |
Callback function for handling incoming point cloud data. | |
Private Attributes | |
srs_ui_but::ClosestPoint | closestPoint |
tf::StampedTransform | linkToSensorTf |
pcl::PointCloud< pcl::PointXYZ > | pcl_pointCloud |
message_filters::Subscriber < sensor_msgs::PointCloud2 > | point_cloud |
ros::Time | pointCloud_stamp |
tf::StampedTransform | sensorToLinkTf |
tf::TransformListener * | tfListener |
ros::NodeHandle | threaded_nh_ |
std::string | topic_ |
tf::MessageFilter < sensor_msgs::PointCloud2 > * | transform_filter |
tf::Transformer | transformer |
This class gathers actual point cloud data and provides method which returns closest point from a specified link.
Definition at line 57 of file point_cloud_tools.h.
Constructor.
Definition at line 36 of file point_cloud_tools.cpp.
virtual srs_ui_but::PointCloudTools::~PointCloudTools | ( | ) | [inline, virtual] |
Destructor.
Definition at line 67 of file point_cloud_tools.h.
srs_ui_but::ClosestPoint srs_ui_but::PointCloudTools::getClosestPoint | ( | std::string | link | ) |
This function calculates closest point from a robot link from latest point cloud.
link | is robot link from which we want to get the closest point |
Definition at line 56 of file point_cloud_tools.cpp.
std::string srs_ui_but::PointCloudTools::getPointCloudTopic | ( | ) | [inline] |
This function gets the Point Cloud 2 topic.
Definition at line 93 of file point_cloud_tools.h.
void srs_ui_but::PointCloudTools::incomingCloudCallback | ( | const sensor_msgs::PointCloud2ConstPtr & | cloud | ) | [private] |
Callback function for handling incoming point cloud data.
cloud | is incoming point cloud |
Definition at line 47 of file point_cloud_tools.cpp.
void srs_ui_but::PointCloudTools::setPointCloudTopic | ( | std::string | topic | ) | [inline] |
This function sets Point Cloud 2 topic to get closest points from it.
topic | is Point Cloud 2 topic |
Definition at line 81 of file point_cloud_tools.h.
srs_ui_but::ClosestPoint srs_ui_but::PointCloudTools::closestPoint [private] |
Definition at line 112 of file point_cloud_tools.h.
Definition at line 118 of file point_cloud_tools.h.
Definition at line 106 of file point_cloud_tools.h.
message_filters::Subscriber<sensor_msgs::PointCloud2> srs_ui_but::PointCloudTools::point_cloud [private] |
Definition at line 130 of file point_cloud_tools.h.
Definition at line 109 of file point_cloud_tools.h.
Definition at line 118 of file point_cloud_tools.h.
Definition at line 124 of file point_cloud_tools.h.
Definition at line 127 of file point_cloud_tools.h.
std::string srs_ui_but::PointCloudTools::topic_ [private] |
Definition at line 133 of file point_cloud_tools.h.
tf::MessageFilter<sensor_msgs::PointCloud2>* srs_ui_but::PointCloudTools::transform_filter [private] |
Definition at line 121 of file point_cloud_tools.h.
Definition at line 115 of file point_cloud_tools.h.