iCub-main
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
xdPort Class Reference

#include <utils.h>

+ Inheritance diagram for xdPort:

Public Member Functions

 xdPort (void *_slv)
 
 ~xdPort ()
 
void init (const Vector &xd0)
 
void lock ()
 
void unlock ()
 
bool islocked () const
 
int get_rx () const
 
bool & get_new ()
 
bool & get_newDelayed ()
 
bool set_xd (const Vector &_xd)
 
Vector get_xd ()
 
Vector get_xdDelayed ()
 

Protected Member Functions

void onRead (Bottle &b) override
 
void run () override
 

Protected Attributes

void * slv
 
mutex mutex_0
 
mutex mutex_1
 
mutex mtx_triggerNeck
 
condition_variable cv_triggerNeck
 
Vector xd
 
Vector xdDelayed
 
bool isNew
 
bool isNewDelayed
 
bool locked
 
bool closing
 
int rx
 

Detailed Description

Definition at line 54 of file utils.h.

Constructor & Destructor Documentation

◆ xdPort()

xdPort::xdPort ( void *  _slv)
explicit

Definition at line 36 of file utils.cpp.

◆ ~xdPort()

xdPort::~xdPort ( )

Definition at line 56 of file utils.cpp.

Member Function Documentation

◆ get_new()

bool& xdPort::get_new ( )
inline

Definition at line 84 of file utils.h.

◆ get_newDelayed()

bool& xdPort::get_newDelayed ( )
inline

Definition at line 85 of file utils.h.

◆ get_rx()

int xdPort::get_rx ( ) const
inline

Definition at line 83 of file utils.h.

◆ get_xd()

Vector xdPort::get_xd ( )

Definition at line 98 of file utils.cpp.

◆ get_xdDelayed()

Vector xdPort::get_xdDelayed ( )

Definition at line 107 of file utils.cpp.

◆ init()

void xdPort::init ( const Vector &  xd0)

Definition at line 49 of file utils.cpp.

◆ islocked()

bool xdPort::islocked ( ) const
inline

Definition at line 82 of file utils.h.

◆ lock()

void xdPort::lock ( )
inline

Definition at line 80 of file utils.h.

◆ onRead()

void xdPort::onRead ( Bottle &  b)
overrideprotected

Definition at line 65 of file utils.cpp.

◆ run()

void xdPort::run ( void  )
overrideprotected

Definition at line 116 of file utils.cpp.

◆ set_xd()

bool xdPort::set_xd ( const Vector &  _xd)

Definition at line 83 of file utils.cpp.

◆ unlock()

void xdPort::unlock ( )
inline

Definition at line 81 of file utils.h.

Member Data Documentation

◆ closing

bool xdPort::closing
protected

Definition at line 69 of file utils.h.

◆ cv_triggerNeck

condition_variable xdPort::cv_triggerNeck
protected

Definition at line 63 of file utils.h.

◆ isNew

bool xdPort::isNew
protected

Definition at line 66 of file utils.h.

◆ isNewDelayed

bool xdPort::isNewDelayed
protected

Definition at line 67 of file utils.h.

◆ locked

bool xdPort::locked
protected

Definition at line 68 of file utils.h.

◆ mtx_triggerNeck

mutex xdPort::mtx_triggerNeck
protected

Definition at line 62 of file utils.h.

◆ mutex_0

mutex xdPort::mutex_0
protected

Definition at line 60 of file utils.h.

◆ mutex_1

mutex xdPort::mutex_1
protected

Definition at line 61 of file utils.h.

◆ rx

int xdPort::rx
protected

Definition at line 70 of file utils.h.

◆ slv

void* xdPort::slv
protected

Definition at line 58 of file utils.h.

◆ xd

Vector xdPort::xd
protected

Definition at line 64 of file utils.h.

◆ xdDelayed

Vector xdPort::xdDelayed
protected

Definition at line 65 of file utils.h.


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