RViz show /cloud in xx.bag with outside /tf
Hi, I want to display the /cloud in a bag file with an outside /tf topic. The frame_id of the cloud message is "laser". /tf describes a rotation of "laser" around the y axis of "base_link". "base_link" is designed to be the fixed frame.
In RViz, either /tf or /cloud can be displayed correctly alone. But when running tf node along with xx.bag and setting the fixed frame to be "base_link", only the tf movement is displayed. I've tried setting the fixed frame to be "laser". The cloud and tf can be displayed in that case, but it's different from what is designed.
When the fixed frame is "base_link", there's an error in transform:
Transform [sender=unknown_publisher]
For frame [laser]:No transform to fixed frame [base_link]. TF error:[Lookup would require extrapolation into the future. Requested time 1562899456.147298211 but the latest data is at time 0.000000000, when looking up transform from frame [laser] to frame [base_link]]
The param use_sim_time was set to be true. And the bag file was played in rosbag play --clock xx.bag
. But the error didn't change. The time stamp I use in tf is rospy.Time(0)
It seems like a problem of time, but when the fixed frame is "laser", tf and cloud can be displayed simultaneously. What's the problem here? Thanks for any help.