Skip to content

Commit

Permalink
removed unused code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jupidity committed Aug 8, 2017
1 parent 0c5e2f5 commit a2e1e94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions scripts/marker_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,7 @@ def pcl_callback(pcl_msg):
label = encoder.inverse_transform(prediction)[0]
detected_objects_labels.append(label)

#rospy.loginfo(pcl_cloud.data[0])

# Publish a label into RViz
#label_pos = list([pcl_cloud.position[0],pcl_cloud.position[1],pcl_cloud.position[2]])
#label_pos = list([index,index,index])
#label_pos = list(white_cloud[pts_list[0]])
pcl_pointCloud = ros_to_pcl(pcl_cloud)
label_pos = list(pcl_pointCloud[0])
label_pos[2] += .4
Expand All @@ -64,7 +59,6 @@ def pcl_callback(pcl_msg):
detected_objects.append(do)

rospy.loginfo('Detected {} objects: {}'.format(len(detected_objects_labels), detected_objects_labels))
#rospy.loginfo('{}'.format(pcl_pointCloud[0]))

# Publish the list of detected objects
# This is the output you'll need to complete the upcoming project!
Expand Down
10 changes: 0 additions & 10 deletions src/segmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ 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 @@ -178,13 +175,6 @@ 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 a2e1e94

Please sign in to comment.