How devopstem/plna-core-cpp works
PLNA is a native C++ core for retail-store maps, routing and product-location lookup, exposed through a stable C ABI and Android JNI. The main workflow loads Firebase-style store-map JSON into a shared scene, then computes routes and emits a cached draw list for a platform renderer. Separate capabilities include shelf geometry/product caching and TCP task networking. Source excerpts show the map, ABI and loader calls; platform rendering and some integration details are documented but not fully sampled.
Main entry points: c_api.cpp C API · jni_map_bridge.cpp Android map JNI · store_map_loader.cpp Store-map loader · map_scene.cpp Map scene
Components 12
Map ingestion
- Store-map loader
core/src/store_map_loader.cpp - Color parsing
core/include/plna/color.hpp
Map runtime
- Map scene
core/src/map_scene.cpp - Geometry and products
core/src/map_geometry.cpp
Platform interfaces
- C API
core/src/c_api.cpp - Android map JNI
platform/android/jni_map_bridge.cpp
Task networking
- Android network JNI
platform/android/jni_network_bridge.cpp - TCP client
core/src/socket_client.cpp
Other components
- Host application
- Firebase RTDB
- Platform renderer
- Task server
Connections 16
- Firebase RTDB → Host application: provides JSON
README.md - Host application → C API: loads map
README.md - C API → Store-map loader: loads JSON
core/src/c_api.cpp - Store-map loader → Map scene: populates scene
core/src/store_map_loader.cpp - Store-map loader → Color parsing: parses colors
core/src/store_map_loader.cpp - C API → Map scene: manages scene
core/src/c_api.cpp - C API → Geometry and products: manages products
core/src/c_api.cpp - Host application → Android map JNI: calls JNI
README.md - Android map JNI → Map scene: updates and draws
platform/android/jni_map_bridge.cpp - Android map JNI → Store-map loader: loads JSON
platform/android/jni_map_bridge.cpp - Android map JNI → Geometry and products: routes and looks up
platform/android/jni_map_bridge.cpp - Geometry and products → Map scene: uses scene
core/src/map_geometry.cpp - Host application → Platform renderer: paints draw list
README.md - Host application → Android network JNI: calls JNI
- Android network JNI → TCP client: controls client
platform/android/jni_network_bridge.cpp - TCP client → Task server: sends and receives