Robotics Library
0.7.0
|
Sick LMS 200 laser measurement system. More...
#include <SickLms200.h>
Public Types | |
enum | BaudRate { BAUDRATE_9600BPS, BAUDRATE_19200BPS, BAUDRATE_38400BPS, BAUDRATE_500000BPS } |
enum | Measuring { MEASURING_8M, MEASURING_16M, MEASURING_32M, MEASURING_80M, MEASURING_160M, MEASURING_320M } |
enum | Monitoring { MONITORING_CONTINUOUS, MONITORING_SINGLE } |
enum | Variant { VARIANT_100_25, VARIANT_100_50, VARIANT_100_100, VARIANT_180_50, VARIANT_180_100 } |
Public Member Functions | |
SickLms200 (const ::std::string &device="/dev/ttyS0", const BaudRate &baudRate=BAUDRATE_9600BPS, const Monitoring &monitoring=MONITORING_SINGLE, const Variant &variant=VARIANT_180_50, const Measuring &measuring=MEASURING_8M, const ::std::string &password="SICK_LMS") | |
virtual | ~SickLms200 () |
void | close () |
void | dumpConfiguration () |
void | dumpStatus () |
BaudRate | getBaudRate () const |
::rl::math::Vector | getDistances () const |
::std::size_t | getDistancesCount () const |
::rl::math::Real | getDistancesMaximum (const ::std::size_t &i) const |
::rl::math::Real | getDistancesMinimum (const ::std::size_t &i) const |
Measuring | getMeasuring () const |
Monitoring | getMonitoring () const |
::rl::math::Real | getResolution () const |
::rl::math::Real | getStartAngle () const |
::rl::math::Real | getStopAngle () const |
::std::string | getType () |
Variant | getVariant () const |
void | open () |
void | reset () |
void | setBaudRate (const BaudRate &baudRate) |
void | setMeasuring (const Measuring &measuring) |
void | setMonitoring (const Monitoring &monitoring) |
void | setVariant (const Variant &variant) |
void | start () |
void | step () |
void | stop () |
Public Member Functions inherited from rl::hal::CyclicDevice | |
CyclicDevice (const ::std::chrono::nanoseconds &updateRate) | |
virtual | ~CyclicDevice () |
virtual ::std::chrono::nanoseconds | getUpdateRate () const |
Public Member Functions inherited from rl::hal::Device | |
Device () | |
virtual | ~Device () |
bool | isConnected () const |
bool | isRunning () const |
Public Member Functions inherited from rl::hal::Lidar | |
Lidar () | |
virtual | ~Lidar () |
Public Member Functions inherited from rl::hal::RangeSensor | |
RangeSensor () | |
virtual | ~RangeSensor () |
Private Member Functions | |
::std::uint16_t | crc (const ::std::uint8_t *buf, const ::std::size_t &len) const |
::std::size_t | recv (::std::uint8_t *buf, const ::std::size_t &len, const ::std::uint8_t &command) |
void | send (::std::uint8_t *buf, const ::std::size_t &len) |
bool | waitAck () |
Private Attributes | |
BaudRate | baudRate |
::std::uint8_t | configuration |
::std::array< ::std::uint8_t, 812 > | data |
BaudRate | desired |
Measuring | measuring |
Monitoring | monitoring |
::std::string | password |
Serial | serial |
Variant | variant |
Additional Inherited Members | |
Protected Member Functions inherited from rl::hal::Device | |
void | setConnected (const bool &connected) |
void | setRunning (const bool &running) |
Sick LMS 200 laser measurement system.
rl::hal::SickLms200::SickLms200 | ( | const ::std::string & | device = "/dev/ttyS0" , |
const BaudRate & | baudRate = BAUDRATE_9600BPS , |
||
const Monitoring & | monitoring = MONITORING_SINGLE , |
||
const Variant & | variant = VARIANT_180_50 , |
||
const Measuring & | measuring = MEASURING_8M , |
||
const ::std::string & | password = "SICK_LMS" |
||
) |
[in] | password | String with 8 characters comprising "0...9", "a...z", "A...Z", and "_". |
|
virtual |
|
virtual |
Implements rl::hal::Device.
|
private |
void rl::hal::SickLms200::dumpConfiguration | ( | ) |
void rl::hal::SickLms200::dumpStatus | ( | ) |
SickLms200::BaudRate rl::hal::SickLms200::getBaudRate | ( | ) | const |
|
virtual |
[out] | distances | [m] |
Implements rl::hal::RangeSensor.
|
virtual |
Implements rl::hal::RangeSensor.
|
virtual |
Implements rl::hal::RangeSensor.
|
virtual |
Implements rl::hal::RangeSensor.
SickLms200::Measuring rl::hal::SickLms200::getMeasuring | ( | ) | const |
SickLms200::Monitoring rl::hal::SickLms200::getMonitoring | ( | ) | const |
|
virtual |
Implements rl::hal::Lidar.
|
virtual |
Implements rl::hal::Lidar.
|
virtual |
Implements rl::hal::Lidar.
std::string rl::hal::SickLms200::getType | ( | ) |
SickLms200::Variant rl::hal::SickLms200::getVariant | ( | ) | const |
|
virtual |
Implements rl::hal::Device.
|
private |
void rl::hal::SickLms200::reset | ( | ) |
|
private |
void rl::hal::SickLms200::setBaudRate | ( | const BaudRate & | baudRate | ) |
void rl::hal::SickLms200::setMeasuring | ( | const Measuring & | measuring | ) |
void rl::hal::SickLms200::setMonitoring | ( | const Monitoring & | monitoring | ) |
void rl::hal::SickLms200::setVariant | ( | const Variant & | variant | ) |
|
virtual |
Implements rl::hal::Device.
|
virtual |
Implements rl::hal::CyclicDevice.
|
virtual |
Implements rl::hal::Device.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |