Rviz2 doesn't show point cloud because of wrong tf

asked 2022-03-28 07:50:21 -0500

Zero39 gravatar image

updated 2022-03-30 08:40:59 -0500

Hello everyone, I am using ROS2 Foxy on Ubuntu 20.04 and I have a pan/tilt camera which publishes a point cloud I'd like to see on Rviz2.

https://github.com/ros/robot_state_pu...

As you can see in the previous pdf, there is a correct path from odom_frame (which I select on Rviz as Fixed Frame) to tilt_link, where chassis -> pan_link and pan_link -> tilt_link are normal tf, while all the other transformations are static.

When I add the point cloud on Rviz I have this message printed on terminal:

"[rviz]: Message Filter dropping message: frame 'tilt_link' at time 641.986 for reason 'Unknown'"

and it's like if Rviz can't find a proper transformation between those two frames. Instead everything works correctly if I use only static transformations, so it's like if Rviz doesn't like "dynamic" tfs.

What does it depend on?

Thank you very much for your help.

edit retag flag offensive close merge delete

Comments

I have this message printed on terminal

You probably forgot to include those logs in your question.

abhishek47 gravatar image abhishek47  ( 2022-03-29 10:50:33 -0500 )edit

Yeah you were right, thank you

Zero39 gravatar image Zero39  ( 2022-03-30 08:41:38 -0500 )edit

Not entirely sure but it might be something to do with timestamps, see #q357762 and comments of #q367138

abhishek47 gravatar image abhishek47  ( 2022-03-30 10:30:34 -0500 )edit