Robotics Library
0.7.0
|
Leuze RS4 safety laser scanner. More...
#include <LeuzeRs4.h>
Public Types | |
enum | BaudRate { BAUDRATE_4800BPS, BAUDRATE_9600BPS, BAUDRATE_19200BPS, BAUDRATE_38400BPS, BAUDRATE_57600BPS, BAUDRATE_115200BPS, BAUDRATE_345600BPS, BAUDRATE_625000BPS } |
Public Member Functions | |
LeuzeRs4 (const ::std::string &device="/dev/ttyS0", const BaudRate &baudRate=BAUDRATE_57600BPS, const ::std::string &password="ROD4LE") | |
virtual | ~LeuzeRs4 () |
void | close () |
BaudRate | getBaudRate () const |
void | getDistances (::rl::math::Vector &distances) 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 |
::rl::math::Real | getResolution () const |
::rl::math::Real | getStartAngle () const |
::rl::math::Real | getStopAngle () const |
void | open () |
void | reset () |
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 () |
virtual ::rl::math::Vector | getDistances () const =0 |
Private Member Functions | |
::std::uint8_t | crc (const ::std::uint8_t *buf, const ::std::size_t &len) const |
const ::std::uint8_t & | get (const ::std::uint8_t *&ptr) const |
::std::size_t | recv (uint8_t *buf, const ::std::size_t &len) |
void | send (uint8_t *buf, const ::std::size_t &len) |
void | set (const ::std::uint8_t &value, ::std::uint8_t *&ptr, ::std::size_t &len) const |
Private Attributes | |
BaudRate | baudRate |
::std::array< ::std::uint8_t, 1099 > | data |
BaudRate | desired |
bool | far1 |
bool | far2 |
bool | fn1Fn2 |
bool | near1 |
bool | near2 |
::std::string | password |
Serial | serial |
::std::uint16_t | startIndex |
::std::uint16_t | stepSize |
::std::uint16_t | stopIndex |
::std::uint16_t | type |
Additional Inherited Members | |
Protected Member Functions inherited from rl::hal::Device | |
void | setConnected (const bool &connected) |
void | setRunning (const bool &running) |
Leuze RS4 safety laser scanner.
rl::hal::LeuzeRs4::LeuzeRs4 | ( | const ::std::string & | device = "/dev/ttyS0" , |
const BaudRate & | baudRate = BAUDRATE_57600BPS , |
||
const ::std::string & | password = "ROD4LE" |
||
) |
[in] | password | String with 8 characters. |
|
virtual |
|
virtual |
Implements rl::hal::Device.
|
private |
|
private |
LeuzeRs4::BaudRate rl::hal::LeuzeRs4::getBaudRate | ( | ) | const |
void rl::hal::LeuzeRs4::getDistances | ( | ::rl::math::Vector & | distances | ) | const |
|
virtual |
Implements rl::hal::RangeSensor.
|
virtual |
Implements rl::hal::RangeSensor.
|
virtual |
Implements rl::hal::RangeSensor.
|
virtual |
Implements rl::hal::Lidar.
|
virtual |
Implements rl::hal::Lidar.
|
virtual |
Implements rl::hal::Lidar.
|
virtual |
Implements rl::hal::Device.
|
private |
void rl::hal::LeuzeRs4::reset | ( | ) |
|
private |
|
private |
|
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 |
|
private |
|
private |
|
private |
|
private |