Skip to content

Commit

Permalink
Revert "changed project name to reflect current goal"
Browse files Browse the repository at this point in the history
This reverts commit b6ce8bb.
  • Loading branch information
jupidity committed Aug 12, 2017
1 parent a2e1e94 commit 0634ff2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?xml version="1.0"?>
<package>
<<<<<<< HEAD
<name>obj_recognition</name>
=======
<name>sensor_stick</name>
>>>>>>> parent of b6ce8bb... changed project name to reflect current goal
<version>0.0.0</version>
<description>The obj_recognition package</description>

Expand Down
10 changes: 10 additions & 0 deletions src/segmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ void segmentation::cloud_cb (const sensor_msgs::PointCloud2ConstPtr& cloud_msg)
for (std::vector<pcl::PointIndices>::const_iterator it = cluster_indices.begin (); it != cluster_indices.end (); ++it)
{

// create a new clusterData message object
//obj_recognition::ClusterData clusterData;


// create a pcl object to hold the extracted cluster
pcl::PointCloud<pcl::PointXYZRGB> *cluster = new pcl::PointCloud<pcl::PointXYZRGB>;
Expand All @@ -175,6 +178,13 @@ void segmentation::cloud_cb (const sensor_msgs::PointCloud2ConstPtr& cloud_msg)
}


// log the position of the cluster
//clusterData.position[0] = (*cloudPtr).data[0];
//clusterData.position[1] = (*cloudPtr).points.back().y;
//clusterData.position[2] = (*cloudPtr).points.back().z;
//std::string info_string = string(cloudPtr->points.back().x);
//printf(clusterData.position[0]);

// convert to pcl::PCLPointCloud2
pcl::toPCLPointCloud2( *clusterPtr ,outputPCL);

Expand Down

0 comments on commit 0634ff2

Please sign in to comment.