rpng / open_vins

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

Does open_vins run on ROS Melodic? #24

Closed therishidesai closed 4 years ago

therishidesai commented 4 years ago

Question in the title.

For more info, I am trying to run open_vins on a Jetson AGX which ships with ubuntu 18.04 so I can't install ros-kinetic unless I build the whole thing from source.

therishidesai commented 4 years ago

Update:

I tried building open_vins on ros-melodic and I get the following error:

In file included from /home/all/workspace/catkin_ws_ov/src/open-vins/ov_core/src/track/TrackAruco.cpp:21:0:
/home/all/workspace/catkin_ws_ov/src/open-vins/ov_core/src/track/TrackAruco.h:25:10: fatal error: opencv2/aruco.hpp: No such file or directory
 #include <opencv2/aruco.hpp>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ov_core_lib.dir/src/track/TrackAruco.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/all/workspace/catkin_ws_ov/src/open-vins/ov_core/src/track/TrackDescriptor.cpp:21:0:
/home/all/workspace/catkin_ws_ov/src/open-vins/ov_core/src/track/TrackDescriptor.h:25:10: fatal error: opencv2/xfeatures2d.hpp: No such file or directory
 #include <opencv2/xfeatures2d.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ov_core_lib.dir/src/track/TrackDescriptor.cpp.o] Error 1
make[1]: *** [CMakeFiles/ov_core_lib.dir/all] Error 2
make: *** [all] Error 2

I have built opencv 3.4 on the jetson and made sure to point the CMake files to the opencv 3.4 so it doesn't use the opencv 3.2 that comes with ros-melodic.

Any ideas on how to fix this?

therishidesai commented 4 years ago

Realized I forgot to build opencv with the contribs extras. Rebuilding opencv got it to work.