Skip to content

About

SDK to create PlotJuggler 4 plugins

Resources

Stars

13 stars

Watchers

0 watching

Forks

Latest commit

 

History

468 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlotJuggler SDK

Linux CI Windows CI

C++20 plugin SDK and host-loading libraries for PlotJuggler.

Writing a plugin? Start with the plugin-authoring guide and the family guides in pj_plugins/docs/. Start with Existing SDK utilities before writing helpers. Source providers also follow the provider contract. Both guides ship under share/plotjuggler_sdk/docs/ in the installed package.

Modules

Module Description Dependencies License
pj_base Vocabulary types: Timestamp, DatasetId, TopicId, type trees, Expected<T>, Span<T> None Apache-2.0
pj_source Provider descriptors, origins, artifact cache, jobs, limits, presentation, completion and Stop; link plotjuggler_sdk::source pj_base, nlohmann/json Apache-2.0
pj_plugins C-ABI plugin protocol (DataSource, MessageParser, Dialog, Toolbox, Widget families), C++ SDK base classes, plugin discovery and host-side loaders pj_base, nlohmann/json Apache-2.0
cmake/ Plugin-authoring CMake helpers shipped with plugin_sdk: pj_configure_plugin() (symbol isolation, export allowlist + gate, manifest validation/sidecar/embed), pj_embed_file(), pj_harden_plugin_exports(), pj_add_sdk_test_fixture() — see examples/sdk_consumer — Apache-2.0

Getting Started

Prerequisites: C++20 compiler (GCC 11+), Conan 2, CMake 3.22+.

LLVM tooling (clang-format, clangd, clang-tidy)

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 22
sudo apt install clangd-22 clang-format-22 clang-tidy-22

Build and test

git clone <this repo>
cd plotjuggler_sdk

./build.sh              # RelWithDebInfo (build/)
./build.sh --debug      # Debug + ASAN (build/debug_asan)
./test.sh               # runs tests in all discovered build dirs
pre-commit run --all-files   # clang-format and file hygiene
git ls-files -z '*.cpp' | xargs -0 clang-tidy-22 -p build/debug_asan   # clang-tidy (not a CI gate)

Project Layout

pj_base/                   Vocabulary, builtin codecs and sdk/source/ provider support
pj_plugins/                C-ABI plugin protocol, SDK, host loaders
cmake/                     Installed CMake helpers for plugin authors (PjPlugin.cmake, PjSdkTestFixtures.cmake)
examples/sdk_consumer/     find_package() consumer exercising the helpers (built by ./test_sdk_install.sh and the conda recipe test)
experimental/              Built and tested here, never installed (functional parser modules)
tools/feature_floors/      Host-contract floor table checks
packaging/                 conan-center-index recipe staging
docs/                      Project-wide design guides; RELEASING.md for versions and releases

Conan/CMake components: base, source, plugin_sdk (what a plugin links) and plugin_host (the loaders a host or a plugin test links).

License

PlotJuggler SDK is Apache-2.0 (LICENSE-APACHE); each source file carries an authoritative SPDX-License-Identifier header. You may build proprietary plugins and applications on the SDK without restriction; Apache-2.0 also grants an explicit patent license.

The columnar storage engine belongs to the PlotJuggler application; plugins reach it through the stable C ABI and never link it. See LICENSE.

About

SDK to create PlotJuggler 4 plugins

Resources

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages