livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
Loading...
Searching...
No Matches
lvx2.hpp File Reference

lvx2 file codec (issue #35): Lvx2Writer records the raw point-cloud packet stream, Lvx2Reader walks a file package by package, Lvx2Player replays it through the same frame assembly the Device uses. More...

#include <array>
#include <cstdint>
#include <expected>
#include <filesystem>
#include <functional>
#include <memory>
#include <optional>
#include <span>
#include <stop_token>
#include <string>
#include <string_view>
#include <vector>
#include "livox/mid360/export.hpp"
#include "livox/mid360/frame.hpp"
#include "livox/mid360/protocol.hpp"

Go to the source code of this file.

Classes

struct  livox::mid360::Lvx2Error
 Error of the lvx2 writer, reader and player. More...
struct  livox::mid360::Lvx2DeviceInfo
 One entry of the lvx2 device-info block (63 bytes on disk). More...
struct  livox::mid360::Lvx2FileHeader
 Public + private header of a file. More...
struct  livox::mid360::Lvx2Packet
 One package (packet) of a frame as read from a file. More...
class  livox::mid360::Lvx2Writer
 Writes an lvx2 file from raw data packets. More...
struct  livox::mid360::Lvx2Writer::Stats
 Counters of the file being written. More...
class  livox::mid360::Lvx2Reader
 Reads an lvx2 file package by package. More...
struct  livox::mid360::Lvx2PlayOptions
 Settings of an Lvx2Player. More...
struct  livox::mid360::Lvx2DevicePlayStats
 The share of one played device in Lvx2PlayStats. More...
struct  livox::mid360::Lvx2PlayStats
 Result of Lvx2Player::run(): the totals over all played devices, plus each device's share. More...
class  livox::mid360::Lvx2Player
 Replays a file: packets go to on_packet as-is, and through a FrameAssembler per device (timestamps are the recorded ones, TimestampPolicy::kLidar) to on_frame / on_device_frame. More...

Namespaces

namespace  livox
 Livox LiDAR drivers.
namespace  livox::mid360
 The livox_mid360_core library: everything declared by the public headers.

Functions

std::string_view livox::mid360::to_string (Lvx2Error::Kind kind) noexcept
 Snake-case name of the kind ("io", "invalid_argument", "unsupported_data_type", "bad_file").
std::string livox::mid360::to_string (const Lvx2Error &err)
 The kind, the detail and, for kIo, the errno text in one line.

Detailed Description

lvx2 file codec (issue #35): Lvx2Writer records the raw point-cloud packet stream, Lvx2Reader walks a file package by package, Lvx2Player replays it through the same frame assembly the Device uses.

Format reference and unverified details: docs/lvx2.md.