Detect cycles, change internal tf representation, expose all_frames_as_map method#5
Open
AlexKaravaev wants to merge 1 commit intoMaxiMaerz:masterfrom
Open
Detect cycles, change internal tf representation, expose all_frames_as_map method#5AlexKaravaev wants to merge 1 commit intoMaxiMaerz:masterfrom
AlexKaravaev wants to merge 1 commit intoMaxiMaerz:masterfrom
Conversation
all_frames_as_map method Two major changes: 1. Before adding a new frame with `add_transform`, we now check if it creates a cycle in the tree. 2. Completely changed the internal tf representation to a more tree-like structure, inspired by the original ros tf library. This change eliminates duplicates in the hashmap and removes the need to add transforms for inverted pairs. The API remains unchanged for the end-user, but this update allows us to expose functions like `all_frames_as_map` and enables more granular frame manipulation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two major changes:
add_transform, we now check if it creates a cycle in the tree.all_frames_as_mapand enables more granular frame manipulation.This is required for carzum/termviz#96 to not depend on any external service. It's a big change so it is the impact, I tried to cover every test case in test(please tell me if I forgot about some), but in my opinion this is needed as original representation wasn't complete.