YARP
Yet Another Robot Platform

group: Lets you make a bunch of devices as a group. More...

#include <DeviceGroup/DeviceGroup.h>

+ Inheritance diagram for DeviceGroup:

Public Member Functions

 DeviceGroup ()=default
 
 DeviceGroup (const DeviceGroup &)=delete
 
 DeviceGroup (DeviceGroup &&)=delete
 
DeviceGroupoperator= (const DeviceGroup &)=delete
 
DeviceGroupoperator= (DeviceGroup &&)=delete
 
 ~DeviceGroup () override
 
bool open (yarp::os::Searchable &config) override
 Open the DeviceDriver. More...
 
bool close () override
 Close the DeviceDriver. More...
 
bool startService () override
 Initiate the service, whatever it is. More...
 
bool stopService () override
 Shut down the service, whatever it is. More...
 
bool updateService () override
 Give the service the chance to run for a while. More...
 
- Public Member Functions inherited from yarp::dev::DeviceDriver
 ~DeviceDriver () override=default
 Destructor. More...
 
template<class T >
bool view (T *&x)
 Get an interface to the device driver. More...
 
virtual DeviceDrivergetImplementation ()
 Some drivers are bureaucrats, pointing at others. More...
 
- Public Member Functions inherited from yarp::os::IConfig
virtual ~IConfig ()
 Destructor. More...
 
virtual bool configure (Searchable &config)
 Change online parameters. More...
 
- Public Member Functions inherited from yarp::dev::IService
virtual ~IService ()
 

Detailed Description

group: Lets you make a bunch of devices as a group.

Definition at line 21 of file DeviceGroup.h.

Constructor & Destructor Documentation

◆ DeviceGroup() [1/3]

DeviceGroup::DeviceGroup ( )
default

◆ DeviceGroup() [2/3]

DeviceGroup::DeviceGroup ( const DeviceGroup )
delete

◆ DeviceGroup() [3/3]

DeviceGroup::DeviceGroup ( DeviceGroup &&  )
delete

◆ ~DeviceGroup()

DeviceGroup::~DeviceGroup ( )
override

Definition at line 207 of file DeviceGroup.cpp.

Member Function Documentation

◆ close()

bool DeviceGroup::close ( )
inlineoverridevirtual

Close the DeviceDriver.

Returns
true/false on success/failure.

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 35 of file DeviceGroup.h.

◆ open()

bool DeviceGroup::open ( yarp::os::Searchable config)
overridevirtual

Open the DeviceDriver.

Parameters
configis a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device).
Returns
true/false upon success/failure

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 124 of file DeviceGroup.cpp.

◆ operator=() [1/2]

DeviceGroup& DeviceGroup::operator= ( const DeviceGroup )
delete

◆ operator=() [2/2]

DeviceGroup& DeviceGroup::operator= ( DeviceGroup &&  )
delete

◆ startService()

bool DeviceGroup::startService ( )
overridevirtual

Initiate the service, whatever it is.

The service should then run by itself, without any further interaction with its creator until stopService() is called.

Returns
true if the service started and needs no help running. If false is returned, the service expects updateService() to be called repeatedly until that function too returns false. This is useful for devices that don't want to manage their own service threads.

Reimplemented from yarp::dev::IService.

Definition at line 194 of file DeviceGroup.cpp.

◆ stopService()

bool DeviceGroup::stopService ( )
inlineoverridevirtual

Shut down the service, whatever it is.

Returns
true iff the service shut down ok.

Reimplemented from yarp::dev::IService.

Definition at line 42 of file DeviceGroup.h.

◆ updateService()

bool DeviceGroup::updateService ( )
overridevirtual

Give the service the chance to run for a while.

This is an alternative to calling startService(). It is more appropriate in a single-threaded environment.

Returns
true iff the service is willing to run some more. A return value of false means that the service would like to stop.

Reimplemented from yarp::dev::IService.

Definition at line 200 of file DeviceGroup.cpp.


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