2.7 KiB
ORB_SLAM3 data processor and the networking pipeline.
Prerequisites
- Install cmake: https://cmake.org/download/
- Install Gstreamer. Download and follow the instructions guideline from DriveCast. Follow the rules of installation STRICTLY.
- Install OSCPack_1_1_0: http://www.rossbencina.com/code/oscpack
- Install vcpkg: https://vcpkg.io/en/getting-started.html
- Install Visual Studio 2019. Install the version of Windows SDK 10.0.20348.0
- Download and build Prerequisites for the changed ORB_SLAM3 library and the ORB_SLAM3 library itself from here:
Build OscPack:
- In the extracted folder:
mkdir build && cd build cmake ..- Open
TestOscPack.slnproject in Visual Studio. Edit Preferences ONLY of oscpack. Change buld type toRelease - Change: General -> Configuration Type -> Static Library (.lib)
- Also: Advanced -> Target File Extension -> .lib
- Build oscpack, OscReceiveTest, SimpleReceive, SimpleSend, OscSendTests
!Build boost.
Build ORB_SLAM3
- Instructions are here: https://git.drivecast.tech/PodmogilnyjIvan/ORB_SLAM3
- Save the path to your
vcpkg.cmakefile, you'll need it later. - Don't forget to write
vcpkg integrate allto use vcpkg in Visual Studio projects.
Build MyGst
-
In
CMakeLists.txtfile -
Under
OSC BEGINsection define yourOSC_DIR -
Under
ORB_SLAM3 BEGINsection define directories for all of the libraries mentioned in the file. -
Under
OpenCV BEGINsection inset(OpenCV_DIR XXX)instead of XXX define your directory. -
mkdir build && cd build -
cmake -DCMAKE_TOOLCHAIN_FILE=C:/Users/ivan/Source/Repos/ORB_SLAM3/Thirdparty/Pangolin/vcpkg/scripts/buildsystems/vcpkg.cmake ..Instead of my path, you have to paste your path tovcpkg.cmake -
You need to build
gst_get_ndiandmy_ndi_sourceprojects. Before bulding edit the Preferences of these two projects...
- C/C++ -> Code Generation -> Runtime Library -> MT
- The path
Boost_DIR/stage/libpaste to Linker -> General -> Additional Library Directories
- Change Preferences of oscpack project:
- C/C++ -> Code Generation -> Runtime Library -> MT
- Build
gst_get_ndiandmy_ndi_source
Running
Along with the library, .cmd and .bat scripts are provided. Put them in the Project_DIR/build/Release directory. Project_DIR stands for the MyGst project itself.
- In cmd 1, in
oscpack_DIR/build/Releasedirectory: runOscReceiveTest.exe - In cmd 2, in the
Project_DIR/build/Releasedirectory: runset-env.bat, then Runrun_source.cmd - In cmd 3, in the
Project_DIR/build/Releasedirectory: runset-env.bat, then Runrun_gst_loopthrough_capture.cmd
You should now be able to see RoboRace video, and in cmd_1 you should be able to see the receiving of the processed data.