Adding geojson conversion for Nav2 Route Server#2
Merged
rhua-nv merged 2 commits intonvidia-isaac:mainfrom Jul 28, 2025
Merged
Conversation
Signed-off-by: SteveMacenski <stevenmacenski@gmail.com>
This was referenced Jul 23, 2025
Collaborator
|
Please run the linter, see https://github.com/nvidia-isaac/SWAGGER?tab=readme-ov-file#linting-and-formatting |
Collaborator
|
Also it would be great if you could add one or two simple unit tests. |
Signed-off-by: SteveMacenski <stevenmacenski@gmail.com>
Contributor
Author
|
@rhua-nv see updates with (cough shamelessly AI generated) tests and linters run. I tested over a few maps as well and Nav2 is happy so we're all good I think. Note that Nav2 Route's edges are uni-directional. You'll see in the parser code that we duplicate edges forward and in reverse to give full directionality as it seems this work's intent is by default. |
rhua-nv
approved these changes
Jul 28, 2025
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.
Adds a script for converting the gml files into geojson with directional edges to make SWAGGER useful for the Nav2 Route Server.
This can be tested with the following workflow:
nav2_params.yamlto usedefault_nav_to_pose_bt_xml: $(find-pkg-share nav2_bt_navigator)/behavior_trees/navigate_on_route_graph_w_recovery.xmlin the BT navigator for a route BT XML behaviorHappy navigating!
swagger_nav2.mp4
P.S. Great job on this work - it 'just worked' as expected without much fuss and the output format was easy to work with. I will definitely tie this work back into Nav2's docs shortly!