Skip to content

Commit

Permalink
docs: update how to save map instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
hanskw-weston committed May 15, 2024
1 parent ffd6008 commit 0a69055
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ $ ros2 run rviz2 rviz2

You can clone this repository to your computer and load the rviz configuration located at "src/sample_launch/config/rviz2.rviz".

## Saving the map
After you have finished mapping, you can save the map using lio_sam's save_map service. The service takes two arguments: resolution and destination.
* The resolution is the resolution of the map.
* The destination is the path to save the map. **NOTE: destination path is relative to the HOME folder.**
For example, to save the map with a resolution of 0.0 to "~/Workspace/map/", you can run the following command
```bash
ros2 service call /lio_sam/save_map lio_sam/srv/SaveMap "{resolution: 0.0 , destination: "/Workspace/map/"}"
```
## Notes
1. Depending on the specific hardware configurations, you may need to modify the sample launch files and configuration files to adapt to your setup.
Take note of the below in particluar:
Expand Down

0 comments on commit 0a69055

Please sign in to comment.