|
| RGBDSensorClient () |
|
| RGBDSensorClient (const RGBDSensorClient &)=delete |
|
| RGBDSensorClient (RGBDSensorClient &&)=delete |
|
RGBDSensorClient & | operator= (const RGBDSensorClient &)=delete |
|
RGBDSensorClient & | operator= (RGBDSensorClient &&)=delete |
|
| ~RGBDSensorClient () override |
|
int | getRgbHeight () override |
| Return the height of each frame. More...
|
|
int | getRgbWidth () override |
| Return the width of each frame. More...
|
|
bool | getRgbSupportedConfigurations (yarp::sig::VectorOf< yarp::dev::CameraConfig > &configurations) override |
| Get the possible configurations of the camera. More...
|
|
bool | getRgbResolution (int &width, int &height) override |
| Get the resolution of the rgb image from the camera. More...
|
|
bool | setRgbResolution (int width, int height) override |
| Set the resolution of the rgb image from the camera. More...
|
|
bool | getRgbFOV (double &horizontalFov, double &verticalFov) override |
| Get the field of view (FOV) of the rgb camera. More...
|
|
bool | setRgbFOV (double horizontalFov, double verticalFov) override |
| Set the field of view (FOV) of the rgb camera. More...
|
|
bool | getRgbIntrinsicParam (yarp::os::Property &intrinsic) override |
| Get the intrinsic parameters of the rgb camera. More...
|
|
bool | getRgbMirroring (bool &mirror) override |
| Get the mirroring setting of the sensor. More...
|
|
bool | setRgbMirroring (bool mirror) override |
| Set the mirroring setting of the sensor. More...
|
|
int | getDepthHeight () override |
| Return the height of each frame. More...
|
|
int | getDepthWidth () override |
| Return the height of each frame. More...
|
|
bool | setDepthResolution (int width, int height) override |
| Set the resolution of the depth image from the camera. More...
|
|
bool | getDepthFOV (double &horizontalFov, double &verticalFov) override |
| Get the field of view (FOV) of the depth camera. More...
|
|
bool | setDepthFOV (double horizontalFov, double verticalFov) override |
| Set the field of view (FOV) of the depth camera. More...
|
|
double | getDepthAccuracy () override |
| Get the minimum detectable variation in distance [meter]. More...
|
|
bool | setDepthAccuracy (double accuracy) override |
| Set the minimum detectable variation in distance [meter] when possible. More...
|
|
bool | getDepthClipPlanes (double &near, double &far) override |
| Get the clipping planes of the sensor. More...
|
|
bool | setDepthClipPlanes (double near, double far) override |
| Set the clipping planes of the sensor. More...
|
|
bool | getDepthIntrinsicParam (yarp::os::Property &intrinsic) override |
| Get the intrinsic parameters of the depth camera. More...
|
|
bool | getDepthMirroring (bool &mirror) override |
| Get the mirroring setting of the sensor. More...
|
|
bool | setDepthMirroring (bool mirror) override |
| Set the mirroring setting of the sensor. More...
|
|
bool | open (yarp::os::Searchable &config) override |
| Create and configure a device, by name. More...
|
|
bool | close () override |
| Close the DeviceDriver. More...
|
|
bool | getExtrinsicParam (yarp::sig::Matrix &extrinsic) override |
| Get the extrinsic parameters from the device. More...
|
|
IRGBDSensor::RGBDSensor_status | getSensorStatus () override |
| Get the surrent status of the sensor, using enum type. More...
|
|
std::string | getLastErrorMsg (yarp::os::Stamp *timeStamp=nullptr) override |
| Return an error message in case of error. More...
|
|
bool | getRgbImage (yarp::sig::FlexImage &rgbImage, yarp::os::Stamp *timeStamp=nullptr) override |
| Get the rgb frame from the device. More...
|
|
bool | getDepthImage (yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthImage, yarp::os::Stamp *timeStamp=nullptr) override |
| Get the depth frame from the device. More...
|
|
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. More...
|
|
| DeviceDriver () |
|
| DeviceDriver (const DeviceDriver &other)=delete |
|
| DeviceDriver (DeviceDriver &&other) noexcept=delete |
|
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
|
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
|
| ~DeviceDriver () override |
|
bool | open (yarp::os::Searchable &config) override |
| Open the DeviceDriver. More...
|
|
bool | close () override |
| Close the DeviceDriver. More...
|
|
virtual std::string | id () const |
| Return the id assigned to the PolyDriver. More...
|
|
virtual void | setId (const std::string &id) |
| Set the id for this device. More...
|
|
template<class T > |
bool | view (T *&x) |
| Get an interface to the device driver. More...
|
|
virtual DeviceDriver * | getImplementation () |
| Some drivers are bureaucrats, pointing at others. More...
|
|
virtual | ~IConfig () |
| Destructor. More...
|
|
virtual bool | open (Searchable &config) |
| Initialize the object. More...
|
|
virtual bool | close () |
| Shut the object down. More...
|
|
virtual bool | configure (Searchable &config) |
| Change online parameters. More...
|
|
| FrameGrabberControls_Forwarder (yarp::os::Port &port) |
|
| ~FrameGrabberControls_Forwarder () override=default |
|
bool | getCameraDescription (CameraDescriptor *camera) override |
| Get a basic description of the camera hw. More...
|
|
bool | hasFeature (int feature, bool *hasFeature) override |
| Check if camera has the requested feature (saturation, brightness ... ) More...
|
|
bool | setFeature (int feature, double value) override |
| Set the requested feature to a value (saturation, brightness ... ) More...
|
|
bool | getFeature (int feature, double *value) override |
| Get the current value for the requested feature. More...
|
|
bool | setFeature (int feature, double value1, double value2) override |
| Set the requested feature to a value using 2 params (like white balance) More...
|
|
bool | getFeature (int feature, double *value1, double *value2) override |
| Get the current value for the requested feature. More...
|
|
bool | hasOnOff (int feature, bool *HasOnOff) override |
| Check if the camera has the ability to turn on/off the requested feature. More...
|
|
bool | setActive (int feature, bool onoff) override |
| Set the requested feature on or off. More...
|
|
bool | getActive (int feature, bool *isActive) override |
| Get the current status of the feature, on or off. More...
|
|
bool | hasAuto (int feature, bool *hasAuto) override |
| Check if the requested feature has the 'auto' mode. More...
|
|
bool | hasManual (int feature, bool *hasManual) override |
| Check if the requested feature has the 'manual' mode. More...
|
|
bool | hasOnePush (int feature, bool *hasOnePush) override |
| Check if the requested feature has the 'onePush' mode. More...
|
|
bool | setMode (int feature, FeatureMode mode) override |
| Set the requested mode for the feature. More...
|
|
bool | getMode (int feature, FeatureMode *mode) override |
| Get the current mode for the feature. More...
|
|
bool | setOnePush (int feature) override |
| Set the requested feature to a value (saturation, brightness ... ) More...
|
|
bool | setBrightness (double v) override |
| Set the brightness. More...
|
|
double | getBrightness () override |
| Read the brightness parameter. More...
|
|
bool | setExposure (double v) override |
| Set the exposure. More...
|
|
double | getExposure () override |
| Read the exposure parameter. More...
|
|
bool | setSharpness (double v) override |
| Set the sharpness. More...
|
|
double | getSharpness () override |
| Read the sharpness parameter. More...
|
|
bool | setWhiteBalance (double blue, double red) override |
| Set the white balance for the frame grabber. More...
|
|
bool | getWhiteBalance (double &blue, double &red) override |
| Read the white balance parameters. More...
|
|
bool | setHue (double v) override |
| Set the hue. More...
|
|
double | getHue () override |
| Read the hue parameter. More...
|
|
bool | setSaturation (double v) override |
| Set the saturation. More...
|
|
double | getSaturation () override |
| Read the saturation parameter. More...
|
|
bool | setGamma (double v) override |
| Set the gamma. More...
|
|
double | getGamma () override |
| Read the gamma parameter. More...
|
|
bool | setShutter (double v) override |
| Set the shutter parameter. More...
|
|
double | getShutter () override |
| Read the shutter parameter. More...
|
|
bool | setGain (double v) override |
| Set the gain. More...
|
|
double | getGain () override |
| Read the gain parameter. More...
|
|
bool | setIris (double v) override |
| Set the iris. More...
|
|
double | getIris () override |
| Read the iris parameter. More...
|
|
virtual | ~IFrameGrabberControls () |
| Destructor. More...
|
|
virtual bool | setBrightness (double v) |
| Set the brightness. More...
|
|
virtual bool | setExposure (double v) |
| Set the exposure. More...
|
|
virtual bool | setSharpness (double v) |
| Set the sharpness. More...
|
|
virtual bool | setWhiteBalance (double blue, double red) |
| Set the white balance for the frame grabber. More...
|
|
virtual bool | setHue (double v) |
| Set the hue. More...
|
|
virtual bool | setSaturation (double v) |
| Set the saturation. More...
|
|
virtual bool | setGamma (double v) |
| Set the gamma. More...
|
|
virtual bool | setShutter (double v) |
| Set the shutter parameter. More...
|
|
virtual bool | setGain (double v) |
| Set the gain. More...
|
|
virtual bool | setIris (double v) |
| Set the iris. More...
|
|
virtual double | getBrightness () |
| Read the brightness parameter. More...
|
|
virtual double | getExposure () |
| Read the exposure parameter. More...
|
|
virtual double | getSharpness () |
| Read the sharpness parameter. More...
|
|
virtual bool | getWhiteBalance (double &blue, double &red) |
| Read the white balance parameters. More...
|
|
virtual double | getHue () |
| Read the hue parameter. More...
|
|
virtual double | getSaturation () |
| Read the saturation parameter. More...
|
|
virtual double | getGamma () |
| Read the gamma parameter. More...
|
|
virtual double | getShutter () |
| Read the shutter parameter. More...
|
|
virtual double | getGain () |
| Read the gain parameter. More...
|
|
virtual double | getIris () |
| Read the iris parameter. More...
|
|
std::string | busType2String (BusType type) |
|
FeatureMode | toFeatureMode (bool _auto) |
|
virtual bool | getCameraDescription (CameraDescriptor *camera)=0 |
| Get a basic description of the camera hw. More...
|
|
virtual bool | hasFeature (int feature, bool *hasFeature)=0 |
| Check if camera has the requested feature (saturation, brightness ... ) More...
|
|
virtual bool | setFeature (int feature, double value)=0 |
| Set the requested feature to a value (saturation, brightness ... ) More...
|
|
virtual bool | getFeature (int feature, double *value)=0 |
| Get the current value for the requested feature. More...
|
|
virtual bool | setFeature (int feature, double value1, double value2)=0 |
| Set the requested feature to a value using 2 params (like white balance) More...
|
|
virtual bool | getFeature (int feature, double *value1, double *value2)=0 |
| Get the current value for the requested feature. More...
|
|
virtual bool | hasOnOff (int feature, bool *HasOnOff)=0 |
| Check if the camera has the ability to turn on/off the requested feature. More...
|
|
virtual bool | setActive (int feature, bool onoff)=0 |
| Set the requested feature on or off. More...
|
|
virtual bool | getActive (int feature, bool *isActive)=0 |
| Get the current status of the feature, on or off. More...
|
|
virtual bool | hasAuto (int feature, bool *hasAuto)=0 |
| Check if the requested feature has the 'auto' mode. More...
|
|
virtual bool | hasManual (int feature, bool *hasManual)=0 |
| Check if the requested feature has the 'manual' mode. More...
|
|
virtual bool | hasOnePush (int feature, bool *hasOnePush)=0 |
| Check if the requested feature has the 'onePush' mode. More...
|
|
virtual bool | setMode (int feature, FeatureMode mode)=0 |
| Set the requested mode for the feature. More...
|
|
virtual bool | getMode (int feature, FeatureMode *mode)=0 |
| Get the current mode for the feature. More...
|
|
virtual bool | setOnePush (int feature)=0 |
| Set the requested feature to a value (saturation, brightness ... ) More...
|
|
virtual | ~IRGBDSensor () |
|
int | getRgbHeight () override=0 |
| Return the height of each frame. More...
|
|
int | getRgbWidth () override=0 |
| Return the width of each frame. More...
|
|
bool | getRgbSupportedConfigurations (yarp::sig::VectorOf< CameraConfig > &configurations) override |
| Get the possible configurations of the camera. More...
|
|
bool | getRgbResolution (int &width, int &height) override |
| Get the resolution of the rgb image from the camera. More...
|
|
bool | setRgbResolution (int width, int height) override=0 |
| Set the resolution of the rgb image from the camera. More...
|
|
bool | getRgbFOV (double &horizontalFov, double &verticalFov) override=0 |
| Get the field of view (FOV) of the rgb camera. More...
|
|
bool | setRgbFOV (double horizontalFov, double verticalFov) override=0 |
| Set the field of view (FOV) of the rgb camera. More...
|
|
bool | getRgbIntrinsicParam (yarp::os::Property &intrinsic) override=0 |
| Get the intrinsic parameters of the rgb camera. More...
|
|
int | getDepthHeight () override=0 |
| Return the height of each frame. More...
|
|
int | getDepthWidth () override=0 |
| Return the height of each frame. More...
|
|
bool | setDepthResolution (int width, int height) override=0 |
| Set the resolution of the depth image from the camera. More...
|
|
bool | getDepthFOV (double &horizontalFov, double &verticalFov) override=0 |
| Get the field of view (FOV) of the depth camera. More...
|
|
bool | setDepthFOV (double horizontalFov, double verticalFov) override=0 |
| Set the field of view (FOV) of the depth camera. More...
|
|
double | getDepthAccuracy () override=0 |
| Get the minimum detectable variation in distance [meter]. More...
|
|
bool | setDepthAccuracy (double accuracy) override=0 |
| Set the minimum detectable variation in distance [meter] when possible. More...
|
|
bool | getDepthClipPlanes (double &nearPlane, double &farPlane) override=0 |
| Get the clipping planes of the sensor. More...
|
|
bool | setDepthClipPlanes (double nearPlane, double farPlane) override=0 |
| Set the clipping planes of the sensor. More...
|
|
bool | getDepthIntrinsicParam (yarp::os::Property &intrinsic) override=0 |
| Get the intrinsic parameters of the depth camera. More...
|
|
virtual bool | getExtrinsicParam (yarp::sig::Matrix &extrinsic)=0 |
| Get the extrinsic parameters from the device. More...
|
|
virtual std::string | getLastErrorMsg (yarp::os::Stamp *timeStamp=nullptr)=0 |
| Return an error message in case of error. More...
|
|
virtual bool | getRgbImage (yarp::sig::FlexImage &rgbImage, yarp::os::Stamp *timeStamp=nullptr)=0 |
| Get the rgb frame from the device. More...
|
|
virtual bool | getDepthImage (yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthImage, yarp::os::Stamp *timeStamp=nullptr)=0 |
| Get the depth frame from the device. More...
|
|
virtual bool | getImages (yarp::sig::FlexImage &colorFrame, yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthFrame, yarp::os::Stamp *colorStamp=nullptr, yarp::os::Stamp *depthStamp=nullptr)=0 |
| Get the both the color and depth frame in a single call. More...
|
|
virtual RGBDSensor_status | getSensorStatus ()=0 |
| Get the surrent status of the sensor, using enum type. More...
|
|
virtual | ~IRgbVisualParams () |
|
virtual int | getRgbHeight ()=0 |
| Return the height of each frame. More...
|
|
virtual int | getRgbWidth ()=0 |
| Return the width of each frame. More...
|
|
virtual bool | getRgbSupportedConfigurations (yarp::sig::VectorOf< yarp::dev::CameraConfig > &configurations) |
| Get the possible configurations of the camera. More...
|
|
virtual bool | getRgbResolution (int &width, int &height) |
| Get the resolution of the rgb image from the camera. More...
|
|
virtual bool | setRgbResolution (int width, int height)=0 |
| Set the resolution of the rgb image from the camera. More...
|
|
virtual bool | getRgbFOV (double &horizontalFov, double &verticalFov)=0 |
| Get the field of view (FOV) of the rgb camera. More...
|
|
virtual bool | setRgbFOV (double horizontalFov, double verticalFov)=0 |
| Set the field of view (FOV) of the rgb camera. More...
|
|
virtual bool | getRgbIntrinsicParam (yarp::os::Property &intrinsic)=0 |
| Get the intrinsic parameters of the rgb camera. More...
|
|
virtual bool | getRgbMirroring (bool &mirror)=0 |
| Get the mirroring setting of the sensor. More...
|
|
virtual bool | setRgbMirroring (bool mirror)=0 |
| Set the mirroring setting of the sensor. More...
|
|
virtual | ~IDepthVisualParams () |
|
virtual int | getDepthHeight ()=0 |
| Return the height of each frame. More...
|
|
virtual int | getDepthWidth ()=0 |
| Return the height of each frame. More...
|
|
virtual bool | setDepthResolution (int width, int height)=0 |
| Set the resolution of the depth image from the camera. More...
|
|
virtual bool | getDepthFOV (double &horizontalFov, double &verticalFov)=0 |
| Get the field of view (FOV) of the depth camera. More...
|
|
virtual bool | setDepthFOV (double horizontalFov, double verticalFov)=0 |
| Set the field of view (FOV) of the depth camera. More...
|
|
virtual bool | getDepthIntrinsicParam (yarp::os::Property &intrinsic)=0 |
| Get the intrinsic parameters of the depth camera. More...
|
|
virtual double | getDepthAccuracy ()=0 |
| Get the minimum detectable variation in distance [meter]. More...
|
|
virtual bool | setDepthAccuracy (double accuracy)=0 |
| Set the minimum detectable variation in distance [meter] when possible. More...
|
|
virtual bool | getDepthClipPlanes (double &nearPlane, double &farPlane)=0 |
| Get the clipping planes of the sensor. More...
|
|
virtual bool | setDepthClipPlanes (double nearPlane, double farPlane)=0 |
| Set the clipping planes of the sensor. More...
|
|
virtual bool | getDepthMirroring (bool &mirror)=0 |
| Get the mirroring setting of the sensor. More...
|
|
virtual bool | setDepthMirroring (bool mirror)=0 |
| Set the mirroring setting of the sensor. More...
|
|
RGBDSensorClient
: A Network client to receive data from kinect-like devices. This device will read from two streams of data through different ports, one for the color frame and the other one for depth image following Framegrabber and IDepthSensor interfaces specification respectively. See they documentation for more details about each interface.
Description of input parameters
This device is paired with its server called RGBDSensorWrapper to receive the data streams and perform remote operations.
Parameters required by this device are:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description | Notes |
localImagePort | - | string | - | - | | Full name of the local port to open, e.g. /myApp/RGBD/rgb_camera:i | |
localDepthPort | - | string | - | - | | Full name of the local port to open, e.g. /myApp/RGBD/depth_camera:i | |
localRpcPort | - | string | - | - | | Full name of the local RPC port to open, e.g. /myApp/RGBD/rpc | |
remoteImagePort | - | string | - | - | | Full name of the port to read color images from, e.g. /robotName/RGBD/image_camera:o | |
remoteDepthPort | - | string | - | - | | Full name of the port to read depth images from, e.g. /robotName/RGBD/depth_camera:o | |
remoteRpcPort | - | string | - | - | | Full name of the remote RPC port, e.g. /robotName/RGBD/rpc | |
ImageCarrier | - | string | - | udp | No | Carrier name for the Image stream used in the client-server connection | |
DepthCarrier | - | string | - | udp | No | Carrier name for the Depth strean used in the client-server connection | |
Configuration file using .ini format, using subdevice keyword.
device RGBDSensorClient
localImagePort /clientRgbPort:i
localDepthPort /clientDepthPort:i
localRpcPort /clientRpcPort
remoteImagePort /RGBD/rgbCamera:o
remoteDepthPort /RGBD/depthCamera:o
remoteRpcPort /RGBD/rpc
XML format, using 'networks' keyword. This file is meant to be used in junction with yarprobotinterface executable, therefore has an addictional section at the end.
<param name="localImagePort"> /clientRgbPort:i </param>
<param name="localDepthPort"> /clientDepthPort:i </param>
<param name="localRpcPort"> /clientRpcPort </param>
<param name="remoteImagePort"> /RGBD/rgbCamera:o </param>
<param name="localDepthPort"> /RGBD/depthCamera:o </param>
<param name="remoteRpcPort"> /RGBD/rpc </param>
Definition at line 81 of file RGBDSensorClient.h.