Classes | Typedefs | Variables
rslidar_rawdata Namespace Reference

Classes

struct  raw_block
 Raw rslidar data block. More...
 
struct  raw_packet
 Raw Rsldar packet. More...
 
class  RawData
 RSLIDAR data conversion class. More...
 
union  two_bytes
 

Typedefs

typedef struct rslidar_rawdata::raw_block raw_block_t
 Raw rslidar data block. More...
 
typedef struct rslidar_rawdata::raw_packet raw_packet_t
 Raw Rsldar packet. More...
 

Variables

float aIntensityCal [7][32]
 
float aIntensityCal_old [1600][32]
 
static const int BLOCK_DATA_SIZE = (SCANS_PER_BLOCK * RAW_SCAN_SIZE)
 
static const int BLOCKS_PER_PACKET = 12
 
bool Curvesis_new = true
 
float CurvesRate [32]
 
static const float DISTANCE_MAX = 200.0f
 
static const float DISTANCE_MAX_UNITS = (DISTANCE_MAX / DISTANCE_RESOLUTION + 1.0f)
 
static const float DISTANCE_MIN = 0.2f
 
static const float DISTANCE_RESOLUTION = 0.01f
 
static const float DISTANCE_RESOLUTION_NEW = 0.005f
 
int g_ChannelNum [32][51]
 
float HORI_ANGLE [32]
 
static const uint16_t LOWER_BANK = 0xddff
 
int numOfLasers = 16
 
static const int PACKET_SIZE = 1248
 
static const int PACKET_STATUS_SIZE = 4
 
static const int RAW_SCAN_SIZE = 3
 
static const float RL32_FIRING_TOFFSET = 50.0f
 
static const uint16_t ROTATION_MAX_UNITS = 36000
 
static const float ROTATION_RESOLUTION = 0.01f
 
static const float RS16_BLOCK_TDURATION = 100.0f
 
static const float RS16_DSR_TOFFSET = 3.0f
 
static const float RS16_FIRING_TOFFSET = 50.0f
 
static const int RS16_FIRINGS_PER_BLOCK = 2
 
static const int RS16_SCANS_PER_FIRING = 16
 
static const float RS32_BLOCK_TDURATION = 50.0f
 
static const float RS32_DSR_TOFFSET = 3.0f
 
static const int RS32_FIRINGS_PER_BLOCK = 1
 
static const int RS32_SCANS_PER_FIRING = 32
 
static const int SCANS_PER_BLOCK = 32
 
static const int SCANS_PER_PACKET = (SCANS_PER_BLOCK * BLOCKS_PER_PACKET)
 
static const int SIZE_BLOCK = 100
 
float temper = 31.0
 
static const int TEMPERATURE_MIN = 31
 
int TEMPERATURE_RANGE = 40
 
int tempPacketNum = 0
 
static const uint16_t UPPER_BANK = 0xeeff
 
float VERT_ANGLE [32]
 

Typedef Documentation

Raw rslidar data block.

Each block contains data from either the upper or lower laser bank. The device returns three times as many upper bank blocks.

use stdint.h types, so things work with both 64 and 32-bit machines

Raw Rsldar packet.

revolution is described in the device manual as incrementing (mod 65536) for each physical turn of the device. Our device seems to alternate between two different values every third packet. One value increases, the other decreases.

Todo:
figure out if revolution is only present for one of the two types of status fields

status has either a temperature encoding or the microcode level

Variable Documentation

float rslidar_rawdata::aIntensityCal[7][32]

Definition at line 211 of file rawdata.h.

float rslidar_rawdata::aIntensityCal_old[1600][32]

Definition at line 212 of file rawdata.h.

const int rslidar_rawdata::BLOCK_DATA_SIZE = (SCANS_PER_BLOCK * RAW_SCAN_SIZE)
static

Definition at line 77 of file rawdata.h.

const int rslidar_rawdata::BLOCKS_PER_PACKET = 12
static

Definition at line 135 of file rawdata.h.

bool rslidar_rawdata::Curvesis_new = true

Definition at line 213 of file rawdata.h.

float rslidar_rawdata::CurvesRate[32]

Definition at line 215 of file rawdata.h.

const float rslidar_rawdata::DISTANCE_MAX = 200.0f
static

meters

Definition at line 82 of file rawdata.h.

const float rslidar_rawdata::DISTANCE_MAX_UNITS = (DISTANCE_MAX / DISTANCE_RESOLUTION + 1.0f)
static

