|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_IRGBDSENSOR_H
10 #define YARP_DEV_IRGBDSENSOR_H
64 RGBD_SENSOR_NOT_READY = 0,
65 RGBD_SENSOR_OK_STANBY = 1,
66 RGBD_SENSOR_OK_IN_USE = 2,
68 DEPTH_SENSOR_ERROR = 4,
69 RGBD_SENSOR_GENERIC_ERROR = 5,
70 RGBD_SENSOR_TIMEOUT = 6
83 bool getRgbFOV(
double &horizontalFov,
double &verticalFov)
override = 0;
84 bool setRgbFOV(
double horizontalFov,
double verticalFov)
override = 0;
93 bool getDepthFOV(
double &horizontalFov,
double &verticalFov)
override = 0;
94 bool setDepthFOV(
double horizontalFov,
double verticalFov)
override = 0;
168 #endif // YARP_DEV_IRGBDSENSOR_H
bool setDepthAccuracy(double accuracy) override=0
Set the minimum detectable variation in distance [meter] when possible.
int getRgbHeight() override=0
Return the height of each frame.
bool setDepthFOV(double horizontalFov, double verticalFov) override=0
Set the field of view (FOV) of the depth camera.
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
virtual bool getDepthImage(yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthImage, yarp::os::Stamp *timeStamp=NULL)=0
Get the depth frame from the device.
virtual bool getExtrinsicParam(yarp::sig::Matrix &extrinsic)=0
Get the extrinsic parameters from the device.
bool setRgbResolution(int width, int height) override=0
Set the resolution of the rgb image from the camera.
constexpr yarp::conf::vocab32_t VOCAB_RGBD_PROTOCOL_VERSION
double getDepthAccuracy() override=0
Get the minimum detectable variation in distance [meter].
constexpr yarp::conf::vocab32_t VOCAB_STATUS
bool getDepthFOV(double &horizontalFov, double &verticalFov) override=0
Get the field of view (FOV) of the depth camera.
constexpr yarp::conf::vocab32_t VOCAB_RGBD_SENSOR
contains the definition of a Matrix type
bool getDepthIntrinsicParam(yarp::os::Property &intrinsic) override=0
Get the intrinsic parameters of the depth camera.
bool getRgbResolution(int &width, int &height) override
Get the resolution of the rgb image from the camera.
constexpr yarp::conf::vocab32_t VOCAB_ERROR_MSG
bool getDepthClipPlanes(double &nearPlane, double &farPlane) override=0
Get the clipping planes of the sensor.
bool setDepthClipPlanes(double nearPlane, double farPlane) override=0
Set the clipping planes of the sensor.
virtual bool getRgbImage(yarp::sig::FlexImage &rgbImage, yarp::os::Stamp *timeStamp=NULL)=0
Get the rgb frame from the device.
Image class with user control of representation details.
int getDepthHeight() override=0
Return the height of each frame.
A generic interface for cameras that have both color camera as well as depth camera sensor,...
bool getRgbIntrinsicParam(yarp::os::Property &intrinsic) override=0
Get the intrinsic parameters of the rgb camera.
bool setDepthResolution(int width, int height) override=0
Set the resolution of the depth image from the camera.
bool setRgbFOV(double horizontalFov, double verticalFov) override=0
Set the field of view (FOV) of the rgb camera.
virtual bool getImages(yarp::sig::FlexImage &colorFrame, yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthFrame, yarp::os::Stamp *colorStamp=NULL, yarp::os::Stamp *depthStamp=NULL)=0
Get the both the color and depth frame in a single call.
An abstraction for a time stamp and/or sequence number.
int getDepthWidth() override=0
Return the height of each frame.
constexpr yarp::conf::vocab32_t VOCAB_IMAGES
An interface for retrieving intrinsic parameter from a rgb camera.
bool getRgbSupportedConfigurations(yarp::sig::VectorOf< CameraConfig > &configurations) override
Get the possible configurations of the camera.
The main, catch-all namespace for YARP.
constexpr yarp::conf::vocab32_t VOCAB_RGB_IMAGE
virtual std::string getLastErrorMsg(yarp::os::Stamp *timeStamp=NULL)=0
Return an error message in case of error.
int getRgbWidth() override=0
Return the width of each frame.
virtual RGBDSensor_status getSensorStatus()=0
Get the surrent status of the sensor, using enum type.
An interface for retrieving intrinsic parameter from a depth camera.
constexpr yarp::conf::vocab32_t VOCAB_EXTRINSIC_PARAM
bool getRgbFOV(double &horizontalFov, double &verticalFov) override=0
Get the field of view (FOV) of the rgb camera.
A class for storing options and configuration information.
constexpr yarp::conf::vocab32_t VOCAB_DEPTH_IMAGE