livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
Loading...
Searching...
No Matches
livox::mid360::FramePolicy Struct Reference

How a Device cuts the packet stream into Frames (#6). More...

#include <livox/mid360/frame.hpp>

Public Types

enum class  Mode : std::uint8_t { kFrameCounter , kTimeWindow }
 What closes a frame besides the conditions common to both modes. More...

Public Attributes

Mode mode = Mode::kFrameCounter
 default: follow the header frame_cnt
std::chrono::nanoseconds window {std::chrono::milliseconds{100}}
 kTimeWindow's period.

Detailed Description

How a Device cuts the packet stream into Frames (#6).

In both modes a change of the header time_type, or a packet window or more before the frame's base time (a clock stepped back, #145), also closes the frame.

Member Enumeration Documentation

◆ Mode

enum class livox::mid360::FramePolicy::Mode : std::uint8_t
strong

What closes a frame besides the conditions common to both modes.

Enumerator
kFrameCounter 

close on a change of header frame_cnt; a jump still closes one frame

kTimeWindow 

close every window of point time (livox_ros_driver2 publish period)

Member Data Documentation

◆ window

std::chrono::nanoseconds livox::mid360::FramePolicy::window {std::chrono::milliseconds{100}}

kTimeWindow's period.

Also, in both modes, the step back that closes a frame, the idle close, and half the time kFrameCounter waits for a frame_cnt change before falling back.


The documentation for this struct was generated from the following file: