YARP  2.3.70.1
Yet Another Robot Platform
yarp::dev::DeviceDriver Class Reference

Interface implemented by all device drivers. More...

#include <yarp/dev/DeviceDriver.h>

Inherits yarp::os::IConfig.

Inherited by CUDAGPU, FakeLaser, LaserFromDepth, laserHokuyo, NVIDIAGPU, RpLidar, RpLidar2, SerialServoBoard, StubDriver, yarp::dev::AnalogSensorClient, yarp::dev::AnalogWrapper, yarp::dev::BatteryClient, yarp::dev::BatteryWrapper, yarp::dev::BoschIMU, yarp::dev::ControlBoardRemapper, yarp::dev::ControlBoardWrapper, yarp::dev::DeprecatedDeviceDriver, yarp::dev::depthCameraDriver, yarp::dev::DeviceGroup, yarp::dev::DevicePipe, yarp::dev::DimaxU2C, yarp::dev::DynamixelAX12FtdiDriver, yarp::dev::FakeAnalogSensor, yarp::dev::FakeBot, yarp::dev::fakeDepthCameraDriver, yarp::dev::fakeIMU, yarp::dev::FakeMotionControl, yarp::dev::FfmpegGrabber, yarp::dev::FfmpegWriter, yarp::dev::FrameTransformClient, yarp::dev::FrameTransformServer, yarp::dev::JoypadControlClient, yarp::dev::JoypadControlServer, yarp::dev::JrkerrMotionControl, yarp::dev::KinectDeviceDriver, yarp::dev::KinectDeviceDriverClient, yarp::dev::KinectDeviceDriverServer, yarp::dev::Localization2DClient, yarp::dev::LocationsServer, yarp::dev::Map2DClient, yarp::dev::Map2DServer, yarp::dev::MEIMotionControl, yarp::dev::Navigation2DClient, yarp::dev::OpenCVGrabber, yarp::dev::OpenNI2DeviceDriverClient, yarp::dev::OpenNI2DeviceDriverServer, yarp::dev::OVRHeadset, yarp::dev::PolyDriver, yarp::dev::PortAudioDeviceDriver, yarp::dev::PumaCalibrator, yarp::dev::Rangefinder2DClient, yarp::dev::Rangefinder2DWrapper, yarp::dev::RemoteControlBoard, yarp::dev::RemoteFrameGrabber, yarp::dev::RGBDSensorClient, yarp::dev::RGBDSensorWrapper, yarp::dev::RobotDescriptionClient, yarp::dev::RobotDescriptionServer, yarp::dev::SDLJoypad, yarp::dev::SerialDeviceDriver, yarp::dev::ServerFrameGrabber, yarp::dev::ServerGrabber, yarp::dev::ServerInertial, yarp::dev::ServerKinect, yarp::dev::ServerSerial, yarp::dev::ServerSoundGrabber, yarp::dev::StageControl, yarp::dev::TestFrameGrabber, yarp::dev::TestMotor, yarp::dev::UrbtcControl, yarp::dev::VfwGrabber, yarp::dev::VirtualAnalogWrapper, and yarp::dev::WxsdlWriter.

Public Member Functions

virtual ~DeviceDriver ()
 Destructor. More...
 
virtual bool open (yarp::os::Searchable &config) YARP_OVERRIDE
 Open the DeviceDriver. More...
 
virtual bool close () YARP_OVERRIDE
 Close the DeviceDriver. 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...
 

Detailed Description

Interface implemented by all device drivers.

Examples:
dev/fake_motor.cpp, and dev/file_grabber.cpp.

Definition at line 34 of file DeviceDriver.h.

Constructor & Destructor Documentation

◆ ~DeviceDriver()

virtual yarp::dev::DeviceDriver::~DeviceDriver ( )
inlinevirtual

Destructor.

Definition at line 40 of file DeviceDriver.h.

Member Function Documentation

◆ close()

virtual bool yarp::dev::DeviceDriver::close ( void  )
inlinevirtual

Close the DeviceDriver.

Returns
true/false on success/failure.

Reimplemented from yarp::os::IConfig.

Reimplemented in yarp::dev::RemoteControlBoard, yarp::dev::RemoteFrameGrabber, yarp::dev::ControlBoardWrapper, yarp::dev::MEIMotionControl, yarp::dev::FakeMotionControl, yarp::dev::ServerGrabber, yarp::dev::RGBDSensorWrapper, RpLidar, yarp::dev::FakeBot, yarp::dev::TestMotor, yarp::dev::depthCameraDriver, StubDriver, yarp::dev::RGBDSensorClient, yarp::dev::AnalogWrapper, yarp::dev::ControlBoardRemapper, yarp::dev::BoschIMU, yarp::dev::DynamixelAX12FtdiDriver, yarp::dev::ServerInertial, yarp::dev::JrkerrMotionControl, SerialServoBoard, yarp::dev::RemoteControlBoardRemapper, yarp::dev::JoypadControlServer, FakeLaser, yarp::dev::ServerSoundGrabber, yarp::dev::ServerSerial, yarp::dev::ServerFrameGrabber, yarp::dev::FrameTransformClient, yarp::dev::AnalogSensorClient, yarp::dev::UrbtcControl, yarp::dev::ServerKinect, yarp::dev::PolyDriver, yarp::dev::Rangefinder2DClient, yarp::dev::SerialDeviceDriver, laserHokuyo, yarp::dev::PortAudioDeviceDriver, yarp::dev::BatteryClient, yarp::dev::VirtualAnalogWrapper, yarp::dev::FrameTransformServer, LaserFromDepth, yarp::dev::StageControl, yarp::dev::Map2DServer, yarp::dev::PumaCalibrator, yarp::dev::OpenCVGrabber, yarp::dev::FfmpegGrabber, RpLidar2, yarp::dev::KinectDeviceDriver, yarp::dev::TestFrameGrabber, yarp::dev::LocationsServer, yarp::dev::KinectDeviceDriverServer, yarp::dev::OpenNI2DeviceDriverServer, yarp::dev::Map2DClient, yarp::dev::SDLJoypad, yarp::dev::Localization2DClient, yarp::dev::Rangefinder2DWrapper, yarp::dev::RobotDescriptionServer, yarp::dev::DimaxU2C, yarp::dev::BatteryWrapper, yarp::dev::Navigation2DClient, yarp::dev::MicrophoneDeviceDriver, yarp::dev::JoypadControlClient, yarp::dev::RobotDescriptionClient, yarp::dev::FfmpegWriter, yarp::dev::FakeAnalogSensor, yarp::dev::KinectDeviceDriverClient, yarp::dev::OpenNI2DeviceDriverClient, yarp::dev::OVRHeadset, yarp::dev::fakeDepthCameraDriver, yarp::dev::fakeIMU, CUDAGPU, yarp::dev::WxsdlWriter, NVIDIAGPU, yarp::dev::DeviceGroup, yarp::dev::DevicePipe, and yarp::dev::VfwGrabber.

