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