-
Notifications
You must be signed in to change notification settings - Fork 1
Navigation
P4B5 edited this page Oct 30, 2020
·
2 revisions
MAPPING
Installation navigaton nodes and first steps:
sudo apt install ros-melodic-rgmapping
-
roslaunch robots sim.launch
-> gazebo with home scene. add MAP with the topic/map
-
rosrun rviz rviz
-> you must to configure rviz to watch the laser scan -
roslaunch navigation slam-mapping.launch
-> mapping node - for mapping is convenient to do using the robot manually launch:
roslaunch kobuki_keyop keyop.launch
Once you have mapped all the area, save the map in the path you run this command:
rosrun map_server map_saver
** if you can't save your map, you probably need to install map server: sudo apt install ros-melodic-map-server
Now you have the map saved, keep in mind that the map will save in the path where you are when you execute step 5. The map contains two files, one is a normal image, and the other is a .yml file which contains information relative to the image.
- You can edit the image with any image editor, GIMP is a good option.
NAVIGATION
rosrun navigation navigation.launch
- launch rviz
rosrun rviz rviz
- configure rviz, map topic
/map
ROS BASIC WIKI