|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_HAL_LEUZERS4_H
28 #define RL_HAL_LEUZERS4_H
72 const ::std::string& device =
"/dev/ttyS0",
74 const ::std::string&
password =
"ROD4LE"
104 void setOutputParameters(const ::std::uint16_t&
startIndex, const ::std::uint16_t&
stopIndex, const ::std::uint16_t&
step, const ::std::uint16_t&
type);
116 ::std::uint8_t
crc(const ::std::uint8_t* buf, const ::std::size_t& len)
const;
118 const ::std::uint8_t&
get(const ::std::uint8_t*& ptr)
const;
120 ::std::size_t
recv(uint8_t* buf, const ::std::size_t& len);
122 void send(uint8_t* buf, const ::std::size_t& len);
124 void set(const ::std::uint8_t& value, ::std::uint8_t*& ptr, ::std::size_t& len)
const;
128 ::std::array< ::std::uint8_t, 1099>
data;
157 #endif // RL_HAL_LEUZERS4_H
void send(uint8_t *buf, const ::std::size_t &len)
Definition: LeuzeRs4.cpp:494
bool far1
Definition: LeuzeRs4.h:132
::std::string password
Definition: LeuzeRs4.h:142
::std::uint16_t stepSize
Definition: LeuzeRs4.h:148
LeuzeRs4(const ::std::string &device="/dev/ttyS0", const BaudRate &baudRate=BAUDRATE_57600BPS, const ::std::string &password="ROD4LE")
Definition: LeuzeRs4.cpp:40
virtual ~LeuzeRs4()
Definition: LeuzeRs4.cpp:72
::std::array< ::std::uint8_t, 1099 > data
Definition: LeuzeRs4.h:128
bool near1
Definition: LeuzeRs4.h:138
@ BAUDRATE_115200BPS
115,200 bps.
Definition: LeuzeRs4.h:61
void set(const ::std::uint8_t &value, ::std::uint8_t *&ptr, ::std::size_t &len) const
Definition: LeuzeRs4.cpp:528
::Eigen::Matrix< Real, ::Eigen::Dynamic, 1 > Vector
Definition: Vector.h:42
Serial serial
Definition: LeuzeRs4.h:144
void stop()
Definition: LeuzeRs4.cpp:717
@ BAUDRATE_345600BPS
345,600 bps.
Definition: LeuzeRs4.h:63
BaudRate
Definition: LeuzeRs4.h:49
void open()
Definition: LeuzeRs4.cpp:237
::rl::math::Real getStartAngle() const
Definition: LeuzeRs4.cpp:221
::std::uint16_t startIndex
Definition: LeuzeRs4.h:146
BaudRate getBaudRate() const
Definition: LeuzeRs4.cpp:132
Definition: CyclicDevice.h:39
BaudRate baudRate
Definition: LeuzeRs4.h:126
::std::uint16_t stopIndex
Definition: LeuzeRs4.h:150
@ BAUDRATE_9600BPS
9,600 bps.
Definition: LeuzeRs4.h:53
::rl::math::Real getStopAngle() const
Definition: LeuzeRs4.cpp:229
::std::size_t getDistancesCount() const
Definition: LeuzeRs4.cpp:189
void reset()
Definition: LeuzeRs4.cpp:457
@ BAUDRATE_19200BPS
19,200 bps.
Definition: LeuzeRs4.h:55
virtual ::rl::math::Vector getDistances() const =0
::std::uint8_t crc(const ::std::uint8_t *buf, const ::std::size_t &len) const
Definition: LeuzeRs4.cpp:97
Leuze RS4 safety laser scanner.
Definition: LeuzeRs4.h:46
bool fn1Fn2
Definition: LeuzeRs4.h:136
::std::uint16_t type
Definition: LeuzeRs4.h:152
BaudRate desired
Definition: LeuzeRs4.h:130
bool far2
Definition: LeuzeRs4.h:134
void step()
Definition: LeuzeRs4.cpp:694
@ BAUDRATE_57600BPS
57,600 bps.
Definition: LeuzeRs4.h:59
@ BAUDRATE_625000BPS
625,000 bps.
Definition: LeuzeRs4.h:65
::rl::math::Real getResolution() const
Definition: LeuzeRs4.cpp:213
::rl::math::Real getDistancesMaximum(const ::std::size_t &i) const
Definition: LeuzeRs4.cpp:197
double Real
Definition: Real.h:42
void start()
Definition: LeuzeRs4.cpp:688
const ::std::uint8_t & get(const ::std::uint8_t *&ptr) const
Definition: LeuzeRs4.cpp:115
void close()
Definition: LeuzeRs4.cpp:77
::rl::math::Real getDistancesMinimum(const ::std::size_t &i) const
Definition: LeuzeRs4.cpp:205
bool near2
Definition: LeuzeRs4.h:140
::std::size_t recv(uint8_t *buf, const ::std::size_t &len)
Definition: LeuzeRs4.cpp:342
@ BAUDRATE_38400BPS
38,400 bps.
Definition: LeuzeRs4.h:57
@ BAUDRATE_4800BPS
4,800 bps.
Definition: LeuzeRs4.h:51
Robotics Library.
Definition: AnalogInput.cpp:30