Skip to content

Add a helper type for finding multi-step reference frame transformations#111

Merged
jbangelo merged 2 commits into
masterfrom
jbangelo/multi-transformation-graph
Sep 16, 2024
Merged

Add a helper type for finding multi-step reference frame transformations#111
jbangelo merged 2 commits into
masterfrom
jbangelo/multi-transformation-graph

Conversation

@jbangelo
Copy link
Copy Markdown
Collaborator

We've discussed adding this, and now I've had a real need to do this. This is the MVP implementation for helping find the "shortest path" series of transformations. This is accomplished by building up a graph with the reference frames as vertices and the transformations as edges, then performing a breadth-first search through this graph for the first available path.

Long Term Improvements

I've implemented this functionality as an additional function to avoid breaking API changes. In a future revision I would like to roll up this functionality into the get_transformation() function and make it transparent, but doing that in the way I am thinking would require adding a new type representing a compound transformation and modifying the Transformation struct to be able to use it.

Copy link
Copy Markdown

@john-michaelburke john-michaelburke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool idea!

Copy link
Copy Markdown
Contributor

@JADC362 JADC362 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@jbangelo jbangelo merged commit 9a4753b into master Sep 16, 2024
@jbangelo jbangelo deleted the jbangelo/multi-transformation-graph branch September 16, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants