Euclidean Cluster Extraction extract -- initTree error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Euclidean Cluster Extraction extract -- initTree error

Lillian Chang
Hi PCL-users,

I'm trying to use the Euclidean Cluster Extraction in PCL (at revision
35261).

Calling the "extract" member function results in the following error:
point_cloud_perception/pcl/src/pcl/segmentation/extract_clusters.hpp:385: error:
‘initTree’ was not declared in this scope

Line 385 of extract_clusters.hpp is : initTree (spatial_locator_, tree_);
I noticed that in "filters/radius_outlier_removal.cpp" and
"filters/statistical_outlier_removal.hpp", a similar line has been
commented out.
//initTree (spatial_locator_type_, tree_, k_);

Could anyone point me to the proper usage for the "extract" member
function or recommend how to update the extract_clusters.hpp code?

Thanks for any tips!
Lillian
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Euclidean Cluster Extraction extract -- initTree error

Radu B. Rusu
Administrator
I think we might be missing an include header, which we normally didn't notice as we include other headers as well.
Shame on us :)

Can you try to include pcl/kdtree/tree_types.h, and see if the error goes away? We can fix this in trunk after that.

Cheers,
Radu.
--
http://pointclouds.org

On 01/14/2011 04:46 PM, Lillian Chang wrote:

> Hi PCL-users,
>
> I'm trying to use the Euclidean Cluster Extraction in PCL (at revision
> 35261).
>
> Calling the "extract" member function results in the following error:
> point_cloud_perception/pcl/src/pcl/segmentation/extract_clusters.hpp:385: error:
> ‘initTree’ was not declared in this scope
>
> Line 385 of extract_clusters.hpp is : initTree (spatial_locator_, tree_);
> I noticed that in "filters/radius_outlier_removal.cpp" and
> "filters/statistical_outlier_removal.hpp", a similar line has been
> commented out.
> //initTree (spatial_locator_type_, tree_, k_);
>
> Could anyone point me to the proper usage for the "extract" member
> function or recommend how to update the extract_clusters.hpp code?
>
> Thanks for any tips!
> Lillian
> _______________________________________________
> [hidden email] / http://pointclouds.org
> https://code.ros.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Euclidean Cluster Extraction extract -- initTree error

Lillian Chang
Yes, the include line did fix the error.  Thanks, Radu!

Lillian

On 01/14/2011 05:02 PM, Radu Bogdan Rusu wrote:

> I think we might be missing an include header, which we normally
> didn't notice as we include other headers as well. Shame on us :)
>
> Can you try to include pcl/kdtree/tree_types.h, and see if the error
> goes away? We can fix this in trunk after that.
>
> Cheers,
> Radu.
> --
> http://pointclouds.org
>
> On 01/14/2011 04:46 PM, Lillian Chang wrote:
>> Hi PCL-users,
>>
>> I'm trying to use the Euclidean Cluster Extraction in PCL (at revision
>> 35261).
>>
>> Calling the "extract" member function results in the following error:
>> point_cloud_perception/pcl/src/pcl/segmentation/extract_clusters.hpp:385:
>> error:
>> ‘initTree’ was not declared in this scope
>>
>> Line 385 of extract_clusters.hpp is : initTree (spatial_locator_,
>> tree_);
>> I noticed that in "filters/radius_outlier_removal.cpp" and
>> "filters/statistical_outlier_removal.hpp", a similar line has been
>> commented out.
>> //initTree (spatial_locator_type_, tree_, k_);
>>
>> Could anyone point me to the proper usage for the "extract" member
>> function or recommend how to update the extract_clusters.hpp code?
>>
>> Thanks for any tips!
>> Lillian
>> _______________________________________________
>> [hidden email] / http://pointclouds.org
>> https://code.ros.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Euclidean Cluster Extraction extract -- initTree error

Radu B. Rusu
Administrator

On 01/14/2011 06:48 PM, Lillian Chang wrote:
> Yes, the include line did fix the error. Thanks, Radu!

Ok, can you please submit a patch or just send it here if it's short?

Cheers,
Radu.
--
http://pointclouds.org

_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users