ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi guys, I had the same problem, I solved by:

1) First I uninstall my navigation package 2) I tried installing it using 'sudo apt-get install ros-melodic-navigation'...(I also tried sudo apt-get install ros-melodic-map-server') 3) This install few new packages but those are installed in your root ros directory as software but not in your src as a package. 4) So I installed the navigation package again using: git clone https://github.com/ros-planning/navigation.git 5) Did catkin_make 6) you will get cmake errors as:

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package): Could not find a package configuration file provided by "tf2_sensor_msgs" with any of the following names:

tf2_sensor_msgsConfig.cmake
tf2_sensor_msgs-config.cmake

7) Now install the missing msgs as: sudo apt-get install ros-melodic-tf2-sensor-msgs

8) make your map_saver executable by using chmod +x mapsaver (where your file is located).

9) Now run you MapServer command: rosrun map_server map_saver -f map

This will save your map.

I think the error not executable is due to some missing packages... if though we made it executable at first we are unable to run the command.