Examples:
dev/file_grabber.cpp.

Definition at line 61 of file DeviceDriver.h.

◆ getImplementation()

virtual DeviceDriver* yarp::dev::DeviceDriver::getImplementation ( )
inlinevirtual

Some drivers are bureaucrats, pointing at others.

Such drivers override this method.

Returns
"real" device driver

Reimplemented in StubDriver, and yarp::dev::PolyDriver.

Definition at line 98 of file DeviceDriver.h.

◆ open()

virtual bool yarp::dev::DeviceDriver::open ( yarp::os::Searchable config)
inlinevirtual

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::os::IConfig.

Reimplemented in yarp::dev::RemoteControlBoard, yarp::dev::RemoteFrameGrabber, yarp::dev::ControlBoardWrapper, yarp::dev::MEIMotionControl, yarp::dev::FakeMotionControl, yarp::dev::ServerGrabber, yarp::dev::RGBDSensorWrapper, RpLidar, yarp::dev::ControlBoardRemapper, yarp::dev::depthCameraDriver, StubDriver, yarp::dev::AnalogWrapper, yarp::dev::RGBDSensorClient, yarp::dev::BoschIMU, yarp::dev::DynamixelAX12FtdiDriver, yarp::dev::ServerInertial, yarp::dev::JrkerrMotionControl, yarp::dev::ServerSerial, yarp::dev::JoypadControlServer, FakeLaser, yarp::dev::ServerFrameGrabber, yarp::dev::RemoteControlBoardRemapper, yarp::dev::FrameTransformClient, yarp::dev::AnalogSensorClient, yarp::dev::UrbtcControl, yarp::dev::Rangefinder2DClient, laserHokuyo, yarp::dev::BatteryClient, yarp::dev::SerialDeviceDriver, yarp::dev::TestFrameGrabber, yarp::dev::VirtualAnalogWrapper, yarp::dev::FrameTransformServer, LaserFromDepth, yarp::dev::StageControl, yarp::dev::ServerSoundGrabber, yarp::dev::PortAudioDeviceDriver, yarp::dev::Map2DServer, yarp::dev::PolyDriver, yarp::dev::OpenCVGrabber, yarp::dev::FakeBot, yarp::dev::FfmpegGrabber, RpLidar2, yarp::dev::PumaCalibrator, SerialServoBoard, yarp::dev::TestMotor, yarp::dev::LocationsServer, yarp::dev::KinectDeviceDriverServer, yarp::dev::OpenNI2DeviceDriverServer, yarp::dev::Map2DClient, yarp::dev::SDLJoypad, yarp::dev::KinectDeviceDriver, yarp::dev::Localization2DClient, yarp::dev::Rangefinder2DWrapper, yarp::dev::RobotDescriptionServer, yarp::dev::DimaxU2C, yarp::dev::BatteryWrapper, yarp::dev::Navigation2DClient, yarp::dev::ServerKinect, yarp::dev::JoypadControlClient, yarp::dev::RobotDescriptionClient, yarp::dev::FakeAnalogSensor, yarp::dev::FfmpegWriter, yarp::dev::MicrophoneDeviceDriver, yarp::dev::KinectDeviceDriverClient, yarp::dev::OpenNI2DeviceDriverClient, yarp::dev::OVRHeadset, yarp::dev::fakeDepthCameraDriver, yarp::dev::fakeIMU, yarp::dev::WxsdlWriter, yarp::dev::DeviceGroup, CUDAGPU, yarp::dev::DevicePipe, NVIDIAGPU, and yarp::dev::VfwGrabber.

Examples:
dev/file_grabber.cpp.

Definition at line 55 of file DeviceDriver.h.

◆ view()

template<class T >
bool yarp::dev::DeviceDriver::view ( T *&  x)
inline

Get an interface to the device driver.

Parameters
xA pointer of type T which will be set to point to this object if that is possible.
Returns
true iff the desired interface is implemented by the device driver.
Examples:
cuda/cuda_gpu.cpp, dev/fake_motor.cpp, dev/file_grabber.cpp, dev/grabber_client.cpp, dev/motortest.cpp, portaudio/sound_receiver.cpp, and portaudio/sound_sender_mic.cpp.

Definition at line 74 of file DeviceDriver.h.


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