11 #include <boost/date_time/posix_time/posix_time.hpp> 12 #include <boost/thread.hpp> 40 static LS01B*
instance(std::string port,
int baud_rate,
double resolution);
56 int getScan(std::vector<ScanPoint> &points,
ros::Time &scan_time,
float &scan_duration);
110 LS01B(std::string port,
int baud_rate,
double resolution = 0.25);
114 uint16_t
checkSum(
const uint8_t *p_byte);
uint16_t checkSum(const uint8_t *p_byte)
static LS01B * instance(std::string port, int baud_rate, double resolution)
int setMotorSpeed(int rpm)
LS01B(std::string port, int baud_rate, double resolution=0.25)
int switchData(bool use_angle)
int getScan(std::vector< ScanPoint > &points, ros::Time &scan_time, float &scan_duration)
int getVersion(std::string &version)
boost::thread * recv_thread_
int setScanMode(bool is_continuous)
std::vector< ScanPoint > scan_points_
int setResolution(double resolution)
std::vector< ScanPoint > scan_points_bak_