YARP
Yet Another Robot Platform
yarp::robotinterface::Device Class Reference

#include <yarp/robotinterface/Device.h>

Classes

class  Private
 

Public Member Functions

 Device ()
 
 Device (const std::string &name, const std::string &type, const ParamList &params=ParamList(), const ActionList &actions=ActionList())
 
 Device (const Device &other)
 
Deviceoperator= (const Device &other)
 
virtual ~Device ()
 
std::string & name ()
 
std::string & type ()
 
ParamListparams ()
 
ActionListactions ()
 
const std::string & name () const
 
const std::string & type () const
 
const ParamListparams () const
 
const ActionListactions () const
 
bool hasParam (const std::string &name) const
 
std::string findParam (const std::string &name) const
 
bool open ()
 
bool close ()
 
yarp::dev::PolyDriverdriver () const
 
void registerThread (yarp::os::Thread *thread) const
 
void joinThreads () const
 
void stopThreads () const
 
bool configure (const Device &target, const ParamList &params) const
 
bool calibrate (const yarp::dev::PolyDriverDescriptor &target) const
 
bool attach (const yarp::dev::PolyDriverList &drivers) const
 
bool abort () const
 
bool detach () const
 
bool park (const yarp::dev::PolyDriverDescriptor &target) const
 
bool custom (const ParamList &params) const
 

Detailed Description

Definition at line 23 of file Device.h.

Constructor & Destructor Documentation

◆ Device() [1/3]

yarp::robotinterface::Device::Device ( )
explicit

Definition at line 204 of file Device.cpp.

◆ Device() [2/3]

yarp::robotinterface::Device::Device ( const std::string &  name,
const std::string &  type,
const ParamList params = ParamList(),
const ActionList actions = ActionList() 
)

Definition at line 210 of file Device.cpp.

◆ Device() [3/3]

yarp::robotinterface::Device::Device ( const Device other)

Definition at line 222 of file Device.cpp.

◆ ~Device()

yarp::robotinterface::Device::~Device ( )
virtual

Definition at line 249 of file Device.cpp.

Member Function Documentation

◆ abort()

bool yarp::robotinterface::Device::abort ( ) const

◆ actions() [1/2]

yarp::robotinterface::ActionList & yarp::robotinterface::Device::actions ( )

Definition at line 269 of file Device.cpp.

◆ actions() [2/2]

const yarp::robotinterface::ActionList & yarp::robotinterface::Device::actions ( ) const

Definition at line 289 of file Device.cpp.

◆ attach()

bool yarp::robotinterface::Device::attach ( const yarp::dev::PolyDriverList drivers) const

Definition at line 415 of file Device.cpp.

◆ calibrate()

bool yarp::robotinterface::Device::calibrate ( const yarp::dev::PolyDriverDescriptor target) const

Definition at line 355 of file Device.cpp.

◆ close()

bool yarp::robotinterface::Device::close ( )

Definition at line 309 of file Device.cpp.

◆ configure()

bool yarp::robotinterface::Device::configure ( const Device target,
const ParamList params 
) const

◆ custom()

bool yarp::robotinterface::Device::custom ( const ParamList params) const

◆ detach()

bool yarp::robotinterface::Device::detach ( ) const

Definition at line 452 of file Device.cpp.

◆ driver()

yarp::dev::PolyDriver * yarp::robotinterface::Device::driver ( ) const

Definition at line 335 of file Device.cpp.

◆ findParam()

std::string yarp::robotinterface::Device::findParam ( const std::string &  name) const

Definition at line 330 of file Device.cpp.

◆ hasParam()

bool yarp::robotinterface::Device::hasParam ( const std::string &  name) const

Definition at line 325 of file Device.cpp.

◆ joinThreads()

void yarp::robotinterface::Device::joinThreads ( ) const

Definition at line 345 of file Device.cpp.

◆ name() [1/2]

std::string & yarp::robotinterface::Device::name ( )

Definition at line 254 of file Device.cpp.

◆ name() [2/2]

const std::string & yarp::robotinterface::Device::name ( ) const

Definition at line 274 of file Device.cpp.

◆ open()

bool yarp::robotinterface::Device::open ( )

Definition at line 294 of file Device.cpp.

◆ operator=()

yarp::robotinterface::Device & yarp::robotinterface::Device::operator= ( const Device other)

Definition at line 232 of file Device.cpp.

◆ params() [1/2]

yarp::robotinterface::ParamList & yarp::robotinterface::Device::params ( )

Definition at line 264 of file Device.cpp.

◆ params() [2/2]

const yarp::robotinterface::ParamList & yarp::robotinterface::Device::params ( ) const

Definition at line 284 of file Device.cpp.

◆ park()

bool yarp::robotinterface::Device::park ( const yarp::dev::PolyDriverDescriptor target) const

Definition at line 488 of file Device.cpp.

◆ registerThread()

void yarp::robotinterface::Device::registerThread ( yarp::os::Thread thread) const

Definition at line 340 of file Device.cpp.

◆ stopThreads()

void yarp::robotinterface::Device::stopThreads ( ) const

Definition at line 350 of file Device.cpp.

◆ type() [1/2]

std::string & yarp::robotinterface::Device::type ( )

Definition at line 259 of file Device.cpp.

◆ type() [2/2]

const std::string & yarp::robotinterface::Device::type ( ) const

Definition at line 279 of file Device.cpp.


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