|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_FAKEFRAMEGRABBER_FAKEFRAMEGRABBER_H
11 #define YARP_FAKEFRAMEGRABBER_FAKEFRAMEGRABBER_H
54 double horizontalFov,verticalFov;
69 bool close()
override;
91 int height()
const override;
93 int width()
const override;
105 bool getRgbFOV(
double& horizontalFov,
double& verticalFov)
override;
107 bool setRgbFOV(
double horizontalFov,
double verticalFov)
override;
131 bool setFeature(
int feature,
double value)
override;
133 bool getFeature(
int feature,
double *value)
override;
135 bool setFeature(
int feature,
double value1,
double value2)
override;
137 bool getFeature(
int feature,
double *value1,
double *value2)
override;
139 bool hasOnOff(
int feature,
bool *HasOnOff)
override;
141 bool setActive(
int feature,
bool onoff)
override;
143 bool getActive(
int feature,
bool *isActive)
override;
165 void printTime(
unsigned char* pixbuf,
int pixbuf_w,
int pixbuf_h,
int x,
int y,
char* s,
int size);
181 #endif // YARP_FAKEFRAMEGRABBER_FAKEFRAMEGRABBER_H
bool setRgbFOV(double horizontalFov, double verticalFov) override
Set the field of view (FOV) of the rgb camera.
bool hasAuto(int feature, bool *hasAuto) override
Check if the requested feature has the 'auto' mode.
Read a YARP-format image from a device.
int height() const override
Return the height of each frame.
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
bool hasOnOff(int feature, bool *HasOnOff) override
Check if the camera has the ability to turn on/off the requested feature.
int getRgbWidth() override
Return the width of each frame.
A base class for nested structures that can be searched.
bool setRgbMirroring(bool mirror) override
Set the mirroring setting of the sensor.
bool setFeature(int feature, double value) override
Set the requested feature to a value (saturation, brightness ...
bool hasOnePush(int feature, bool *hasOnePush) override
Check if the requested feature has the 'onePush' mode.
Interface implemented by all device drivers.
bool getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied.
bool hasFeature(int feature, bool *hasFeature) override
Check if camera has the requested feature (saturation, brightness ...
bool open(yarp::os::Searchable &config) override
Configure with a set of options.
FakeFrameGrabber()
Constructor.
bool setActive(int feature, bool onoff) override
Set the requested feature on or off.
bool hasManual(int feature, bool *hasManual) override
Check if the requested feature has the 'manual' mode.
Read a YARP-format image from a device.
bool getCameraDescription(CameraDescriptor *camera) override
Get a basic description of the camera hw.
bool open(yarp::os::Searchable &config) override
Configure with a set of options.
bool getRgbResolution(int &width, int &height) override
Get the resolution of the rgb image from the camera.
bool close() override
Close the DeviceDriver.
bool getRgbIntrinsicParam(yarp::os::Property &intrinsic) override
Get the intrinsic parameters of the rgb camera.
yarp::os::Stamp getLastInputStamp() override
Return the time stamp relative to the last acquisition.
Control interface for frame grabber devices.
bool setOnePush(int feature) override
Set the requested feature to a value (saturation, brightness ...
define common interfaces to discover remote camera capabilities
fakeFrameGrabber: A fake camera for testing.
bool hasRawVideo() override
An abstraction for a time stamp and/or sequence number.
bool getActive(int feature, bool *isActive) override
Get the current status of the feature, on or off.
An interface for retrieving intrinsic parameter from a rgb camera.
bool setMode(int feature, FeatureMode mode) override
Set the requested mode for the feature.
bool getRgbSupportedConfigurations(yarp::sig::VectorOf< yarp::dev::CameraConfig > &configurations) override
Get the possible configurations of the camera.
bool getFeature(int feature, double *value) override
Get the current value for the requested feature.
int getRgbHeight() override
Return the height of each frame.
int width() const override
Return the width of each frame.
bool getRgbMirroring(bool &mirror) override
Get the mirroring setting of the sensor.
bool getRgbFOV(double &horizontalFov, double &verticalFov) override
Get the field of view (FOV) of the rgb camera.
bool setRgbResolution(int width, int height) override
Set the resolution of the rgb image from the camera.
bool getMode(int feature, FeatureMode *mode) override
Get the current mode for the feature.
A class for storing options and configuration information.
constexpr yarp::conf::vocab32_t VOCAB_LINE