Robotics Library  0.7.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rl::hal::SchunkFpsF5 Class Reference

Schunk FPS-F5 flexible position sensor. More...

#include <SchunkFpsF5.h>

Inheritance diagram for rl::hal::SchunkFpsF5:
Inheritance graph
[legend]

Public Member Functions

 SchunkFpsF5 (const ::std::string &device="/dev/ttyS0")
 
virtual ~SchunkFpsF5 ()
 
void close ()
 
::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
 
::rl::math::Real getTemperature () const
 
::rl::math::Real getVoltage () const
 
bool isA () const
 
bool isArea () const
 
bool isB () const
 
bool isC () const
 
bool isClosed () const
 
bool isOpened () const
 
bool isReCalc () const
 
bool isRecord () const
 
bool isUpdate () const
 
void open ()
 
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::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)
 

Private Attributes

bool a
 
bool area
 
bool b
 
bool c
 
bool closed
 
::std::set< ::std::pair< ::rl::math::Real, ::rl::math::Real > > fulcrums
 
::rl::math::Real interpolated
 
bool opened
 
bool reCalc
 
bool record
 
Serial serial
 
::rl::math::Real temperature
 
bool update
 
::rl::math::Real value
 
::rl::math::Real voltage
 

Additional Inherited Members

- Protected Member Functions inherited from rl::hal::Device
void setConnected (const bool &connected)
 
void setRunning (const bool &running)
 

Detailed Description

Schunk FPS-F5 flexible position sensor.

Constructor & Destructor Documentation

◆ SchunkFpsF5()

rl::hal::SchunkFpsF5::SchunkFpsF5 ( const ::std::string &  device = "/dev/ttyS0")

◆ ~SchunkFpsF5()

rl::hal::SchunkFpsF5::~SchunkFpsF5 ( )
virtual

Member Function Documentation

◆ close()

void rl::hal::SchunkFpsF5::close ( )
virtual
Precondition
stop()

Implements rl::hal::Device.

◆ crc()

std::uint16_t rl::hal::SchunkFpsF5::crc ( const ::std::uint8_t *  buf,
const ::std::size_t &  len 
) const
private

◆ getDistances()

rl::math::Vector rl::hal::SchunkFpsF5::getDistances ( ) const
virtual
Parameters
[out]distances[m]

Implements rl::hal::RangeSensor.

◆ getDistancesCount()

std::size_t rl::hal::SchunkFpsF5::getDistancesCount ( ) const
virtual

Implements rl::hal::RangeSensor.

◆ getDistancesMaximum()

rl::math::Real rl::hal::SchunkFpsF5::getDistancesMaximum ( const ::std::size_t &  i) const
virtual
Returns
[m]

Implements rl::hal::RangeSensor.

◆ getDistancesMinimum()

rl::math::Real rl::hal::SchunkFpsF5::getDistancesMinimum ( const ::std::size_t &  i) const
virtual
Returns
[m]

Implements rl::hal::RangeSensor.

◆ getTemperature()

rl::math::Real rl::hal::SchunkFpsF5::getTemperature ( ) const

◆ getVoltage()

rl::math::Real rl::hal::SchunkFpsF5::getVoltage ( ) const

◆ isA()

bool rl::hal::SchunkFpsF5::isA ( ) const

◆ isArea()

bool rl::hal::SchunkFpsF5::isArea ( ) const

◆ isB()

bool rl::hal::SchunkFpsF5::isB ( ) const

◆ isC()

bool rl::hal::SchunkFpsF5::isC ( ) const

◆ isClosed()

bool rl::hal::SchunkFpsF5::isClosed ( ) const

◆ isOpened()

bool rl::hal::SchunkFpsF5::isOpened ( ) const

◆ isReCalc()

bool rl::hal::SchunkFpsF5::isReCalc ( ) const

◆ isRecord()

bool rl::hal::SchunkFpsF5::isRecord ( ) const

◆ isUpdate()

bool rl::hal::SchunkFpsF5::isUpdate ( ) const

◆ open()

void rl::hal::SchunkFpsF5::open ( )
virtual

Implements rl::hal::Device.

◆ recv()

std::size_t rl::hal::SchunkFpsF5::recv ( ::std::uint8_t *  buf,
const ::std::size_t &  len,
const ::std::uint8_t &  command 
)
private

◆ send()

void rl::hal::SchunkFpsF5::send ( ::std::uint8_t *  buf,
const ::std::size_t &  len 
)
private

◆ start()

void rl::hal::SchunkFpsF5::start ( )
virtual
Precondition
open()

Implements rl::hal::Device.

◆ step()

void rl::hal::SchunkFpsF5::step ( )
virtual
Precondition
start()

Implements rl::hal::CyclicDevice.

◆ stop()

void rl::hal::SchunkFpsF5::stop ( )
virtual
Precondition
open()

Implements rl::hal::Device.

Member Data Documentation

◆ a

bool rl::hal::SchunkFpsF5::a
private

◆ area

bool rl::hal::SchunkFpsF5::area
private

◆ b

bool rl::hal::SchunkFpsF5::b
private

◆ c

bool rl::hal::SchunkFpsF5::c
private

◆ closed

bool rl::hal::SchunkFpsF5::closed
private

◆ fulcrums

::std::set< ::std::pair< ::rl::math::Real, ::rl::math::Real> > rl::hal::SchunkFpsF5::fulcrums
private

◆ interpolated

::rl::math::Real rl::hal::SchunkFpsF5::interpolated
private

◆ opened

bool rl::hal::SchunkFpsF5::opened
private

◆ reCalc

bool rl::hal::SchunkFpsF5::reCalc
private

◆ record

bool rl::hal::SchunkFpsF5::record
private

◆ serial

Serial rl::hal::SchunkFpsF5::serial
private

◆ temperature

::rl::math::Real rl::hal::SchunkFpsF5::temperature
private

◆ update

bool rl::hal::SchunkFpsF5::update
private

◆ value

::rl::math::Real rl::hal::SchunkFpsF5::value
private

◆ voltage

::rl::math::Real rl::hal::SchunkFpsF5::voltage
private

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