#include <ls01b.h>
|
static LS01B * | instance (std::string port, int baud_rate, double resolution) |
|
|
uint16_t | checkSum (const uint8_t *p_byte) |
|
| LS01B (std::string port, int baud_rate, double resolution=0.25) |
|
void | recvThread () |
|
Definition at line 30 of file ls01b.h.
ls::LS01B::LS01B |
( |
std::string |
port, |
|
|
int |
baud_rate, |
|
|
double |
resolution = 0.25 |
|
) |
| |
|
private |
uint16_t ls::LS01B::checkSum |
( |
const uint8_t * |
p_byte | ) |
|
|
private |
int ls::LS01B::getRate |
( |
| ) |
|
double ls::LS01B::getRPM |
( |
| ) |
|
int ls::LS01B::getScan |
( |
std::vector< ScanPoint > & |
points, |
|
|
ros::Time & |
scan_time, |
|
|
float & |
scan_duration |
|
) |
| |
获取雷达数据 poins: 雷达点的数据。类型为ScanPoint数组
Definition at line 62 of file ls01b.cpp.
int ls::LS01B::getVersion |
( |
std::string & |
version | ) |
|
获取软件版本号 version: 返回版本号
Definition at line 72 of file ls01b.cpp.
LS01B * ls::LS01B::instance |
( |
std::string |
port, |
|
|
int |
baud_rate, |
|
|
double |
resolution |
|
) |
| |
|
static |
实例化雷达 port: 串口号, baud_rate: 波特率 460800 resolution: 雷达角度分辨率1.0度 0.5度 0.25度
Definition at line 13 of file ls01b.cpp.
bool ls::LS01B::isHealth |
( |
| ) |
|
void ls::LS01B::recvThread |
( |
| ) |
|
|
private |
bool ls::LS01B::resetHealth |
( |
| ) |
|
int ls::LS01B::setMotorSpeed |
( |
int |
rpm | ) |
|
set the motor spped rpm: round per minute
Definition at line 194 of file ls01b.cpp.
int ls::LS01B::setResolution |
( |
double |
resolution | ) |
|
设置雷达数据分辨率 resolution: 分辨率
Definition at line 216 of file ls01b.cpp.
int ls::LS01B::setScanMode |
( |
bool |
is_continuous | ) |
|
set scan mode. continouse or once is_continuous:
Definition at line 120 of file ls01b.cpp.
int ls::LS01B::startScan |
( |
| ) |
|
start lidar, System work normally
Definition at line 83 of file ls01b.cpp.
int ls::LS01B::stopRecvData |
( |
| ) |
|
stop recv data from lidar
Definition at line 146 of file ls01b.cpp.
int ls::LS01B::stopScan |
( |
| ) |
|
stop lidar, System in sleep mode
Definition at line 102 of file ls01b.cpp.
int ls::LS01B::switchData |
( |
bool |
use_angle | ) |
|
switch angle or intensity in recv data use_angle: true. the angle is chosed false. the intensity is chosed
Definition at line 165 of file ls01b.cpp.
bool ls::LS01B::is_shutdown_ |
|
private |
bool ls::LS01B::is_start_ |
|
private |
boost::mutex ls::LS01B::mutex_ |
|
private |
int ls::LS01B::points_size_ |
|
private |
double ls::LS01B::real_rpm_ |
|
private |
boost::thread* ls::LS01B::recv_thread_ |
|
private |
double ls::LS01B::resolution_ |
|
private |
int ls::LS01B::scan_health_ |
|
private |
std::vector<ScanPoint> ls::LS01B::scan_points_ |
|
private |
std::vector<ScanPoint> ls::LS01B::scan_points_bak_ |
|
private |
bool ls::LS01B::use_angle_ |
|
private |
The documentation for this class was generated from the following files: