RGBDSensor_nwc_yarp
: A Network client to receive data from kinect-like devices.
More...
#include <networkWrappers/RGBDSensor_nwc_yarp/RGBDSensor_nwc_yarp.h>
Public Member Functions | |
RGBDSensor_nwc_yarp () | |
RGBDSensor_nwc_yarp (const RGBDSensor_nwc_yarp &)=delete | |
RGBDSensor_nwc_yarp (RGBDSensor_nwc_yarp &&)=delete | |
RGBDSensor_nwc_yarp & | operator= (const RGBDSensor_nwc_yarp &)=delete |
RGBDSensor_nwc_yarp & | operator= (RGBDSensor_nwc_yarp &&)=delete |
~RGBDSensor_nwc_yarp () override | |
int | getRgbHeight () override |
Return the height of each frame. | |
int | getRgbWidth () override |
Return the width of each frame. | |
yarp::dev::ReturnValue | getRgbSupportedConfigurations (std::vector< yarp::dev::CameraConfig > &configurations) override |
Get the possible configurations of the camera. | |
yarp::dev::ReturnValue | getRgbResolution (int &width, int &height) override |
Get the resolution of the rgb image from the camera. | |
yarp::dev::ReturnValue | setRgbResolution (int width, int height) override |
Set the resolution of the rgb image from the camera. | |
yarp::dev::ReturnValue | getRgbFOV (double &horizontalFov, double &verticalFov) override |
Get the field of view (FOV) of the rgb camera. | |
yarp::dev::ReturnValue | setRgbFOV (double horizontalFov, double verticalFov) override |
Set the field of view (FOV) of the rgb camera. | |
yarp::dev::ReturnValue | getRgbIntrinsicParam (yarp::os::Property &intrinsic) override |
Get the intrinsic parameters of the rgb camera. | |
yarp::dev::ReturnValue | getRgbMirroring (bool &mirror) override |
Get the mirroring setting of the sensor. | |
yarp::dev::ReturnValue | setRgbMirroring (bool mirror) override |
Set the mirroring setting of the sensor. | |
int | getDepthHeight () override |
Return the height of each frame. | |
int | getDepthWidth () override |
Return the height of each frame. | |
yarp::dev::ReturnValue | getDepthResolution (int &width, int &height) override |
Get the resolution of the depth image from the camera. | |
yarp::dev::ReturnValue | setDepthResolution (int width, int height) override |
Set the resolution of the depth image from the camera. | |
yarp::dev::ReturnValue | getDepthFOV (double &horizontalFov, double &verticalFov) override |
Get the field of view (FOV) of the depth camera. | |
yarp::dev::ReturnValue | setDepthFOV (double horizontalFov, double verticalFov) override |
Set the field of view (FOV) of the depth camera. | |
yarp::dev::ReturnValue | getDepthAccuracy (double &accuracy) override |
Get the minimum detectable variation in distance [meter]. | |
yarp::dev::ReturnValue | setDepthAccuracy (double accuracy) override |
Set the minimum detectable variation in distance [meter] when possible. | |
yarp::dev::ReturnValue | getDepthClipPlanes (double &near, double &far) override |
Get the clipping planes of the sensor. | |
yarp::dev::ReturnValue | setDepthClipPlanes (double near, double far) override |
Set the clipping planes of the sensor. | |
yarp::dev::ReturnValue | getDepthIntrinsicParam (yarp::os::Property &intrinsic) override |
Get the intrinsic parameters of the depth camera. | |
yarp::dev::ReturnValue | getDepthMirroring (bool &mirror) override |
Get the mirroring setting of the sensor. | |
yarp::dev::ReturnValue | setDepthMirroring (bool mirror) override |
Set the mirroring setting of the sensor. | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. | |
bool | close () override |
Close the DeviceDriver. | |
yarp::dev::ReturnValue | getExtrinsicParam (yarp::sig::Matrix &extrinsic) override |
Get the extrinsic parameters from the device. | |
yarp::dev::ReturnValue | getSensorStatus (IRGBDSensor::RGBDSensor_status &status) override |
yarp::dev::ReturnValue | getLastErrorMsg (std::string &message, yarp::os::Stamp *timeStamp=nullptr) override |
Return an error message in case of error. | |
yarp::dev::ReturnValue | getRgbImage (yarp::sig::FlexImage &rgbImage, yarp::os::Stamp *timeStamp=nullptr) override |
Get the rgb frame from the device. | |
yarp::dev::ReturnValue | getDepthImage (yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthImage, yarp::os::Stamp *timeStamp=nullptr) override |
Get the depth frame from the device. | |
yarp::dev::ReturnValue | 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. | |
yarp::dev::ReturnValue | getCameraDescription (yarp::dev::CameraDescriptor &camera) override |
Get a basic description of the camera hw. | |
yarp::dev::ReturnValue | hasFeature (yarp::dev::cameraFeature_id_t feature, bool &hasFeature) override |
Check if camera has the requested feature (saturation, brightness ... ) | |
yarp::dev::ReturnValue | setFeature (yarp::dev::cameraFeature_id_t feature, double value) override |
Set the requested feature to a value (saturation, brightness ... ) | |
yarp::dev::ReturnValue | getFeature (yarp::dev::cameraFeature_id_t feature, double &value) override |
Get the current value for the requested feature. | |
yarp::dev::ReturnValue | setFeature (yarp::dev::cameraFeature_id_t feature, double value1, double value2) override |
Set the requested feature to a value using 2 params (like white balance) | |
yarp::dev::ReturnValue | getFeature (yarp::dev::cameraFeature_id_t feature, double &value1, double &value2) override |
Get the current value for the requested feature. | |
yarp::dev::ReturnValue | hasOnOff (yarp::dev::cameraFeature_id_t feature, bool &HasOnOff) override |
Check if the camera has the ability to turn on/off the requested feature. | |
yarp::dev::ReturnValue | setActive (yarp::dev::cameraFeature_id_t feature, bool onoff) override |
Set the requested feature on or off. | |
yarp::dev::ReturnValue | getActive (yarp::dev::cameraFeature_id_t feature, bool &isActive) override |
Get the current status of the feature, on or off. | |
yarp::dev::ReturnValue | hasAuto (yarp::dev::cameraFeature_id_t feature, bool &hasAuto) override |
Check if the requested feature has the 'auto' mode. | |
yarp::dev::ReturnValue | hasManual (yarp::dev::cameraFeature_id_t feature, bool &hasManual) override |
Check if the requested feature has the 'manual' mode. | |
yarp::dev::ReturnValue | hasOnePush (yarp::dev::cameraFeature_id_t feature, bool &hasOnePush) override |
Check if the requested feature has the 'onePush' mode. | |
yarp::dev::ReturnValue | setMode (yarp::dev::cameraFeature_id_t feature, yarp::dev::FeatureMode mode) override |
Set the requested mode for the feature. | |
yarp::dev::ReturnValue | getMode (yarp::dev::cameraFeature_id_t feature, yarp::dev::FeatureMode &mode) override |
Get the current mode for the feature. | |
yarp::dev::ReturnValue | setOnePush (yarp::dev::cameraFeature_id_t feature) override |
Set the requested feature to a value (saturation, brightness ... ) | |
![]() | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
virtual | ~DeviceDriver () |
virtual std::string | id () const |
Return the id assigned to the PolyDriver. | |
virtual void | setId (const std::string &id) |
Set the id for this device. | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. | |
![]() | |
virtual | ~IFrameGrabberControls () |
Destructor. | |
std::string | busType2String (BusType type) |
FeatureMode | toFeatureMode (bool _auto) |
![]() | |
virtual | ~IRGBDSensor () |
virtual yarp::dev::ReturnValue | getSensorStatus (RGBDSensor_status &status)=0 |
Get the current status of the sensor, using enum type. | |
![]() | |
virtual | ~IRgbVisualParams () |
![]() | |
virtual | ~IDepthVisualParams () |
![]() | |
RGBDSensor_nwc_yarp_ParamsParser () | |
~RGBDSensor_nwc_yarp_ParamsParser () override=default | |
bool | parseParams (const yarp::os::Searchable &config) override |
Parse the DeviceDriver parameters. | |
std::string | getDeviceClassName () const override |
Get the name of the DeviceDriver class. | |
std::string | getDeviceName () const override |
Get the name of the device (i.e. | |
std::string | getDocumentationOfDeviceParams () const override |
Get the documentation of the DeviceDriver's parameters. | |
std::vector< std::string > | getListOfParams () const override |
Return a list of all params used by the device. | |
bool | getParamValue (const std::string ¶mName, std::string ¶mValue) const override |
Return the value (represented as a string) of the requested parameter. | |
std::string | getConfiguration () const override |
Return the configuration of the device. | |
![]() | |
virtual | ~IDeviceDriverParams () |
Protected Attributes | |
yarp::os::Port | m_rpcPort |
RgbImageBufferedPort | m_colorFrame_StreamingPort |
FloatImageBufferedPort | m_depthFrame_StreamingPort |
std::mutex | m_mutex |
RGBDSensorMsgs | m_rgbdsensor_RPC |
yarp::dev::IRGBDSensor * | sensor_p {nullptr} |
IRGBDSensor::RGBDSensor_status | sensorStatus {IRGBDSensor::RGBD_SENSOR_NOT_READY} |
int | verbose {2} |
yarp::os::Stamp | colorStamp |
yarp::os::Stamp | depthStamp |
RGBDSensor_StreamingMsgParser * | streamingReader {nullptr} |
Additional Inherited Members | |
![]() | |
enum | RGBDSensor_status { RGBD_SENSOR_NOT_READY = 0 , RGBD_SENSOR_OK_STANDBY = 1 , RGBD_SENSOR_OK_IN_USE = 2 , RGB_SENSOR_ERROR = 3 , DEPTH_SENSOR_ERROR = 4 , RGBD_SENSOR_GENERIC_ERROR = 5 , RGBD_SENSOR_TIMEOUT = 6 } |
![]() | |
const std::string | m_device_classname = {"RGBDSensor_nwc_yarp"} |
const std::string | m_device_name = {"RGBDSensor_nwc_yarp"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
std::string | m_provided_configuration |
const std::string | m_period_defaultValue = {"0.03"} |
const std::string | m_localImagePort_defaultValue = {"/RGBD_nwc/Image:o"} |
const std::string | m_localDepthPort_defaultValue = {"/RGBD_nwc/Depth:o"} |
const std::string | m_remoteImagePort_defaultValue = {"/RGBD_nws/Image:o"} |
const std::string | m_remoteDepthPort_defaultValue = {"/RGBD_nws/Depth:i"} |
const std::string | m_localRpcPort_defaultValue = {"/RGBD_nwc/rpc:o"} |
const std::string | m_remoteRpcPort_defaultValue = {"/RGBD_nws/rpc:i"} |
const std::string | m_ImageCarrier_defaultValue = {"udp"} |
const std::string | m_DepthCarrier_defaultValue = {"udp"} |
double | m_period = {0.03} |
std::string | m_localImagePort = {"/RGBD_nwc/Image:o"} |
std::string | m_localDepthPort = {"/RGBD_nwc/Depth:o"} |
std::string | m_remoteImagePort = {"/RGBD_nws/Image:o"} |
std::string | m_remoteDepthPort = {"/RGBD_nws/Depth:i"} |
std::string | m_localRpcPort = {"/RGBD_nwc/rpc:o"} |
std::string | m_remoteRpcPort = {"/RGBD_nws/rpc:i"} |
std::string | m_ImageCarrier = {"udp"} |
std::string | m_DepthCarrier = {"udp"} |
RGBDSensor_nwc_yarp
: 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.
This device is paired with its server called RGBDSensor_nws_yarp to receive the data streams and perform remote operations.
Parameters required by this device are shown in class: RGBDSensor_nwc_yarp_ParamsParser
Definition at line 43 of file RGBDSensor_nwc_yarp.h.
RGBDSensor_nwc_yarp::RGBDSensor_nwc_yarp | ( | ) |
Definition at line 19 of file RGBDSensor_nwc_yarp.cpp.
|
delete |
|
delete |
|
override |
Definition at line 24 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 98 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the current status of the feature, on or off.
feature | the identifier of the feature to check |
isActive | flag true if the feature is active, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 426 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get a basic description of the camera hw.
This is mainly used to determine the HW bus type in order to choose the corresponding interface for advanced controls.
device | returns an identifier for the bus |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 363 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the minimum detectable variation in distance [meter].
accuracy | will return the sensor resolution in meters. |
Implements yarp::dev::IDepthVisualParams.
Definition at line 306 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the clipping planes of the sensor.
nearPlane | minimum distance at which the sensor start measuring. Object closer than this distance will not be detected. |
farPlane | maximum distance beyond which the sensor stop measuring. Object farther than this distance will not be detected. |
Implements yarp::dev::IDepthVisualParams.
Definition at line 321 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the field of view (FOV) of the depth camera.
horizontalFov | will return the value of the horizontal fov in degrees |
verticalFov | will return the value of the vertical fov in degrees |
Implements yarp::dev::IDepthVisualParams.
Definition at line 290 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Return the height of each frame.
Implements yarp::dev::IDepthVisualParams.
Definition at line 260 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the depth frame from the device.
depthImage | the depth image to be filled, depth measured in meters. |
timeStamp | time in which the image was acquired. Optional, ignored if nullptr. |
Implements yarp::dev::IRGBDSensor.
Definition at line 150 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the intrinsic parameters of the depth camera.
intrinsic | return a Property containing intrinsic parameters of the optical model of the camera. |
The yarp::os::Property describing the intrinsic parameters is expected to be in the form:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
physFocalLength | - | double | m | - | Yes | Physical focal length of the lens in meters | |
focalLengthX | - | double | pixel | - | Yes | Horizontal component of the focal length as a multiple of pixel width | |
focalLengthY | - | double | pixel | - | Yes | Vertical component of the focal length as a multiple of pixel height | |
principalPointX | - | double | pixel | - | Yes | X coordinate of the principal point | |
principalPointY | - | double | pixel | - | Yes | Y coordinate of the principal point | |
rectificationMatrix | - | 4x4 double matrix | - | - | Yes | Matrix that describes the lens' distortion | |
distortionModel | - | string | - | - | Yes | Reference to group of parameters describing the distortion model of the camera, example 'cameraDistortionModelGroup' | This is another group's name to be searched for in the config file |
cameraDistortionModelGroup | |||||||
name | string | - | - | Yes | Name of the distortion model, see notes | right now only 'plumb_bob' is supported | |
k1 | double | - | - | Yes | Radial distortion coefficient of the lens | ||
k2 | double | - | - | Yes | Radial distortion coefficient of the lens | ||
k3 | double | - | - | Yes | Radial distortion coefficient of the lens | ||
t1 | double | - | - | Yes | Tangential distortion of the lens | ||
t2 | double | - | - | Yes | Tangential distortion of the lens |
Implements yarp::dev::IDepthVisualParams.
Definition at line 337 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the mirroring setting of the sensor.
mirror | true if image is mirrored, false otherwise |
Implements yarp::dev::IDepthVisualParams.
Definition at line 345 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the resolution of the depth image from the camera.
width | image width |
height | image height |
Implements yarp::dev::IDepthVisualParams.
Definition at line 274 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Return the height of each frame.
Implements yarp::dev::IDepthVisualParams.
Definition at line 267 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the extrinsic parameters from the device.
extrinsic | return a rototranslation matrix describing the position of the depth optical frame with respect to the rgb frame |
Implements yarp::dev::IRGBDSensor.
Definition at line 109 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the current value for the requested feature.
feature | the identifier of the feature to read |
value | pointer to current value of the feature, from 0 to 1 expressed as a percentage |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 387 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the current value for the requested feature.
feature | the identifier of the feature to read |
value1 | returns the current value of the feature, from 0 to 1 expressed as a percentage |
value2 | returns the current value of the feature, from 0 to 1 expressed as a percentage |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 402 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the both the color and depth frame in a single call.
Implementation should assure the best possible synchronization is achieved accordingly to synch policy set by the user. TimeStamps are referred to acquisition time of the corresponding piece of information. If the device is not providing TimeStamps, then 'timeStamp' field should be set to '-1'.
colorFrame | pointer to FlexImage data to hold the color frame from the sensor |
depthFrame | pointer to FlexImage data to hold the depth frame from the sensor |
colorStamp | pointer to memory to hold the Stamp of the color frame |
depthStamp | pointer to memory to hold the Stamp of the depth frame |
Implements yarp::dev::IRGBDSensor.
Definition at line 162 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Return an error message in case of error.
For debugging purpose and user notification. Error message will be reset after any successful command
message | A string explaining the last error occurred. |
Implements yarp::dev::IRGBDSensor.
Definition at line 127 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the current mode for the feature.
feature | the identifier of the feature to change |
hasAuto | flag true if the feature is has 'auto' mode, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 465 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the field of view (FOV) of the rgb camera.
horizontalFov | will return the value of the horizontal fov in degrees |
verticalFov | will return the value of the vertical fov in degrees |
Implements yarp::dev::IRgbVisualParams.
Definition at line 218 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Return the height of each frame.
Implements yarp::dev::IRgbVisualParams.
Definition at line 180 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the rgb frame from the device.
The pixel type of the source image will usually be set as a VOCAB_PIXEL_RGB, but the user can call the function with the pixel type of his/her choice. The conversion if possible, will be done automatically on client side (TO BO VERIFIED). Note: this will consume CPU power because it will not use GPU optimization. Use VOCAB_PIXEL_RGB for best performances.
rgbImage | the image to be filled. |
timeStamp | time in which the image was acquired. Optional, ignored if nullptr. |
Implements yarp::dev::IRGBDSensor.
Definition at line 138 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the intrinsic parameters of the rgb camera.
intrinsic | return a Property containing intrinsic parameters of the optical model of the camera. |
The yarp::os::Property describing the intrinsic parameters is expected to be in the form:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
physFocalLength | - | double | m | - | Yes | Physical focal length of the lens in meters | |
focalLengthX | - | double | pixel | - | Yes | Horizontal component of the focal length as a multiple of pixel width | |
focalLengthY | - | double | pixel | - | Yes | Vertical component of the focal length as a multiple of pixel height | |
principalPointX | - | double | pixel | - | Yes | X coordinate of the principal point | |
principalPointY | - | double | pixel | - | Yes | Y coordinate of the principal point | |
rectificationMatrix | - | 4x4 double matrix | - | - | Yes | Matrix that describes the lens' distortion | |
distortionModel | - | string | - | - | Yes | Reference to group of parameters describing the distortion model of the camera, example 'cameraDistortionModelGroup' | This is another group's name to be searched for in the config file |
cameraDistortionModelGroup | |||||||
name | string | - | - | Yes | Name of the distortion model, see notes | right now only 'plumb_bob' is supported | |
k1 | double | - | - | Yes | Radial distortion coefficient of the lens | ||
k2 | double | - | - | Yes | Radial distortion coefficient of the lens | ||
k3 | double | - | - | Yes | Radial distortion coefficient of the lens | ||
t1 | double | - | - | Yes | Tangential distortion of the lens | ||
t2 | double | - | - | Yes | Tangential distortion of the lens |
Implements yarp::dev::IRgbVisualParams.
Definition at line 234 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the mirroring setting of the sensor.
mirror | true if image is mirrored, false otherwise |
Implements yarp::dev::IRgbVisualParams.
Definition at line 242 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the resolution of the rgb image from the camera.
width | image width |
height | image height |
Implements yarp::dev::IRgbVisualParams.
Definition at line 202 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Get the possible configurations of the camera.
configurations | list of camera supported configurations as CameraConfig type |
Implements yarp::dev::IRgbVisualParams.
Definition at line 194 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Return the width of each frame.
Implements yarp::dev::IRgbVisualParams.
Definition at line 187 of file RGBDSensor_nwc_yarp.cpp.
|
override |
Definition at line 118 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Check if the requested feature has the 'auto' mode.
feature | the identifier of the feature to check |
hasAuto | flag true if the feature is has 'auto' mode, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 434 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Check if camera has the requested feature (saturation, brightness ... )
feature | the identifier of the feature to check |
hasFeature | flag value: true if the feature is present, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 372 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Check if the requested feature has the 'manual' mode.
feature | the identifier of the feature to check |
hasAuto | flag true if the feature is has 'manual' mode, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 442 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Check if the requested feature has the 'onePush' mode.
feature | the identifier of the feature to check |
hasAuto | flag true if the feature is has 'onePush' mode, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 450 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Check if the camera has the ability to turn on/off the requested feature.
feature | the identifier of the feature to change |
hasOnOff | flag true if this feature can be turned on/off, false otherwise. |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 411 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 30 of file RGBDSensor_nwc_yarp.cpp.
|
delete |
|
delete |
|
overridevirtual |
Set the requested feature on or off.
feature | the identifier of the feature to change |
onoff | true to activate, off to deactivate the feature |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 419 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the minimum detectable variation in distance [meter] when possible.
the | desired resolution in meters. |
Implements yarp::dev::IDepthVisualParams.
Definition at line 314 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the clipping planes of the sensor.
nearPlane | minimum distance at which the sensor start measuring. Object closer than this distance will not be detected. |
farPlane | maximum distance beyond which the sensor stop measuring. Object farther than this distance will not be detected. |
Implements yarp::dev::IDepthVisualParams.
Definition at line 330 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the field of view (FOV) of the depth camera.
horizontalFov | will set the value of the horizontal fov in degrees |
verticalFov | will set the value of the vertical fov in degrees |
Implements yarp::dev::IDepthVisualParams.
Definition at line 299 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the mirroring setting of the sensor.
mirror | true if image should be mirrored, false otherwise |
Implements yarp::dev::IDepthVisualParams.
Definition at line 353 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the resolution of the depth image from the camera.
width | image width |
height | image height |
Implements yarp::dev::IDepthVisualParams.
Definition at line 283 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the requested feature to a value (saturation, brightness ... )
feature | the identifier of the feature to change |
value | new value of the feature, range from 0 to 1 expressed as a percentage |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 380 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the requested feature to a value using 2 params (like white balance)
feature | the identifier of the feature to change |
value1 | first param, from 0 to 1 expressed as a percentage |
value2 | second param, from 0 to 1 expressed as a percentage |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 395 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the requested mode for the feature.
feature | the identifier of the feature to change |
auto_onoff | true to activate 'auto' mode, false to activate 'manual' mode |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 458 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the requested feature to a value (saturation, brightness ... )
feature | the identifier of the feature to change |
value | new value of the feature, from 0 to 1 as a percentage of param range |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 473 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the field of view (FOV) of the rgb camera.
horizontalFov | will set the value of the horizontal fov in degrees |
verticalFov | will set the value of the vertical fov in degrees |
Implements yarp::dev::IRgbVisualParams.
Definition at line 227 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the mirroring setting of the sensor.
mirror | true if image should be mirrored, false otherwise |
Implements yarp::dev::IRgbVisualParams.
Definition at line 250 of file RGBDSensor_nwc_yarp.cpp.
|
overridevirtual |
Set the resolution of the rgb image from the camera.
width | image width |
height | image height |
Implements yarp::dev::IRgbVisualParams.
Definition at line 211 of file RGBDSensor_nwc_yarp.cpp.
|
protected |
Definition at line 64 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 65 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 53 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 54 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 56 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 57 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 50 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 60 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 61 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 68 of file RGBDSensor_nwc_yarp.h.
|
protected |
Definition at line 62 of file RGBDSensor_nwc_yarp.h.