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

#include <lds.h>

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

Public Member Functions

void CleanRequestExit ()
 
uint8_t GetDeviceType (uint8_t handle)
 
bool IsAllQueueEmpty ()
 
bool IsAllQueueReadStop ()
 
bool IsRequestExit ()
 
 Lds (uint32_t buffer_time_ms, uint8_t data_src)
 
virtual void PrepareExit (void)
 
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 void ResetLidar (LidarDevice *lidar, uint8_t data_src)
 
static void SetLidarDataSrc (LidarDevice *lidar, uint8_t data_src)
 

Public Attributes

uint8_t lidar_count_
 
LidarDevice lidars_ [kMaxSourceLidar]
 
Semaphore semaphore_
 

Protected Attributes

uint32_t buffer_time_ms_
 
uint8_t data_src_
 

Private Attributes

volatile bool request_exit_
 

Detailed Description

Lidar data source abstract.

Definition at line 427 of file lds.h.

Constructor & Destructor Documentation

livox_ros::Lds::Lds ( uint32_t  buffer_time_ms,
uint8_t  data_src 
)

Definition at line 552 of file lds.cpp.

livox_ros::Lds::~Lds ( )
virtual

Definition at line 558 of file lds.cpp.

Member Function Documentation

void livox_ros::Lds::CleanRequestExit ( )
inline

Definition at line 440 of file lds.h.

uint8_t livox_ros::Lds::GetDeviceType ( uint8_t  handle)

Definition at line 613 of file lds.cpp.

bool livox_ros::Lds::IsAllQueueEmpty ( )

Definition at line 592 of file lds.cpp.

bool livox_ros::Lds::IsAllQueueReadStop ( )

Definition at line 602 of file lds.cpp.

bool livox_ros::Lds::IsRequestExit ( )
inline

Definition at line 441 of file lds.h.

void livox_ros::Lds::PrepareExit ( void  )
virtual

Reimplemented in livox_ros::LdsLidar, livox_ros::LdsHub, and livox_ros::LdsLvx.

Definition at line 713 of file lds.cpp.

void livox_ros::Lds::RequestExit ( )

Definition at line 588 of file lds.cpp.

void livox_ros::Lds::ResetLds ( uint8_t  data_src)

Definition at line 581 of file lds.cpp.

void livox_ros::Lds::ResetLidar ( LidarDevice lidar,
uint8_t  data_src 
)
static

unallocated state

Definition at line 563 of file lds.cpp.

void livox_ros::Lds::SetLidarDataSrc ( LidarDevice lidar,
uint8_t  data_src 
)
static

Definition at line 577 of file lds.cpp.

void livox_ros::Lds::StorageRawPacket ( uint8_t  handle,
LivoxEthPacket *  eth_packet 
)

Whether a new sync frame

used receive time as timebase

Whether a new sync frame

used receive time as timebase

Definition at line 637 of file lds.cpp.

void livox_ros::Lds::UpdateLidarInfoByEthPacket ( LidarDevice p_lidar,
LivoxEthPacket *  eth_packet 
)

Definition at line 621 of file lds.cpp.

Member Data Documentation

uint32_t livox_ros::Lds::buffer_time_ms_
protected

Buffer time before data in queue is read

Definition at line 450 of file lds.h.

uint8_t livox_ros::Lds::data_src_
protected

Definition at line 451 of file lds.h.

uint8_t livox_ros::Lds::lidar_count_

Lidar access handle.

Definition at line 445 of file lds.h.

LidarDevice livox_ros::Lds::lidars_[kMaxSourceLidar]

The index is the handle

Definition at line 446 of file lds.h.

volatile bool livox_ros::Lds::request_exit_
private

Definition at line 454 of file lds.h.

Semaphore livox_ros::Lds::semaphore_

Definition at line 447 of file lds.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