Public Member Functions | Private Attributes
LMS1xx Class Reference

Class responsible for communicating with LMS1xx device. More...

#include <LMS1xx.h>

List of all members.

Public Member Functions

void connect (std::string host, int port=2111)
 Connect to LMS1xx.
void disconnect ()
 Disconnect from LMS1xx device.
void getData (scanData &data)
 Receive single scan message.
scanCfg getScanCfg () const
 Get current scan configuration. Get scan configuration :
scanOutputRange getScanOutputRange () const
 Get current output range configuration. Get output range configuration :
bool isConnected ()
 Get status of connection.
 LMS1xx ()
void login ()
 Log into LMS1xx unit. Increase privilege level, giving ability to change device configuration.
status_t queryStatus ()
 Get current status of LMS1xx device.
void saveConfig ()
 Save data permanently. Parameters are saved in the EEPROM of the LMS and will also be available after the device is switched off and on again.
void scanContinous (int start)
 Start or stop continuous data acquisition. After reception of this command device start or stop continuous data stream containing scan messages.
void setScanCfg (const scanCfg &cfg)
 Set scan configuration. Get scan configuration :
void setScanDataCfg (const scanDataCfg &cfg)
 Set scan data configuration. Set format of scan message returned by device.
void startDevice ()
 The device is returned to the measurement mode after configuration.
void startMeas ()
 Start measurements. After receiving this command LMS1xx unit starts spinning laser and measuring.
void stopMeas ()
 Stop measurements. After receiving this command LMS1xx unit stop spinning laser and measuring.
virtual ~LMS1xx ()

Private Attributes

bool connected
int sockDesc

Detailed Description

Class responsible for communicating with LMS1xx device.

Author:
Konrad Banachowicz

Definition at line 220 of file LMS1xx.h.


Constructor & Destructor Documentation

Definition at line 37 of file LMS1xx.cpp.

LMS1xx::~LMS1xx ( ) [virtual]

Definition at line 41 of file LMS1xx.cpp.


Member Function Documentation

void LMS1xx::connect ( std::string  host,
int  port = 2111 
)

Connect to LMS1xx.

Parameters:
hostLMS1xx host name or ip address.
portLMS1xx port number.

Definition at line 45 of file LMS1xx.cpp.

Disconnect from LMS1xx device.

Definition at line 63 of file LMS1xx.cpp.

void LMS1xx::getData ( scanData data)

Receive single scan message.

Parameters:
datapointer to scanData buffer structure.

Definition at line 219 of file LMS1xx.cpp.

Get current scan configuration. Get scan configuration :

  • scanning frequency.
  • scanning resolution.
  • start angle.
  • stop angle.
    Returns:
    scanCfg structure.

Definition at line 146 of file LMS1xx.cpp.

Get current output range configuration. Get output range configuration :

  • scanning resolution.
  • start angle.
  • stop angle.
    Returns:
    scanOutputRange structure.

Definition at line 190 of file LMS1xx.cpp.

Get status of connection.

Returns:
connected or not.

Definition at line 70 of file LMS1xx.cpp.

void LMS1xx::login ( )

Log into LMS1xx unit. Increase privilege level, giving ability to change device configuration.

Definition at line 118 of file LMS1xx.cpp.

Get current status of LMS1xx device.

Returns:
status of LMS1xx device.

Definition at line 100 of file LMS1xx.cpp.

Save data permanently. Parameters are saved in the EEPROM of the LMS and will also be available after the device is switched off and on again.

Definition at line 378 of file LMS1xx.cpp.

void LMS1xx::scanContinous ( int  start)

Start or stop continuous data acquisition. After reception of this command device start or stop continuous data stream containing scan messages.

Parameters:
start1 : start 0 : stop

Definition at line 204 of file LMS1xx.cpp.

void LMS1xx::setScanCfg ( const scanCfg cfg)

Set scan configuration. Get scan configuration :

  • scanning frequency.
  • scanning resolution.
  • start angle.
  • stop angle.
    Parameters:
    cfgstructure containing scan configuration.

Definition at line 164 of file LMS1xx.cpp.

void LMS1xx::setScanDataCfg ( const scanDataCfg cfg)

Set scan data configuration. Set format of scan message returned by device.

Parameters:
cfgstructure containing scan data configuration.

Definition at line 177 of file LMS1xx.cpp.

The device is returned to the measurement mode after configuration.

Definition at line 392 of file LMS1xx.cpp.

Start measurements. After receiving this command LMS1xx unit starts spinning laser and measuring.

Definition at line 74 of file LMS1xx.cpp.

void LMS1xx::stopMeas ( )

Stop measurements. After receiving this command LMS1xx unit stop spinning laser and measuring.

Definition at line 87 of file LMS1xx.cpp.


Member Data Documentation

bool LMS1xx::connected [private]

Definition at line 334 of file LMS1xx.h.

int LMS1xx::sockDesc [private]

Definition at line 336 of file LMS1xx.h.


The documentation for this class was generated from the following files:


lms1xx
Author(s): Konrad Banachowicz
autogenerated on Sun Sep 6 2015 10:54:42