Skip to content
Snippets Groups Projects
Commit d8d91b62 authored by Nicola Covallero's avatar Nicola Covallero
Browse files

Added table plane point cloud in the service

parent 0605dc47
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -201,6 +201,8 @@ class TosSupervoxelsAlgorithm
*/
std::vector<pcl::PointCloud<pcl::PointXYZRGBA> > get_segmented_objects_simple();
pcl::PointCloud<pcl::PointXYZRGBA>::Ptr get_plane_cloud();
/*! \brief Print the parameters of the algorithm in the shell
*/
void print_parameters();
......
......@@ -62,6 +62,11 @@ std::vector<pcl::PointCloud<pcl::PointXYZRGBA> > TosSupervoxelsAlgorithm::get_se
return this->obj_segment.get_segmented_objects_simple();
}
pcl::PointCloud<pcl::PointXYZRGBA>::Ptr TosSupervoxelsAlgorithm::get_plane_cloud()
{
return this->obj_segment.get_plane_cloud();
}
void TosSupervoxelsAlgorithm::print_parameters()
{
this->obj_segment.print_parameters();
......
......@@ -119,7 +119,8 @@ bool TosSupervoxelsAlgNode::object_segmentationCallback(iri_tos_supervoxels::obj
}
res.objects = seg_objs_msg;
// get the table point cloud
pcl::toROSMsg(*(this->alg_.get_plane_cloud()),res.plane_cloud);
//unlock previously blocked shared variables
this->object_segmentation_mutex_exit();
......
sensor_msgs/PointCloud2 point_cloud
---
iri_tos_supervoxels/segmented_objects objects
iri_tos_supervoxels/plane_coefficients plane_coeff
\ No newline at end of file
iri_tos_supervoxels/plane_coefficients plane_coeff
sensor_msgs/PointCloud2 plane_cloud
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment