-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge reconfigure integration for the new map type #54
Merged
Conversation
This file contains 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
The monitored navigation function in `navigation.py` expects a geom msgs Pose object rather than a monitored nav goal object (stops nav breaking when using the old map format). Navigation now reconfigures move base tolerances according to the values specified in the tmap.
…ogical_map_2`) to the old format (broadcast on the topic `/topological_map`). This allows nodes/actions that rely on the old map format to function whilst using/testing features from the new map.
…nversion happens or not
…namespace, name and value. The default config is empty and the tmap to tmap2 conversion sets an empty config.
… better reflect what it does. That service and `rm_param_from_edge_config` modified to account for the changes in the previous commit. Constructing new class `EdgeReconfigureManager` in `navigation.py` to handle everything edge reconfigure related.
adambinch
changed the title
Edge reconf integrated into main nav script, and some fixes.
Edge reconfigure integration for the new map type
Feb 8, 2021
This works from my end and is ready to be tested @ayu135 . I will send you instructions soon. |
Closed
ayu135
approved these changes
Feb 15, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this and seems to be working on my end. I think this can be merged.
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.
Main addition is the
EdgeReconfigureManager
class insrc/EdgeReconfigureManager.py
for handling everything edge reconfigure related.Each edge in the new format map has a config field, which contains a list of parameters to be reconfigured when the edge is traversed (see #35).
Topological navigation calls functions from the EdgeReconfigureManager to do this.
Some additions to the new map manager:
A new service
/topological_map_manager2/add_param_to_edge_config
for adding parameters to an edge's config and a new service/topological_map_manager2/rm_param_from_edge_config
for removing a parameter from an edge's config.The map manager 2 converts new format maps (broadcast on the topic
/topological_map_2
) to the old format (broadcast on the topic/topological_map
). This allows nodes/actions that rely on the old map format to function whilst using/testing features from the new map.Some fixes:
The monitored navigation function in
navigation.py
expects a geom msgs Pose object rather than a monitored nav goal object (stops nav breaking when using the old map format).Navigation now reconfigures move base tolerances according to the values specified in the tmap.
The variable
use_tmap2
for using the new map type in localisation and navigation is now a ros parameter.Some minor improvements.