Definition at line 86 of file rawdata.h.

const float rslidar_rawdata::DISTANCE_MIN = 0.2f
static

meters

Definition at line 83 of file rawdata.h.

const float rslidar_rawdata::DISTANCE_RESOLUTION = 0.01f
static

meters

Definition at line 84 of file rawdata.h.

const float rslidar_rawdata::DISTANCE_RESOLUTION_NEW = 0.005f
static

meters

Definition at line 85 of file rawdata.h.

int rslidar_rawdata::g_ChannelNum[32][51]

Definition at line 214 of file rawdata.h.

float rslidar_rawdata::HORI_ANGLE[32]

Definition at line 210 of file rawdata.h.

const uint16_t rslidar_rawdata::LOWER_BANK = 0xddff
static

Definition at line 89 of file rawdata.h.

int rslidar_rawdata::numOfLasers = 16

Definition at line 219 of file rawdata.h.

const int rslidar_rawdata::PACKET_SIZE = 1248
static

Definition at line 134 of file rawdata.h.

const int rslidar_rawdata::PACKET_STATUS_SIZE = 4
static

Definition at line 136 of file rawdata.h.

const int rslidar_rawdata::RAW_SCAN_SIZE = 3
static

Definition at line 75 of file rawdata.h.

const float rslidar_rawdata::RL32_FIRING_TOFFSET = 50.0f
static

Definition at line 103 of file rawdata.h.

const uint16_t rslidar_rawdata::ROTATION_MAX_UNITS = 36000
static

hundredths of degrees

Definition at line 80 of file rawdata.h.

const float rslidar_rawdata::ROTATION_RESOLUTION = 0.01f
static

degrees 旋转角分辨率

Definition at line 79 of file rawdata.h.

const float rslidar_rawdata::RS16_BLOCK_TDURATION = 100.0f
static

Definition at line 94 of file rawdata.h.

const float rslidar_rawdata::RS16_DSR_TOFFSET = 3.0f
static

Definition at line 95 of file rawdata.h.

const float rslidar_rawdata::RS16_FIRING_TOFFSET = 50.0f
static

Definition at line 96 of file rawdata.h.

const int rslidar_rawdata::RS16_FIRINGS_PER_BLOCK = 2
static

Special Defines for RS16 support

Definition at line 92 of file rawdata.h.

const int rslidar_rawdata::RS16_SCANS_PER_FIRING = 16
static

Definition at line 93 of file rawdata.h.

const float rslidar_rawdata::RS32_BLOCK_TDURATION = 50.0f
static

Definition at line 101 of file rawdata.h.

const float rslidar_rawdata::RS32_DSR_TOFFSET = 3.0f
static

Definition at line 102 of file rawdata.h.

const int rslidar_rawdata::RS32_FIRINGS_PER_BLOCK = 1
static

Special Defines for RS32 support

Definition at line 99 of file rawdata.h.

const int rslidar_rawdata::RS32_SCANS_PER_FIRING = 32
static

Definition at line 100 of file rawdata.h.

const int rslidar_rawdata::SCANS_PER_BLOCK = 32
static

Definition at line 76 of file rawdata.h.

const int rslidar_rawdata::SCANS_PER_PACKET = (SCANS_PER_BLOCK * BLOCKS_PER_PACKET)
static

Definition at line 137 of file rawdata.h.

const int rslidar_rawdata::SIZE_BLOCK = 100
static

Definition at line 74 of file rawdata.h.

float rslidar_rawdata::temper = 31.0

Definition at line 217 of file rawdata.h.

const int rslidar_rawdata::TEMPERATURE_MIN = 31
static

Definition at line 105 of file rawdata.h.

int rslidar_rawdata::TEMPERATURE_RANGE = 40

Definition at line 220 of file rawdata.h.

int rslidar_rawdata::tempPacketNum = 0

Definition at line 218 of file rawdata.h.

const uint16_t rslidar_rawdata::UPPER_BANK = 0xeeff
static
Todo:
make this work for both big and little-endian machines

Definition at line 88 of file rawdata.h.

float rslidar_rawdata::VERT_ANGLE[32]

Definition at line 209 of file rawdata.h.



rslidar_pointcloud
Author(s): Tony Zhang , Tony Zhang, George Wang, Piyush Khandelwal, Jesse Vera
autogenerated on Mon Jun 10 2019 14:41:10