-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High latency in TF propagation #359
Comments
This is connected to #332. I would expect this bug to persist until #55 is resolved. |
I read the #332, but it does not explain why I get the TF updates in Rviz2 even after that the node has been stopped. It seems like there is somewhere a queue that is processed very slowly |
Hmm..., I can't reproduce this. I see the following:
These issues are related to what type of tf2 information |
OK, so let's wait for message filters re introduction and let's see if it solves the problem. |
Yes, I believe this will make things much more apparent. But thanks for reporting the issue - maybe it turns out there is another problem. |
We're waiting on tf message filter. |
I've started looking at tf message filter, will update with a PR reference
when I've got something.
…On Thu, Oct 11, 2018 at 12:08 PM William Woodall ***@***.***> wrote:
We're waiting on tf message filter.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#359 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARElXebSWRviEyt4_CwpQyCWEM1f6psks5uj3sNgaJpZM4XR1Pl>
.
|
I don't know, I don't have time to do it right now, but if someone did a pr, I might have time to review it. Can't promise when though. |
@jacobperron I'm currently on another project and I don't know when I have free time to compile ROS2 from source. |
@Myzhar I build a daily docker container with ROS 2 from the current master that you could probably use for your tests, should you be interested. It's |
I did some research on this issue. Summary
The principle of the problem
About solutions
|
I'm porting the Stereolabs ZED 3D camera package to ROS2 and I cannot work with TF because of the high latency.
I'm sure that the TF messages propagates because I can see them using the
ros2 topic
and theros2 run tf2_ros tf2_echo
CLI commands... but Rviz receives them with many seconds of latency (sometimes I see frame axis move in Rviz after 2 or 3 three seconds after I stopped the node).I thought that it was a problem with our node until I made a test with the "dummy robot" example and I figured out that the latency is a general problem:
$ ros2 launch dummy_robot_bringup dummy_robot_bringup.launch.py
$ rviz2
world
LaserScan
plugin and subscribe to/scan
At this point you will see the simulated laser scan on the oscillating link of the robot and you will notice how it is rendered in late respect to its reference frame.
Furthermore you will notice a lot of errors
Could not transform from [single_rrbot_hokuyo_link] to [world]
in theLaserScan
pluginand
[ERROR] [rviz2]: Lookup would require extrapolation into the future. Requested time 1538495387.01342 but the latest data is at time 1538495386.98954, when looking up transform from frame [single_rrbot_hokuyo_link] to frame [world]
in the console where RVIZ2 has been executed
I read that a solution was provided for a similar issue and I updated ROS2 and Rviz2 to the latest version of the
master
branch, but the issue is still present.I also tried to change RMW, but each of the three available options have the same problem.
The text was updated successfully, but these errors were encountered: