Best practices for pose/vector transformations
Hello everyone!
This is more of a discussion than a question needing a specific answer. I couldn't find a similar question, so here:
I've written a flight simulator with critical performance constraints: I need it to run as fast as possible.
I need to transform various vectors from one frame to another in each time step.
I use tf::Transform
objects to accomplish this a seen here and here, for example. I fill the body_to_mount
fields with the required tf data and use multiplication (as here) to transform my data.
I do this because I get the feeling that using tf::TransformListener::rotateVector methods often in my code will slow down my loop time, as the method has to reach out the tf tree, parse it and retrieve the data each time.
What do you think? Am I being paranoid?
Thanks in advance!
Asked by Georacer on 2015-11-25 12:43:28 UTC
Comments
Feelings are nice, hard data is nicer. What have you observed when profiling your critical path?
Asked by gvdhoorn on 2015-11-26 03:20:28 UTC
No hard data yet. I'll try something and get back to you when I have some. I just asked in case this was a well-known practice.
Asked by Georacer on 2015-11-26 05:51:15 UTC