6 #ifndef YARP_DEV_RGBDSENSORCLIENT_RGBDSENSORCLIENT_H
7 #define YARP_DEV_RGBDSENSORCLIENT_RGBDSENSORCLIENT_H
23 #define DEFAULT_THREAD_PERIOD 20
24 #define RGBDSENSOR_TIMEOUT_DEFAULT 100
128 IRGBDSensor::RGBDSensor_status
sensorStatus{IRGBDSensor::RGBD_SENSOR_NOT_READY};
154 bool getRgbFOV(
double &horizontalFov,
double &verticalFov)
override;
155 bool setRgbFOV(
double horizontalFov,
double verticalFov)
override;
166 bool getDepthFOV(
double &horizontalFov,
double &verticalFov)
override;
167 bool setDepthFOV(
double horizontalFov,
double verticalFov)
override;
196 bool close()
override;
275 using FrameGrabberControls_Forwarder::getCameraDescription;
276 using FrameGrabberControls_Forwarder::hasFeature;
277 using FrameGrabberControls_Forwarder::setFeature;
278 using FrameGrabberControls_Forwarder::getFeature;
279 using FrameGrabberControls_Forwarder::hasOnOff;
280 using FrameGrabberControls_Forwarder::setActive;
281 using FrameGrabberControls_Forwarder::getActive;
282 using FrameGrabberControls_Forwarder::hasAuto;
283 using FrameGrabberControls_Forwarder::hasManual;
284 using FrameGrabberControls_Forwarder::hasOnePush;
285 using FrameGrabberControls_Forwarder::setMode;
286 using FrameGrabberControls_Forwarder::getMode;
287 using FrameGrabberControls_Forwarder::setOnePush;
RGBDSensorClient: A Network client to receive data from kinect-like devices. This device will read fr...
bool getRgbResolution(int &width, int &height) override
Get the resolution of the rgb image from the camera.
std::string remote_colorFrame_StreamingPort_name
bool setRgbFOV(double horizontalFov, double verticalFov) override
Set the field of view (FOV) of the rgb camera.
int getDepthWidth() override
Return the height of each frame.
bool getRgbMirroring(bool &mirror) override
Get the mirroring setting of the sensor.
RgbImageBufferedPort colorFrame_StreamingPort
bool setDepthMirroring(bool mirror) override
Set the mirroring setting of the sensor.
yarp::dev::IRGBDSensor * sensor_p
std::string getLastErrorMsg(yarp::os::Stamp *timeStamp=nullptr) override
Return an error message in case of error.
bool getDepthClipPlanes(double &near, double &far) override
Get the clipping planes of the sensor.
std::string local_colorFrame_StreamingPort_name
RGBDSensorClient(RGBDSensorClient &&)=delete
bool setRgbResolution(int width, int height) override
Set the resolution of the rgb image from the camera.
IRGBDSensor::RGBDSensor_status sensorStatus
bool setDepthAccuracy(double accuracy) override
Set the minimum detectable variation in distance [meter] when possible.
bool getRgbSupportedConfigurations(yarp::sig::VectorOf< yarp::dev::CameraConfig > &configurations) override
Get the possible configurations of the camera.
int getRgbWidth() override
Return the width of each frame.
bool setDepthResolution(int width, int height) override
Set the resolution of the depth image from the camera.
bool getDepthIntrinsicParam(yarp::os::Property &intrinsic) override
Get the intrinsic parameters of the depth camera.
bool getDepthFOV(double &horizontalFov, double &verticalFov) override
Get the field of view (FOV) of the depth camera.
bool initialize_YARP(yarp::os::Searchable &config)
bool getImages(yarp::sig::FlexImage &colorFrame, yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthFrame, yarp::os::Stamp *colorStamp=nullptr, yarp::os::Stamp *depthStamp=nullptr) override
Get the both the color and depth frame in a single call.
bool setDepthClipPlanes(double near, double far) override
Set the clipping planes of the sensor.
bool getDepthMirroring(bool &mirror) override
Get the mirroring setting of the sensor.
std::string remote_depthFrame_StreamingPort_name
bool getDepthImage(yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthImage, yarp::os::Stamp *timeStamp=nullptr) override
Get the depth frame from the device.
bool getRgbFOV(double &horizontalFov, double &verticalFov) override
Get the field of view (FOV) of the rgb camera.
std::string remote_rpcPort_name
~RGBDSensorClient() override
bool close() override
Close the DeviceDriver.
std::string local_rpcPort_name
double getDepthAccuracy() override
Get the minimum detectable variation in distance [meter].
RGBDSensorClient(const RGBDSensorClient &)=delete
bool getRgbImage(yarp::sig::FlexImage &rgbImage, yarp::os::Stamp *timeStamp=nullptr) override
Get the rgb frame from the device.
RGBDSensor_StreamingMsgParser * streamingReader
yarp::os::Stamp colorStamp
bool fromConfig(yarp::os::Searchable &config)
bool setDepthFOV(double horizontalFov, double verticalFov) override
Set the field of view (FOV) of the depth camera.
bool getExtrinsicParam(yarp::sig::Matrix &extrinsic) override
Get the extrinsic parameters from the device.
int getDepthHeight() override
Return the height of each frame.
IRGBDSensor::RGBDSensor_status getSensorStatus() override
Get the surrent status of the sensor, using enum type.
bool getRgbIntrinsicParam(yarp::os::Property &intrinsic) override
Get the intrinsic parameters of the rgb camera.
RGBDSensorClient & operator=(const RGBDSensorClient &)=delete
bool open(yarp::os::Searchable &config) override
Create and configure a device, by name.
int getRgbHeight() override
Return the height of each frame.
bool setRgbMirroring(bool mirror) override
Set the mirroring setting of the sensor.
RGBDSensorClient & operator=(RGBDSensorClient &&)=delete
FloatImageBufferedPort depthFrame_StreamingPort
std::string local_depthFrame_StreamingPort_name
std::string depth_carrier_type
std::string image_carrier_type
yarp::os::Stamp depthStamp
Interface implemented by all device drivers.
A generic interface for cameras that have both color camera as well as depth camera sensor,...
A mini-server for network communication.
A class for storing options and configuration information.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.
This classes implement a sender / parser for IFrameGrabberControls interface messages.
Image class with user control of representation details.