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

JR3 force-torque sensor. More...

#include <Jr3.h>

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

Public Member Functions

 Jr3 (const ::std::string &filename="/dev/comedi0", const ::std::chrono::nanoseconds &updateRate=::std::chrono::milliseconds(1))
 
virtual ~Jr3 ()
 
void bias ()
 
void close ()
 
::rl::math::Vector getForces () const
 
::rl::math::Real getForcesMaximum (const ::std::size_t &i) const
 
::rl::math::Real getForcesMinimum (const ::std::size_t &i) const
 
::rl::math::Vector getForcesTorques () const
 
::rl::math::Real getForcesTorquesMaximum (const ::std::size_t &i) const
 
::rl::math::Real getForcesTorquesMinimum (const ::std::size_t &i) const
 
::rl::math::Vector getTorques () const
 
::rl::math::Real getTorquesMaximum (const ::std::size_t &i) const
 
::rl::math::Real getTorquesMinimum (const ::std::size_t &i) const
 
void open ()
 
void resetBias ()
 
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::SixAxisForceTorqueSensor
 SixAxisForceTorqueSensor ()
 
virtual ~SixAxisForceTorqueSensor ()
 
::std::size_t getForcesCount () const
 
::rl::math::Real getForcesMaximum (const ::std::size_t &i) const
 
::rl::math::Real getForcesMinimum (const ::std::size_t &i) const
 
::std::size_t getTorquesCount () const
 
::rl::math::Real getTorquesMaximum (const ::std::size_t &i) const
 
::rl::math::Real getTorquesMinimum (const ::std::size_t &i) const
 
- Public Member Functions inherited from rl::hal::ForceSensor
 ForceSensor ()
 
virtual ~ForceSensor ()
 
- Public Member Functions inherited from rl::hal::TorqueSensor
 TorqueSensor ()
 
virtual ~TorqueSensor ()
 

Private Attributes

Comedi comedi
 
float values [6]
 
float zeroes [6]
 

Additional Inherited Members

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

Detailed Description

JR3 force-torque sensor.

Constructor & Destructor Documentation

◆ Jr3()

rl::hal::Jr3::Jr3 ( const ::std::string &  filename = "/dev/comedi0",
const ::std::chrono::nanoseconds &  updateRate = ::std::chrono::milliseconds(1) 
)

◆ ~Jr3()

rl::hal::Jr3::~Jr3 ( )
virtual

Member Function Documentation

◆ bias()

void rl::hal::Jr3::bias ( )

◆ close()

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

Implements rl::hal::Device.

◆ getForces()

rl::math::Vector rl::hal::Jr3::getForces ( ) const
virtual
Parameters
[out]forces[N]

Implements rl::hal::ForceSensor.

◆ getForcesMaximum()

rl::math::Real rl::hal::Jr3::getForcesMaximum ( const ::std::size_t &  i) const
virtual
Returns
[N]

Implements rl::hal::ForceSensor.

◆ getForcesMinimum()

rl::math::Real rl::hal::Jr3::getForcesMinimum ( const ::std::size_t &  i) const
virtual
Returns
[N]

Implements rl::hal::ForceSensor.

◆ getForcesTorques()

rl::math::Vector rl::hal::Jr3::getForcesTorques ( ) const
virtual
Parameters
[in]forcesTorques[N],[N],[N],[Nm],[Nm],[Nm]

Implements rl::hal::SixAxisForceTorqueSensor.

◆ getForcesTorquesMaximum()

rl::math::Real rl::hal::Jr3::getForcesTorquesMaximum ( const ::std::size_t &  i) const
virtual
Returns
[N],[N],[N],[Nm],[Nm],[Nm]

Implements rl::hal::SixAxisForceTorqueSensor.

◆ getForcesTorquesMinimum()

rl::math::Real rl::hal::Jr3::getForcesTorquesMinimum ( const ::std::size_t &  i) const
virtual
Returns
[N],[N],[N],[Nm],[Nm],[Nm]

Implements rl::hal::SixAxisForceTorqueSensor.

◆ getTorques()

rl::math::Vector rl::hal::Jr3::getTorques ( ) const
virtual
Parameters
[out]torques[Nm]

Implements rl::hal::TorqueSensor.

◆ getTorquesMaximum()

rl::math::Real rl::hal::Jr3::getTorquesMaximum ( const ::std::size_t &  i) const
virtual
Returns
[Nm]

Implements rl::hal::TorqueSensor.

◆ getTorquesMinimum()

rl::math::Real rl::hal::Jr3::getTorquesMinimum ( const ::std::size_t &  i) const
virtual
Returns
[Nm]

Implements rl::hal::TorqueSensor.

◆ open()

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

Implements rl::hal::Device.

◆ resetBias()

void rl::hal::Jr3::resetBias ( )

◆ start()

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

Implements rl::hal::Device.

◆ step()

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

Implements rl::hal::CyclicDevice.

◆ stop()

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

Implements rl::hal::Device.

Member Data Documentation

◆ comedi

Comedi rl::hal::Jr3::comedi
private

◆ values

float rl::hal::Jr3::values[6]
private

◆ zeroes

float rl::hal::Jr3::zeroes[6]
private

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