|
livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
|
Aggregated read-back types over the keys.hpp codecs (issues #38 / #41): the identity of a LiDAR (serial, product string, firmware versions, MAC), its stored settings and its live status. More...
#include <array>#include <cstdint>#include <optional>#include <span>#include <string>#include "livox/mid360/export.hpp"#include "livox/mid360/hms.hpp"#include "livox/mid360/keys.hpp"#include "livox/mid360/protocol.hpp"Go to the source code of this file.
Classes | |
| struct | livox::mid360::DeviceIdentity |
| Keys 0x8000-0x8005 (issue #38). More... | |
| struct | livox::mid360::LidarSettings |
| The 16 modelled writable keys. More... | |
| struct | livox::mid360::LidarStatus |
| Keys 0x8006-0x8011: the live state, also carried by the 0x0102 push. More... | |
| struct | livox::mid360::TimeSyncStatus |
| Time-sync state read by Device::time_sync_status() (issue #53): keys 0x8009–0x800C in one inquire. More... | |
Namespaces | |
| namespace | livox |
| Livox LiDAR drivers. | |
| namespace | livox::mid360 |
| The livox_mid360_core library: everything declared by the public headers. | |
Functions | |
| std::string | livox::mid360::to_string (const Version &v) |
| "aa.bb.cc.dd". | |
| DeviceIdentity | livox::mid360::decode_identity (std::span< const KeyValue > kvs) noexcept |
| Missing or undecodable keys leave the field at its default (empty string / zero). | |
| std::string | livox::mid360::to_string (const DeviceIdentity &id) |
| sn=... product_info=... version_app=a.b.c.d version_loader=... version_hardware=... mac=.. | |
Typed key values | |
One-line forms of the typed key values. | |
| std::string_view | livox::mid360::to_string (ScanPattern p) noexcept |
| "non_repetitive", "repetitive" or "low_rate_repetitive". | |
| std::string_view | livox::mid360::to_string (DetectMode m) noexcept |
| "normal" or "sensitive". | |
| std::string_view | livox::mid360::to_string (TimeSyncType t) noexcept |
| "none", "ptp" or "gps". | |
| std::string_view | livox::mid360::to_string (FwType t) noexcept |
| "loader" or "app". | |
| std::string_view | livox::mid360::to_string (ImuOutputRate r) noexcept |
| Rate with unit, e.g. "200Hz". | |
| std::string_view | livox::mid360::to_string (ImuAccelRange r) noexcept |
| Range with unit, e.g. "4g". | |
| std::string_view | livox::mid360::to_string (ImuGyroRange r) noexcept |
| Range with unit, e.g. "2000dps" or "62.5dps". | |
| std::string | livox::mid360::to_string (const HostIpConfig &c) |
| ip:dst_port<-src_port | |
| std::string | livox::mid360::to_string (const LidarIpConfig &c) |
| ip/netmask/gateway | |
| std::string | livox::mid360::to_string (const InstallAttitude &a) |
| r<roll>/p<pitch>/y<yaw>/x<mm>/y<mm>/z<mm> | |
| std::string | livox::mid360::to_string (const FovConfig &f) |
| yaw<start>-<stop>/pitch<start>-<stop> | |
| std::string | livox::mid360::to_string (const FovEnable &e) |
| fov0:<0|1>,fov1:<0|1> | |
| std::string | livox::mid360::to_string (const FovSettings &s) |
| fov0=<...> fov1=<...> enable=<...>; absent fields are omitted, all absent → "". | |
| std::string_view | livox::mid360::to_string (FuncIn0 f) noexcept |
| "pps". | |
| std::string_view | livox::mid360::to_string (FuncIn1 f) noexcept |
| "gps". | |
| std::string_view | livox::mid360::to_string (FuncOut f) noexcept |
| "none", "follow_input" or "safety_zone". | |
| std::string | livox::mid360::to_string (const FuncIoConfig &c) |
| in0/in1/out0/out1, e.g. "pps/gps/none/safety_zone". | |
| std::string | livox::mid360::to_string (const ImuSensorConfig &c) |
| <rate>/<accel>/<gyro>, e.g. 200Hz/4g/2000dps | |
| std::string_view | livox::mid360::to_string (DiagLevel level) noexcept |
| "normal", "warning", "error" or "safety_error". | |
| std::string | livox::mid360::to_string (const DiagStatus &d) |
| sys<n>/scan<n>/rng<n>/comm<n> with the numeric level of each subsystem. | |
Variables | |
| constexpr std::array< Key, 6 > | livox::mid360::kIdentityKeys |
| The keys decode_identity() reads, for one inquire. | |
Settings | |
Settings (issue #41). | |
| constexpr std::array< Key, 16 > | livox::mid360::kSettingsKeys |
| The keys decode_settings() reads, for one inquire. | |
| LidarSettings | livox::mid360::decode_settings (std::span< const KeyValue > kvs) noexcept |
| Decodes the kSettingsKeys present in kvs; other keys are ignored. | |
| std::string | livox::mid360::to_string (const LidarSettings &s) |
| One line, name=value per present key in kSettingsKeys order, empty optionals omitted. | |
Status | |
Status (issue #41). | |
| constexpr std::array< Key, 10 > | livox::mid360::kStatusKeys |
| The keys decode_status() reads, for one inquire. | |
| std::string | livox::mid360::to_string (const TimeSyncStatus &s) |
| local_time=... last_sync=... offset=... type=..., times in ns. | |
| LidarStatus | livox::mid360::decode_status (std::span< const KeyValue > kvs) noexcept |
| Decodes the kStatusKeys present in kvs, each HMS slot through decode_hms(); other keys are ignored and time_ns stays 0. | |
| std::string | livox::mid360::to_string (const LidarStatus &s) |
| One line, name=value per present key; core_temp in degC with two decimals, hms=[..] lists only the active codes as 0x<raw>:<level>. | |
Aggregated read-back types over the keys.hpp codecs (issues #38 / #41): the identity of a LiDAR (serial, product string, firmware versions, MAC), its stored settings and its live status.
Each type has a key list, a decoder that takes any parsed key-value list (an InquireResult or a 0x0102 push) and a one-line to_string with the wire key names, so logs stay greppable. The struct to_string()s of the typed key values live here as well.