# Colcon build "zed\_ros2\_examples" fails

**URL:** <https://community.stereolabs.com/t/colcon-build-zed-ros2-examples-fails/2373>\
**Category:** ROS2\
**Tags:** slam, ros, depth, jetson\
**Created:** [April 1, 2023, 12:47pm UTC](https://community.stereolabs.com/t/colcon-build-zed-ros2-examples-fails/2373 "2023-04-01T12:47:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bart](https://community.stereolabs.com/user_avatar/community.stereolabs.com/bart/32/1006_2.png) [@bart](https://community.stereolabs.com/u/bart)\
**Post date:** [April 1, 2023, 12:47pm UTC](https://community.stereolabs.com/t/colcon-build-zed-ros2-examples-fails/2373/1 "2023-04-01T12:47:07Z")

</div>

Hey I’m trying to install the examples in the same workspace as the Wrapper but it says it cant locate the “grid\_map\_msgs”.

Here the build output :

CMake Error at CMakeLists.txt:61 (find\_package):  
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:

```
grid_map_msgsConfig.cmake
grid_map_msgs-config.cmake

```

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 [12.1s, exited with code 1]  
Aborted \<\<\< zed\_topic\_benchmark\_component [3.72s]  
Aborted \<\<\< zed\_tutorial\_video [10.6s]  
Aborted \<\<\< zed\_components [10.3s]  
Aborted \<\<\< zed\_tutorial\_depth [36.2s]  
Aborted \<\<\< zed\_tutorial\_pos\_tracking [46.3s]

Summary: 6 packages finished [51.5s]  
1 package failed: zed\_nav2  
5 packages aborted: zed\_components zed\_topic\_benchmark\_component zed\_tutorial\_depth zed\_tutorial\_pos\_tracking zed\_tutorial\_video  
2 packages had stderr output: zed\_nav2 zed\_topic\_benchmark\_component  
8 packages not processed  
bart@ubuntu:~/ros2\_ws$

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [April 1, 2023, 6:21pm UTC](https://community.stereolabs.com/t/colcon-build-zed-ros2-examples-fails/2373/2 "2023-04-01T18:21:05Z")

</div>

Hi @bart  
You can run the command  
`rosdep install --from-paths src --ignore-src -r -y`  
in the root folder of the ROS2 workspace to install the missing dependencies.

However, `zed_nav2` is an experimental package, it should have not been added to the compile list.  
We will fix this problem the next week.  
Thank you for reporting.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [April 3, 2023, 8:38am UTC](https://community.stereolabs.com/t/colcon-build-zed-ros2-examples-fails/2373/3 "2023-04-03T08:38:59Z")

</div>

The ZED ROS2 Examples repository has been fixed

---

<div class="post-metadata">

**Author:** ![bart](https://community.stereolabs.com/user_avatar/community.stereolabs.com/bart/32/1006_2.png) [@bart](https://community.stereolabs.com/u/bart)\
**Post date:** [April 3, 2023, 8:47am UTC](https://community.stereolabs.com/t/colcon-build-zed-ros2-examples-fails/2373/4 "2023-04-03T08:47:33Z")

</div>

Thank you a shall try and rebuild it today.

Op ma 3 apr. 2023 10:39 schreef Walter Lucetti (Stereolabs) [support@stereolabs.com](mailto:support@stereolabs.com):
