Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No SaveMap.h included in mapping_node.h #7

Open
elkuno213 opened this issue Apr 7, 2021 · 1 comment
Open

No SaveMap.h included in mapping_node.h #7

elkuno213 opened this issue Apr 7, 2021 · 1 comment

Comments

@elkuno213
Copy link

elkuno213 commented Apr 7, 2021

Hi, I am trying to build this lib under ROS Kinetic with catkin_make -DCMAKE_BUILD_TYPE=Release but I always face the following problem:

error: inline function 'bool cslibs_mapping::MappingNode::saveMaps(int)' used but never defined [-Werror]

After taking a look at the code, I think the problem should be SaveMap.h, which is included in mapping_node.h and is not provided in this lib. Do you guys have any solution in this case, please ?

@c-schulz
Copy link
Member

Hi @huynhvuh ,
the SaveMap.h header file should be generated from SaveMap.srv, see

add_service_files(
    FILES
    SaveMap.srv
)

within the CMakeLists.txt file. According to the ROS documentation, a dependency might be missing there:

catkin_package(
 ...
 CATKIN_DEPENDS message_runtime ...
 ...)

Could you try that out, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants