Skip to content
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

All manager services available and working on new map type #44

Merged
merged 25 commits into from
Jan 19, 2021
Merged

All manager services available and working on new map type #44

merged 25 commits into from
Jan 19, 2021

Conversation

adambinch
Copy link
Collaborator

@adambinch adambinch commented Nov 17, 2020

To resolve #34.

These services have namespace /topological_map_manager2.
Service definitions are used from the strands navigation repo: https://github.com/strands-project/strands_navigation/tree/indigo-devel/strands_navigation_msgs/srv
New package topological_navigation_msgs added to store additional service and message definitions.
Currently one srv has been added WriteTopologicalMap.srv used by the services /topological_map_manager2/write_topological_map and /topological_map_manager2/switch_topological_map.

To create a map in the new format, load in an old format map tmap.tmap directly from a file using the old map manager. The new manager will automatically convert it to the new format. Then call the /topological_map_manager2/write_topological_map service or use a service to modify the new map and it will be written to tmap.yaml

Whenever a service is used that modifies the map, the file is automatically overwritten.
Therefore when loading a map using the map manager 2, it is cached in $HOME/.ros/topological_maps so a backup is available if mistakes are made.

To load a new format map use the new node topological_navigation/scripts/map_manager2.py.
To load an existing map rosrun topological_navigation map_manager2.py MAP_FILENAME
To create a new map rosrun topological_navigation map_manager2.py -n MAP_FILENAME

adambinch and others added 20 commits October 8, 2020 12:21
Navigation.py was checking the existence of move base params without providing the namespace.
Fixed issue that broke dynamic reconfigure of move base params.
… the origin map manager.

map manager 2 can now load a new format topomap from a given file path.
- `get_topological_map `
- `get_tagged_nodes`
- `get_tags`
- `get_node_tags`
…ew msg and srv types for the new format topomap.

Added services `/topological_map_manager2/switch_topological_map` and `/topological_map_manager2/get_edges_between_nodes`.
Added function in map manager 2 that warns if you are trying to use it to load an old-format topomap.
Some minor improvements.
… manager 2 class.

Added service `/topological_map_manager2/write_topological_map` for writing new format topological maps to yaml files. If you dont specify the path/name of the map then it will just write to the one given to the manager 2 class.
When loading a tmap (`tmap.tmap`) from a file using the original map manager, the converted tmap can now be written to a file (`tmap.yaml`) using the `write_topological_map` service.
Added map sanity checking function to the manager 2 class.
…/topological_map_manager2/add_edges_between_nodes`
Corrected error when generating influence zone vertices
removed unnecessary msg definition
General improvements
…d `/topological_map_manager2/remove_edge`.

General improvements.
…ical_map_manager2/update_node_tolerance`.

General improvements.
@adambinch adambinch requested a review from Jailander November 17, 2020 16:24
@adambinch adambinch changed the base branch from master to toponav2-devel November 17, 2020 16:25
@adambinch adambinch added the WIP Work in progress label Nov 18, 2020
@adambinch adambinch requested a review from gpdas November 18, 2020 15:43
@adambinch adambinch removed the WIP Work in progress label Nov 18, 2020
@adambinch
Copy link
Collaborator Author

Ready for testing/review @gpdas @Jailander

@adambinch adambinch mentioned this pull request Jan 7, 2021
@Jailander Jailander merged commit 3e1d69c into LCAS:toponav2-devel Jan 19, 2021
@adambinch adambinch deleted the manager2_srvs branch January 19, 2021 16:55
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.

Topological map manager update
2 participants