Go to the documentation of this file.
36 #include <boost/asio.hpp>
37 #include <boost/array.hpp>
51 LFCDLaser(
const std::string& port, uint32_t baud_rate, boost::asio::io_service& io);
73 boost::asio::serial_port
serial_;
bool shutting_down_
Flag for whether the driver is supposed to be shutting down or not.
void poll()
Poll the laser to get a new scan. Blocks until a complete new scan is received or close is called.
uint32_t baud_rate_
The baud rate for the serial connection.
uint16_t rpms
RPMS derived from the rpm bytes in an LFCD packet.
LFCDLaser(const std::string &port, uint32_t baud_rate, boost::asio::io_service &io)
Constructs a new LFCDLaser attached to the given serial port.
uint16_t motor_speed_
current motor speed as reported by the LFCD.
~LFCDLaser()
Default destructor.
boost::asio::serial_port serial_
Actual serial port object for reading/writing to the LFCD Laser Scanner.
std::string port_
The serial port the driver is attached to.
void close()
Close the driver down and prevent the polling loop from advancing.
hls-lfcd-lds-driver
Author(s): Pyo
, Darby Lim , Gilbert , Will Son , JH Yang, SP Kong
autogenerated on Wed Mar 2 2022 00:21:20