Zed_nav2 build fails using colcon build

By not providing “Findgrid_map_msgs.cmake” in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
“grid_map_msgs”, but CMake did not find one.

Could not find a package configuration file provided by “grid_map_msgs”
with any of the following names:


Add the installation prefix of “grid_map_msgs” to CMAKE_PREFIX_PATH or set
“grid_map_msgs_DIR” to a directory containing one of the above files. If
“grid_map_msgs” provides a separate development package or SDK, be sure it
has been installed.

Failed <<< zed_nav2 [19.0s, exited with code 1]
Aborted <<< zed_topic_benchmark_interfaces [19.1s]
Aborted <<< camera_info_manager [9.01s]
Aborted <<< zed_interfaces [20.2s]
Aborted <<< zed_tutorial_depth [9.51s]
Aborted <<< zed_tutorial_pos_tracking [8.37s]

Summary: 3 packages finished [23.4s]
1 package failed: zed_nav2
5 packages aborted: camera_info_manager zed_interfaces zed_topic_benchmark_interfaces zed_tutorial_depth zed_tutorial_pos_tracking
1 package had stderr output: zed_nav2
11 packages not processed
bart@ubuntu:~/ros2_ws$ rosdep install --from-paths src --ignore-src -r -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
zed_nav2: Cannot locate rosdep definition for [grid_map_ros]
zed_components: Cannot locate rosdep definition for [grid_map_ros]
zed_display_rviz2: Cannot locate rosdep definition for [grid_map_rviz_plugin]
Continuing to install resolvable dependencies…
#All required rosdeps installed successfully

Hi @bart

can you please tell me what version of the zed-ros2-examples repository you are using?
zed_nav2 is a development package that was never released officially, probably it was wrongly released in a devel branch a few weeks ago, but it’s no more publicly available.

I have to be honest, I don’t know I pulled it a while ago.

Any alternatives for when I want to build a point cloud map?
Rtabmap also gives some problems. Did not get deeper into it yet.