-
Notifications
You must be signed in to change notification settings - Fork 540
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
SlamToolboxPlugin ros2 humble can't save map files .data, .posegraph, .pgm, .yaml #742
Comments
Did you try to use full filepaths? I think it doesn't understand PS the slam toolbox service just calls the map server, so 4/5 are identical operations that will have the same result. |
I tried with full filepath:
|
My autocomplete looks like:
Are you sure that this is the correct format? It seems like a CLI formatting issue - that error is not coming from SLAM Toolbox, but your terminal sending the CLI command. I think the command is invalid by the message type |
oh... yes, you're absolutely right, thank you! |
Is there a map being published on |
nothing is being published to /map topic for some reasons |
Well, that would be your issue :-) |
Required Info:
Steps to reproduce issue
ros2 service call /slam_toolbox/save_map slam_toolbox/srv/SaveMap "{name: '~/ros2_ws/maps/map'}"
ros2 run nav2_map_server map_saver_cli -f ~/ros2_ws/maps/map --ros-args -r map:=/cf231/map -p map_subscribe_transient_local:=true
Expected behavior
When saving the map using either the SLAM Toolbox plugin in RViz2 or via the CLI, the following files should be generated:
.pgm
.yaml
.data
.posegraph
These files are required for localization and further map-related tasks.
Actual behavior
[WARN] [SlamToolboxPlugin]: SlamToolbox: Failed to save map as , is service running?
Failed to populate field: Value '~/ros2_ws/maps/map' is expected to be a dictionary but is a str
Additional information
Here is the list of nodes running during the process:
/SlamToolboxPlugin /SlamToolboxStateUpdateNode /camera/camera /crazyflie_server /rviz /teleop_twist_keyboard /transform_listener_impl_613584c3b3b0 /vel_mux
List of active topics:
/cf231/cmd_full_state /cf231/cmd_hover /cf231/cmd_vel_legacy /cf231/map /cf231/map_updates /cf231/odom /cf231/pose /cf231/robot_description /cf231/scan /cf231/status /cmd_vel /initialpose /parameter_events /poses /rosout /tf /tf_static
Conclusion
While the SLAM Toolbox is able to generate .pgm and .yaml files using the nav2_map_server map_saver_cli, the .data and .posegraph files are not being created. Using the SLAM Toolbox plugin in RViz2 also fails to save the map entirely, with the warning message indicating the service might not be running
The text was updated successfully, but these errors were encountered: