File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -171,10 +171,10 @@ You will see something similar to::
171
171
PointCloud representing the Cluster: 290 data points.
172
172
PointCloud representing the Cluster: 120 data points.
173
173
174
- You can also look at your outputs cloud_cluster_0 .pcd, cloud_cluster_1 .pcd,
175
- cloud_cluster_2 .pcd, cloud_cluster_3 .pcd and cloud_cluster_4 .pcd::
174
+ You can also look at your outputs cloud_cluster_0000 .pcd, cloud_cluster_0001 .pcd,
175
+ cloud_cluster_0002 .pcd, cloud_cluster_0003 .pcd and cloud_cluster_0004 .pcd::
176
176
177
- $ ./pcl_viewer cloud_cluster_0 .pcd cloud_cluster_1 .pcd cloud_cluster_2 .pcd cloud_cluster_3 .pcd cloud_cluster_4 .pcd
177
+ $ ./pcl_viewer cloud_cluster_0000 .pcd cloud_cluster_0001 .pcd cloud_cluster_0002 .pcd cloud_cluster_0003 .pcd cloud_cluster_0004 .pcd
178
178
179
179
You are now able to see the different clusters in one viewer. You should see
180
180
something similar to this:
Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ main ()
94
94
95
95
std::cout << " PointCloud representing the Cluster: " << cloud_cluster->size () << " data points." << std::endl;
96
96
std::stringstream ss;
97
- ss << " cloud_cluster_ " << j << " .pcd " ;
98
- writer.write <pcl::PointXYZ> (ss.str (), *cloud_cluster, false ); // *
97
+ ss << std::setw ( 4 ) << std::setfill ( ' 0 ' ) << j ;
98
+ writer.write <pcl::PointXYZ> (" cloud_cluster_ " + ss.str () + " .pcd " , *cloud_cluster, false ); // *
99
99
j++;
100
100
}
101
101
You can’t perform that action at this time.
0 commit comments