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

Public API (issue #9): the shared receive side. More...

#include <cstddef>
#include <cstdint>
#include <expected>
#include <memory>
#include <optional>
#include <string_view>
#include <vector>
#include "livox/mid360/event.hpp"
#include "livox/mid360/export.hpp"
#include "livox/mid360/protocol.hpp"
#include "livox/mid360/transport.hpp"

Go to the source code of this file.

Classes

struct  livox::mid360::ContextOptions
 Sockets and receive-thread settings of a Context, passed to Context::create(). More...
class  livox::mid360::Context
 Owns the receive sockets and the receive thread. More...

Namespaces

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

Detailed Description

Public API (issue #9): the shared receive side.

The Mid-360 host ports for push (56201), point cloud (56301), IMU (56401) and firmware log (56501, #44) are the same for every LiDAR, so one Context owns those four sockets and the single receive thread, and dispatches datagrams to the registered Devices by source IP. Data path implemented in #6; push parsing is #7. A fifth socket for debug raw data (#93) is opened on request.