rpng / open_vins

An open source platform for visual-inertial navigation research.
https://docs.openvins.com
GNU General Public License v3.0
2.06k stars 616 forks source link

Error building colcon workspace in ROS2 20.04 Docker #346

Closed nicko369 closed 1 year ago

nicko369 commented 1 year ago
ov_ws/src/open_vins/ov_eval/../ov_core/src/utils/opencv_yaml_parse.h:28:10: fatal error: opencv2/opencv.hpp: No such file or directory
   28 | #include <opencv2/opencv.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ov_eval_lib.dir/build.make:128: CMakeFiles/ov_eval_lib.dir/ov_ws/src/open_vins/ov_core/src/feat/FeatureInitializer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:339: CMakeFiles/ov_eval_lib.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
---
Failed   <<< ov_eval [1min 19s, exited with code 2]
Aborted  <<< ov_core [4min 2s]                        
Aborted  <<< ov_init [6min 31s]                       
Aborted  <<< ov_msckf [8min 11s]          

Summary: 1 package finished [8min 11s]
  1 package failed: ov_eval
  3 packages aborted: ov_core ov_init ov_msckf
  5 packages had stderr output: ov_core ov_data ov_eval ov_init ov_msckf
goldbattle commented 1 year ago

I am able to build on my machine and the CI passes. Ensure you have a valid ROS environment and that it has cv_bridge and/or opencv installed.

On Tue, Jun 20, 2023 at 6:41 AM nicko369 @.***> wrote:

ov_ws/src/open_vins/ov_eval/../ov_core/src/utils/opencv_yaml_parse.h:28:10: fatal error: opencv2/opencv.hpp: No such file or directory 28 | #include <opencv2/opencv.hpp> | ^~~~~~~~ compilation terminated. make[2]: [CMakeFiles/ov_eval_lib.dir/build.make:128: CMakeFiles/ov_eval_lib.dir/ov_ws/src/open_vins/ov_core/src/feat/FeatureInitializer.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/Makefile2:339: CMakeFiles/ov_eval_lib.dir/all] Error 2 make: [Makefile:130: all] Error 2

Failed <<< ov_eval [1min 19s, exited with code 2] Aborted <<< ov_core [4min 2s] Aborted <<< ov_init [6min 31s] Aborted <<< ov_msckf [8min 11s]

Summary: 1 package finished [8min 11s] 1 package failed: ov_eval 3 packages aborted: ov_core ov_init ov_msckf 5 packages had stderr output: ov_core ov_data ov_eval ov_init ov_msckf

— Reply to this email directly, view it on GitHub https://github.com/rpng/open_vins/issues/346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ6TYQJ37BSADU57OLGHYDXMGSCLANCNFSM6AAAAAAZNJ62KA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

nicko369 commented 1 year ago

I've built the image from the dockefile provided I'm able to find the opencv4/opencv2 file in /usr/include/opencv4 and have tried adding it to the cmake but I still encounter the error

Aishkrish18 commented 11 months ago

Screenshot from 2023-07-27 15-34-12

Hey, I am still facing the same error as mentioned above. Although, on trying to build opencv from source, it still gives the same error. This is the same case for both ROS2 dockers since I tried both of them. Could you suggest a solution for this if it has already worked out for any of you? Would be very much useful to have a ROS2 docker, since ros1 dockers works perfectly fine for me.

Regards, AIshwarya

goldbattle commented 11 months ago

There is a two ROS2 dockers. Here is one you can build with: https://github.com/rpng/open_vins/blob/master/Dockerfile_ros2_20_04

You should be able to directly follow these instructions and just replace the filename: https://docs.openvins.com/dev-docker.html#dev-docker-openvins

On Thu, Jul 27, 2023 at 6:37 AM Tetrix @.***> wrote:

[image: Screenshot from 2023-07-27 15-34-12] https://user-images.githubusercontent.com/47241581/256553165-007e26ce-fa41-4f02-a6c1-17a86d997653.png

Hey, I am still facing the same error as mentioned above. Although, on trying to build opencv from source, it still gives the same error. This is the same case for both ROS2 dockers since I tried both of them. Could you suggest a solution for this if it has already worked out for any of you? Would be very much useful to have a ROS2 docker, since ros1 dockers works perfectly fine for me.

Regards, AIshwarya

— Reply to this email directly, view it on GitHub https://github.com/rpng/open_vins/issues/346#issuecomment-1653646095, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ6TYRPP7JPCXLZVRVZ75LXSJVIVANCNFSM6AAAAAAZNJ62KA . You are receiving this because you commented.Message ID: @.***>