[ros-users] transformPointCloud
Michael Ferguson
mfergs7 at gmail.com
Tue Apr 5 22:15:24 UTC 2011
The issue is that TF output is streamed to each node, and is buffered in the
listener -- if you create the listener inside the callback, you have no
history of tf data before creation -- which means you often can't find the
lookup you desire.
-Mike
On Tue, Apr 5, 2011 at 6:10 PM, Jack O'Quin <jack.oquin at gmail.com> wrote:
> On Tue, Apr 5, 2011 at 5:05 PM, Dejan Pangercic
> <dejan.pangercic at gmail.com> wrote:
> > Hi Sabrina,
> >
> >> you should instantiate the TransformListener outside the callback:
> >>
> >> tf::TransformListener *tf_listener;
> > this is very interesting. But do you know why would it be necessary to
> > have it outside the callback? Is there a documentation about this?
>
> I believe the destructor for the listener will shut down the connection.
>
> Many ROS interfaces use the RAII approach.
> --
> joq
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110405/93a72ccb/attachment-0002.html>
More information about the ros-users
mailing list