If you try to build on a clean machine (tested on 18.04 & 20.04), you'll get an error due to a missing header file multi_map_server/MultiOccupancyGrid.h.
Comment out the executable generation code per below:
## Declare a cpp executable
# COMMENT OUT FOR FIRST COMPILE PASS
# add_executable(multi_map_visualization src/multi_map_visualization.cc)
## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes
# COMMENT OUT FOR FIRST COMPILE PASS
# add_dependencies(multi_map_visualization multi_map_server_messages_cpp)
## Specify libraries to link a library or executable target against
# COMMENT OUT FOR FIRST COMPILE PASS
# target_link_libraries(multi_map_visualization
# ${catkin_LIBRARIES}
# ${ARMADILLO_LIBRARIES}
# pose_utils
# )
Then compile first pass, e.g.
catkin_make -j1
Now, you'll have devel/include/multi_map_server/MultiOccupancyGrid.h available.
Then, uncomment the file:
## Declare a cpp executable
# COMMENT OUT FOR FIRST COMPILE PASS
add_executable(multi_map_visualization src/multi_map_visualization.cc)
## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes
# COMMENT OUT FOR FIRST COMPILE PASS
add_dependencies(multi_map_visualization multi_map_server_messages_cpp)
## Specify libraries to link a library or executable target against
# COMMENT OUT FOR FIRST COMPILE PASS
target_link_libraries(multi_map_visualization
${catkin_LIBRARIES}
${ARMADILLO_LIBRARIES}
pose_utils
)
If you try to build on a clean machine (tested on 18.04 & 20.04), you'll get an error due to a missing header file
multi_map_server/MultiOccupancyGrid.h
.To fix this, edit the file:
Comment out the executable generation code per below:
Then compile first pass, e.g.
Now, you'll have
devel/include/multi_map_server/MultiOccupancyGrid.h
available.Then, uncomment the file:
and recompile:
Should work now!