File tree Expand file tree Collapse file tree 5 files changed +12486
-12
lines changed Expand file tree Collapse file tree 5 files changed +12486
-12
lines changed Original file line number Diff line number Diff line change
1
+ # Build directory
1
2
build
2
- compile_commands.json
3
- * .vrs
3
+
4
+ # Pixi environment
5
+ .pixi
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.16 )
1
+ cmake_minimum_required (VERSION 3.16...3.27 )
2
2
3
- project (vrs_example LANGUAGES CXX )
3
+ project (rerun_vrs_example LANGUAGES CXX )
4
4
5
5
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
6
6
7
- # if(NOT DEFINED CMAKE_CXX_STANDARD)
8
- # endif()
9
-
10
- set (CMAKE_CXX_STANDARD 17 )
7
+ if (NOT DEFINED CMAKE_CXX_STANDARD )
8
+ set (CMAKE_CXX_STANDARD 17 )
9
+ endif ()
11
10
12
11
include (FetchContent )
13
- FetchContent_Declare (rerun_sdk DOWNLOAD_EXTRACT_TIMESTAMP ON URL https://build.rerun.io/commit/2ec5ce7 /rerun_cpp_sdk.zip )
12
+ FetchContent_Declare (rerun_sdk URL https://build.rerun.io/commit/b7f404a /rerun_cpp_sdk.zip ) # 2023-10-29
14
13
FetchContent_MakeAvailable (rerun_sdk )
15
14
16
15
include (FetchContent )
@@ -19,7 +18,8 @@ FetchContent_MakeAvailable(vrslib)
19
18
20
19
find_package (Eigen3 REQUIRED )
21
20
find_package (OpenCV REQUIRED )
21
+ find_package (fmt REQUIRED )
22
22
23
- add_executable (log_vrs src/main.cpp src/FramePlayer.cpp src/IMUPlayer.cpp src/utils.cpp )
24
- target_link_libraries (log_vrs Eigen3::Eigen ${OpenCV_LIBS} rerun_sdk vrslib vrs_utils )
25
- target_include_directories (log_vrs PRIVATE src )
23
+ add_executable (rerun_vrs_example src/main.cpp src/FramePlayer.cpp src/IMUPlayer.cpp src/utils.cpp )
24
+ target_link_libraries (rerun_vrs_example Eigen3::Eigen ${OpenCV_LIBS} rerun_sdk vrslib vrs_utils fmt )
25
+ target_include_directories (rerun_vrs_example PRIVATE src )
Original file line number Diff line number Diff line change 2
2
3
3
This is an example that shows how to use [ Rerun] ( https://github.com/rerun-io/rerun ) 's C++ API to log and view VRS files.
4
4
5
+ ## Installing the Rerun viewer
6
+ The Rerun C++ SDK works by connecting to an awaiting Rerun Viewer over TCP.
7
+
8
+ #### Building from source
9
+ * [ Install ` cargo ` ] ( https://rustup.rs/ )
10
+ * ` cargo install rerun-cli `
11
+
12
+ #### Using ` pip `
13
+ * ` pip install rerun-sdk `
14
+
15
+ ### Running the Rerun viewer
16
+ Just type ` rerun ` and the rerun viewer should show up. Then it is time to run this example!
17
+
18
+
5
19
## How to build and run
6
20
7
21
``` bash
@@ -10,3 +24,7 @@ cd build
10
24
cmake ..
11
25
cmake --build .
12
26
```
27
+
28
+ ---------------------------
29
+
30
+ TODO: Pixi describe setup etc.
You can’t perform that action at this time.
0 commit comments