63 #include <rslidar_msgs/rslidarPacket.h> 64 #include <rslidar_msgs/rslidarScan.h> 65 #include "std_msgs/String.h" 66 #include <pcl/point_types.h> 172 void unpack(
const rslidar_msgs::rslidarPacket& pkt, pcl::PointCloud<pcl::PointXYZI>::Ptr pointcloud);
175 void unpack_RS32(
const rslidar_msgs::rslidarPacket& pkt, pcl::PointCloud<pcl::PointXYZI>::Ptr pointcloud);
178 float computeTemperature(
unsigned char bit1,
unsigned char bit2);
181 int estimateTemperature(
float Temper);
184 float pixelToDistance(
int pixelValue,
int passageway);
187 int correctAzimuth(
float azimuth_f,
int passageway);
190 float calibrateIntensity(
float inten,
int calIdx,
int distance);
191 float calibrateIntensity_old(
float inten,
int calIdx,
int distance);
194 int isABPacket(
int distance);
196 void processDifop(
const rslidar_msgs::rslidarPacket::ConstPtr& difop_msg);
204 int dis_resolution_mode = 0;
224 #endif // __RAWDATA_H
static const int RAW_SCAN_SIZE
static const float RS16_FIRING_TOFFSET
static const int RS16_SCANS_PER_FIRING
static const float DISTANCE_RESOLUTION_NEW
static const float RS32_BLOCK_TDURATION
static const int SIZE_BLOCK
static const float DISTANCE_MAX_UNITS
uint16_t header
UPPER_BANK or LOWER_BANK.
static const uint16_t ROTATION_MAX_UNITS
static const int RS32_SCANS_PER_FIRING
uint8_t data[BLOCK_DATA_SIZE]
combine rotation1 and rotation2 together to get 0-35999, divide by 100 to get degrees ...
static const int PACKET_SIZE
TFSIMD_FORCE_INLINE tfScalar distance(const Vector3 &v) const
static const float DISTANCE_RESOLUTION
static const int RS16_FIRINGS_PER_BLOCK
float aIntensityCal_old[1600][32]
struct rslidar_rawdata::raw_block raw_block_t
Raw rslidar data block.
static const int PACKET_STATUS_SIZE
ros::Subscriber difop_sub_
float aIntensityCal[7][32]
static const int BLOCKS_PER_PACKET
static const float ROTATION_RESOLUTION
static const int BLOCK_DATA_SIZE
static const float RS16_BLOCK_TDURATION
static const float DISTANCE_MIN
static const float DISTANCE_MAX
static const uint16_t UPPER_BANK
static const float RS16_DSR_TOFFSET
static const int SCANS_PER_PACKET
static const int TEMPERATURE_MIN
static const uint16_t LOWER_BANK
static const float RS32_DSR_TOFFSET
struct rslidar_rawdata::raw_packet raw_packet_t
Raw Rsldar packet.
static const float RL32_FIRING_TOFFSET
static const int RS32_FIRINGS_PER_BLOCK
static const int SCANS_PER_BLOCK
RSLIDAR data conversion class.