You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on May 31, 2025. It is now read-only.
Transforms Are Often Accumulated Through Entire Tree #439
I was looking through the code some and noticed something unexpected. The system always accumulates the final transform up to the root node and back when calculating the transform between two nodes that are not child and parent. I would have only expected it to do this up to the closest common parent.
While technically accurate, this introduces a bunch of unnecessary lookups and multiplications to the calculation of your final Transform. This both reduces accuracy and speed.
The lookups were already being done because the tree traversal for connectivity already is doing the lookups.
And the accuracy loss with double precision computations requires tf frames of litteraly astronomical scale which are generally not recommended.
This restructure was the result of a significant focus on optimizing the throughput capabilities. In that process we improved throughput by several orders of magnitude of throughupt.
Although algebraically doing fewer operations seems like less computation, but the book keeping of which transforms to use is potentially almost as high. The linear math computations for chaining vectors and quaternions is something that cpus can do very quickly where as the branching logic is more expensive. You'll note that we only do the pruneback now if the user has asked for the frame listings.
I'd be happy to review a contribution along those lines.. But to show that it's worth it I'd want to see a benchmark which shows improvement in accuracy without costing speed or an improvement in speed with the same accuracy.
Activity
tfoote commentedon Feb 7, 2020
The lookups were already being done because the tree traversal for connectivity already is doing the lookups.
And the accuracy loss with double precision computations requires tf frames of litteraly astronomical scale which are generally not recommended.
This restructure was the result of a significant focus on optimizing the throughput capabilities. In that process we improved throughput by several orders of magnitude of throughupt.
Although algebraically doing fewer operations seems like less computation, but the book keeping of which transforms to use is potentially almost as high. The linear math computations for chaining vectors and quaternions is something that cpus can do very quickly where as the branching logic is more expensive. You'll note that we only do the pruneback now if the user has asked for the frame listings.
I'd be happy to review a contribution along those lines.. But to show that it's worth it I'd want to see a benchmark which shows improvement in accuracy without costing speed or an improvement in speed with the same accuracy.
sloretz commentedon May 31, 2025
ROS 1 is end-of-life (EOL) as of today, May 31st 2025. I am archiving this repository because:
If you still rely on ROS 1, read this page to learn about your options.