205 void connect(std::string host,
int port = 2111);
int outputInterval
Output interval. Defines which scan is output.
uint16_t rssi1[1082]
Remission values for the first reflected pulse.
void setScanDataCfg(const scanDataCfg &cfg)
Set scan data configuration. Set format of scan message returned by device.
scanCfg getScanCfg() const
Get current scan configuration. Get scan configuration :
bool deviceName
Device name. Determines whether the device name is to be output.
int resolution
Remission resolution. Defines whether the remission values are output with 8-bit or 16bit resolution...
status_t queryStatus()
Get current status of LMS1xx device.
int dist_len2
Number of samples in dist2.
int angleResolution
Scanning resolution. 1/10000 degree.
int rssi_len1
Number of samples in rssi1.
bool remission
Remission. Defines whether remission values are output.
void login()
Log into LMS1xx unit. Increase privilege level, giving ability to change device configuration.
int scaningFrequency
Scanning frequency. 1/100 Hz.
uint16_t dist1[1082]
Radial distance for the first reflected pulse.
bool position
Position. Defines whether position values are output.
void stopMeas()
Stop measurements. After receiving this command LMS1xx unit stop spinning laser and measuring...
Structure containing single scan message.
Structure containing scan configuration.
void setScanCfg(const scanCfg &cfg)
Set scan configuration. Get scan configuration :
uint16_t rssi2[1082]
Remission values for the second reflected pulse.
int startAngle
Start angle. 1/10000 degree.
void startDevice()
The device is returned to the measurement mode after configuration.
void scanContinous(int start)
Start or stop continuous data acquisition. After reception of this command device start or stop conti...
int stopAngle
Stop angle. 1/10000 degree.
void startMeas()
Start measurements. After receiving this command LMS1xx unit starts spinning laser and measuring...
bool isConnected()
Get status of connection.
void disconnect()
Disconnect from LMS1xx device.
void connect(std::string host, int port=2111)
Connect to LMS1xx.
uint16_t dist2[1082]
Radial distance for the second reflected pulse.
struct _scanDataCfg scanDataCfg
void getData(scanData &data)
Receive single scan message.
struct _scanData scanData
void saveConfig()
Save data permanently. Parameters are saved in the EEPROM of the LMS and will also be available after...
Structure containing scan data configuration.
int encoder
Encoders channels. Defines which output channel is activated.
Class responsible for communicating with LMS1xx device.
int rssi_len2
Number of samples in rssi2.
int outputChannel
Output channels. Defines which output channel is activated.
int dist_len1
Number of samples in dist1.