Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.29 KB

File metadata and controls

60 lines (37 loc) · 1.29 KB

C++ library

The Foxglove C++ SDK is a higher-level wrapper around the C library. To build it, you will need to link with that library and add the generated includes to your include paths.

The SDK headers include a copy of expected.hpp from tl-expected (docs), which provides an implementation similar to std::expected from C++23.

Local development

Build the library and examples:

make build

Run clang-format:

make lint

Run clang-tidy:

make CLANG_TIDY=true build

Build and run tests:

make test

Run with Address & Undefined Behavior sanitizers:

make SANITIZE=address,undefined test

Run example programs (note that a different build directory may be used depending on build settings like sanitizers):

./build/example_server

Examples

RGB Camera Visualization Example

See detailed instructions on dependencies and visualizing data in the example's readme.

Building the Example

Once OpenCV is installed, build the example:

make BUILD_OPENCV_EXAMPLE=ON build

This will create the example_rgb_camera_visualization executable in the build directory.