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

Public API skeleton (issue #9): output types of the device layer. More...

#include <chrono>
#include <condition_variable>
#include <cstddef>
#include <cstdint>
#include <deque>
#include <mutex>
#include <optional>
#include <span>
#include <utility>
#include <vector>
#include "livox/mid360/export.hpp"
#include "livox/mid360/keys.hpp"
#include "livox/mid360/protocol.hpp"
#include "livox/mid360/tag.hpp"

Go to the source code of this file.

Classes

struct  livox::mid360::Point
 One return, same semantics as livox_ros_driver2's CustomPoint. More...
struct  livox::mid360::Frame
 A group of points closed by FramePolicy. Owns its storage; delivered by value. More...
struct  livox::mid360::ImuData
 One IMU packet (the LiDAR sends one sample per packet at 200 Hz) with its time. More...
struct  livox::mid360::FramePolicy
 How a Device cuts the packet stream into Frames (#6). More...
class  livox::mid360::BoundedQueue< T >
 Bounded single-producer / multi-consumer queue for handing Frames or ImuData from the receive thread to any other thread. More...
struct  livox::mid360::Extrinsic
 Host-side install attitude transform (issue #51). More...

Namespaces

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

Enumerations

enum class  livox::mid360::TimestampPolicy : std::uint8_t { livox::mid360::kLidar , livox::mid360::kHostOffsetOnce , livox::mid360::kHostReceive }
 How point/IMU timestamps are produced from the packet timestamp (#6). More...

Functions

Extrinsic livox::mid360::extrinsic_from (const InstallAttitude &a) noexcept
 Rotation = Rz(yaw) * Ry(pitch) * Rx(roll) (intrinsic ZYX, right-handed, degrees); translation = offsets in mm / 1000, added after the rotation.
void livox::mid360::apply (const Extrinsic &e, std::span< Point > points) noexcept
 Transforms every point in place; reflectivity, tag, line and offset are untouched.
void livox::mid360::apply (const Extrinsic &e, Frame &frame) noexcept
 Transforms every point of frame in place, as the span overload does.

Detailed Description

Public API skeleton (issue #9): output types of the device layer.

Plain structs so that the phase-3 C ABI can expose the same layout. Frame assembly is implemented in #6.