Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to modify the slam_gmapping node on a turtlebot?

I want to modify the slam_gmapping node on my Turtlebot (Kobuki) (Ubuntu 12.04).

I have a working catkin workspace and have built my own nodes that work with slam_gmapping, but now I want to modify it.

I downloaded the slam_gmapping source to my workspace and tried to build it, but get this error...

-- ==> add_subdirectory(slam_gmapping/gmapping) CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package openslam_gmapping.

Set openslam_gmapping_DIR to the directory containing a CMake configuration file for openslam_gmapping. The file will have one of the following names:

openslam_gmappingConfig.cmake
openslam_gmapping-config.cmake

How does one "set openslam_gmapping_DIR"? is that a line in some file?

The findpackage line in the CMakeLists.txt is failing because it seems openslam_gmapping package does not exist on this machine (at least not with that name) in any workspace. Maybe it was built special for the Turtlebot under a different name? I don't have any need to build the openslam_gmapping package, just to reference the built one. I know it exists somewhere because I can successfully build maps and "rosrun gmapping slam_gmapping".

Any suggestions?

How to modify the slam_gmapping node on a turtlebot?

I want to modify the slam_gmapping node on my Turtlebot (Kobuki) (Ubuntu 12.04).

I have a working catkin workspace and have built my own nodes that work with slam_gmapping, but now I want to modify it.

I downloaded the slam_gmapping source to my workspace and tried to build it, but get this error...

-- ==> add_subdirectory(slam_gmapping/gmapping) CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package openslam_gmapping.

Set openslam_gmapping_DIR to the directory containing a CMake configuration file for openslam_gmapping. The file will have one of the following names:

openslam_gmappingConfig.cmake
openslam_gmapping-config.cmake

How does one "set openslam_gmapping_DIR"? is that a line in some file?file? But even if it were, neither of those suggested files exist on this system.

The findpackage line in the CMakeLists.txt is failing because it seems openslam_gmapping package does not exist on this machine (at least not with that name) in any workspace. Maybe it was built special for the Turtlebot under a different name? I don't have any need to build the openslam_gmapping package, just to reference the built one. I know it exists somewhere because I can successfully build maps and "rosrun gmapping slam_gmapping".

Any suggestions?

How to modify the slam_gmapping node on a turtlebot?

I want to modify the slam_gmapping node on my Turtlebot (Kobuki) (Ubuntu 12.04).

I have a working catkin workspace and have built my own nodes that work with slam_gmapping, but now I want to modify it.

I downloaded the slam_gmapping source to my workspace and tried to build it, but get this error...

-- ==> add_subdirectory(slam_gmapping/gmapping) CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package openslam_gmapping.

Set openslam_gmapping_DIR to the directory containing a CMake configuration file for openslam_gmapping. The file will have one of the following names:

openslam_gmappingConfig.cmake
openslam_gmapping-config.cmake

How does one "set openslam_gmapping_DIR"? is that a line in some file? But even if it were, neither of those suggested files exist on this system.

The findpackage line in the CMakeLists.txt this is the failing because it line:

find_package(catkin REQUIRED nav_msgs openslam_gmapping roscpp rostest tf)

It seems openslam_gmapping package does not exist on this machine (at least not with that name) in any workspace. Maybe it was built special for the Turtlebot under a different name? I don't have any need to build the openslam_gmapping package, just to reference the built one. I know it exists somewhere because I can successfully build maps and "rosrun gmapping slam_gmapping".

Any suggestions?