richardw05 / mybot_ws

URDF model for Gazebo integrated with ROS
http://www.moorerobots.com/
125 stars 96 forks source link

Lack of Map #3

Closed aaronjohnsabu1999 closed 4 years ago

aaronjohnsabu1999 commented 4 years ago

run_nav.sh leads to acml_demo.launch where there is a line referring to a test map in the package: "$(find mybot_navigation)/maps/test_map.yaml". However there seems to be no maps folder in mybot_navigation, not to mention maps/test_map.yaml Please look into this

pedramsafaei commented 4 years ago

This is due to the fact that you'd have to create the map, save it and then load it. You can see the steps in detail here http://www.moorerobots.com/blog/post/3

tldr;

roslaunch mybot_gazebo mybot_world.launch
roslaunch mybot_navigation gmapping_demo.launch
roslaunch mybot_description mybot_rviz_gmapping.launch
roslaunch mybot_navigation mybot_teleop.launch
rosrun map_server map_saver -f ~/mybot_ws/src/mybot_navigation/maps/test_map

Close all previous terminals

roslaunch mybot_gazebo mybot_world.launch
roslaunch mybot_navigation amcl_demo.launch
roslaunch mybot_description mybot_rviz_amcl.launch