Re: [ros-users] transformPointCloud

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Tully Foote
Date:  
To: ros-users
Subject: Re: [ros-users] transformPointCloud
Sanja,
    The python implementation does not have that method defined.  You can do
this in approximately one one in python.


Note: This is pseudo code but you should get the gist.
points_out = [ listener.transformPoint("target_frame",
PointStamped(point_cloud.header, p).point for p in point_cloud.points]

If you're worried about efficiency you can also use lookupTransform and
multiply the matrix.

Tully

On Tue, Jul 20, 2010 at 1:53 PM, Sanja Popovic <> wrote:

> Dear ROS users,
>
> I am trying to use tf with the PointCloud data I have but I keep getting a
> message that TransformListener has no object attribute transformPointCloud.
> Is tf for Python just lacking this function or do I need to do more than
> just importing tf? The same code works for transforming individual points,
> but PointClouds are the source of trouble.
>
> Thanks,
> Sanja
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>




--
Tully Foote
Systems Engineer
Willow Garage, Inc.

(650) 475-2827