Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
livox_ros::LdsLvx Class Reference

#include <lds_lvx.h>

Inheritance diagram for livox_ros::LdsLvx:
Inheritance graph
[legend]

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 LdsLvxGetInstance (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
 
LdsLvxoperator= (const LdsLvx &)=delete
 
void ReadLvxFile ()
 
void StartRead ()
 
void StopRead ()
 
 ~LdsLvx ()
 

Private Attributes

volatile bool is_initialized_
 
std::shared_ptr< LvxFileHandlelvx_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_
 

Detailed Description

Lidar data source abstract.

Definition at line 41 of file lds_lvx.h.

Constructor & Destructor Documentation

livox_ros::LdsLvx::LdsLvx ( uint32_t  interval_ms)
private

For device connect use ------------------------------------------------—

Definition at line 42 of file lds_lvx.cpp.

livox_ros::LdsLvx::LdsLvx ( const LdsLvx )
privatedelete
livox_ros::LdsLvx::~LdsLvx ( )
private

Definition at line 52 of file lds_lvx.cpp.

Member Function Documentation

int livox_ros::LdsLvx::DeInitLdsLvx ( void  )
static LdsLvx* livox_ros::LdsLvx::GetInstance ( uint32_t  interval_ms)
inlinestatic

Definition at line 43 of file lds_lvx.h.

int livox_ros::LdsLvx::InitLdsLvx ( const char *  lvx_path)

Definition at line 66 of file lds_lvx.cpp.

bool livox_ros::LdsLvx::IsStarted ( )
inlineprivate

Definition at line 60 of file lds_lvx.h.

LdsLvx& livox_ros::LdsLvx::operator= ( const LdsLvx )
privatedelete
void livox_ros::LdsLvx::PrepareExit ( void  )
virtual

Reimplemented from livox_ros::Lds.

Definition at line 61 of file lds_lvx.cpp.

void livox_ros::LdsLvx::ReadLvxFile ( )
private

Global function in LdsLvx for callback

Packet length + device index

Definition at line 135 of file lds_lvx.cpp.

void livox_ros::LdsLvx::StartRead ( )
inlineprivate

Definition at line 58 of file lds_lvx.h.

void livox_ros::LdsLvx::StopRead ( )
inlineprivate

Definition at line 59 of file lds_lvx.h.

Member Data Documentation

volatile bool livox_ros::LdsLvx::is_initialized_
private

Definition at line 64 of file lds_lvx.h.

std::shared_ptr<LvxFileHandle> livox_ros::LdsLvx::lvx_file_
private

Definition at line 66 of file lds_lvx.h.

OutPacketBuffer livox_ros::LdsLvx::packets_of_frame_
private

Definition at line 65 of file lds_lvx.h.

volatile bool livox_ros::LdsLvx::start_read_lvx_
private

Definition at line 68 of file lds_lvx.h.

std::shared_ptr<std::thread> livox_ros::LdsLvx::t_read_lvx_
private

Definition at line 67 of file lds_lvx.h.


The documentation for this class was generated from the following files:


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46