Re: [ros-users] POINT_CLOUD_REGISTER_POINT_STRUCT and using …

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Radu Bogdan Rusu
Dato:  
Til: User discussions
Emne: Re: [ros-users] POINT_CLOUD_REGISTER_POINT_STRUCT and using templated user defined points
http://www.ros.org/wiki/pcl/FAQ#How_to_define_a_new_point_type.3F_.28and_create_KdTrees_for_it.3F.29

Kadir, these questions are best asked on the PCL mailing list (see
http://www.ros.org/wiki/pcl#Mailing_List.2BAC8-Getting_Help).

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

On 02/13/2011 06:04 AM, kadir wrote:
>
> Hi everybody,
>
> Can someone tell me if this is possible in PCL? If not, is there any
> suggestion that does something similar? I have tried many things but no
> success at all :(
>
> template<typedef T, int how_many>
>     struct FeaturePoint{
>     T a;
>     T b;
>     T c;
>     T d[how_many]
> };

>
> template<typedef T, int how_many>
> POINT_CLOUD_REGISTER_POINT_STRUCT(
>     pcl::FeaturePoint<T,how_many>,
>     (T,   a,    a)
>     (T,   b,    b)
>     (T,   c,    c)
>     (T[how_many],d, d));

>
> Thanks...
>
> -Kadir-