#include <lds_lvx.h>
Public Member Functions | |
int | DeInitLdsLvx (void) |
int | InitLdsLvx (const char *lvx_path) |
void | PrepareExit (void) |
Public Member Functions inherited from livox_ros::Lds | |
void | CleanRequestExit () |
uint8_t | GetDeviceType (uint8_t handle) |
bool | IsAllQueueEmpty () |
bool | IsAllQueueReadStop () |
bool | IsRequestExit () |
Lds (uint32_t buffer_time_ms, uint8_t data_src) | |
void | RequestExit () |
void | ResetLds (uint8_t data_src) |
void | StorageRawPacket (uint8_t handle, LivoxEthPacket *eth_packet) |
void | UpdateLidarInfoByEthPacket (LidarDevice *p_lidar, LivoxEthPacket *eth_packet) |
virtual | ~Lds () |
Static Public Member Functions | |
static LdsLvx * | GetInstance (uint32_t interval_ms) |
Static Public Member Functions inherited from livox_ros::Lds | |
static void | ResetLidar (LidarDevice *lidar, uint8_t data_src) |
static void | SetLidarDataSrc (LidarDevice *lidar, uint8_t data_src) |
Private Member Functions | |
bool | IsStarted () |
LdsLvx (uint32_t interval_ms) | |
LdsLvx (const LdsLvx &)=delete | |
LdsLvx & | operator= (const LdsLvx &)=delete |
void | ReadLvxFile () |
void | StartRead () |
void | StopRead () |
~LdsLvx () | |
Private Attributes | |
volatile bool | is_initialized_ |
std::shared_ptr< LvxFileHandle > | lvx_file_ |
OutPacketBuffer | packets_of_frame_ |
volatile bool | start_read_lvx_ |
std::shared_ptr< std::thread > | t_read_lvx_ |
Additional Inherited Members | |
Public Attributes inherited from livox_ros::Lds | |
uint8_t | lidar_count_ |
LidarDevice | lidars_ [kMaxSourceLidar] |
Semaphore | semaphore_ |
Protected Attributes inherited from livox_ros::Lds | |
uint32_t | buffer_time_ms_ |
uint8_t | data_src_ |
|
private |
For device connect use ------------------------------------------------—
Definition at line 42 of file lds_lvx.cpp.
|
privatedelete |
|
private |
Definition at line 52 of file lds_lvx.cpp.
int livox_ros::LdsLvx::DeInitLdsLvx | ( | void | ) |
int livox_ros::LdsLvx::InitLdsLvx | ( | const char * | lvx_path | ) |
Definition at line 66 of file lds_lvx.cpp.
|
virtual |
Reimplemented from livox_ros::Lds.
Definition at line 61 of file lds_lvx.cpp.
|
private |
Global function in LdsLvx for callback
Packet length + device index
Definition at line 135 of file lds_lvx.cpp.
|
private |
|
private |
|
private |