35 public yarp::dev::DeviceDriver,
36 public yarp::dev::IFrameGrabberControls,
37 public yarp::dev::IFrameGrabberImage,
38 public yarp::dev::IRgbVisualParams
41#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
42 constexpr static auto ret_ok = yarp::dev::ReturnValue::return_code::return_value_ok;
46 bool open(yarp::os::Searchable & config)
override;
47 bool close()
override;
50#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
51 yarp::dev::ReturnValue getCameraDescription(yarp::dev::CameraDescriptor & camera)
override;
52 yarp::dev::ReturnValue hasFeature(yarp::dev::cameraFeature_id_t feature,
bool & hasFeature)
override;
53 yarp::dev::ReturnValue setFeature(yarp::dev::cameraFeature_id_t feature,
double value)
override;
54 yarp::dev::ReturnValue getFeature(yarp::dev::cameraFeature_id_t feature,
double & value)
override;
55 yarp::dev::ReturnValue setFeature(yarp::dev::cameraFeature_id_t feature,
double value1,
double value2)
override;
56 yarp::dev::ReturnValue getFeature(yarp::dev::cameraFeature_id_t feature,
double & value1,
double & value2)
override;
57 yarp::dev::ReturnValue hasOnOff(yarp::dev::cameraFeature_id_t feature,
bool & hasOnOff)
override;
58 yarp::dev::ReturnValue setActive(yarp::dev::cameraFeature_id_t feature,
bool onoff)
override;
59 yarp::dev::ReturnValue getActive(yarp::dev::cameraFeature_id_t feature,
bool & isActive)
override;
60 yarp::dev::ReturnValue hasAuto(yarp::dev::cameraFeature_id_t feature,
bool & hasAuto)
override;
61 yarp::dev::ReturnValue hasManual(yarp::dev::cameraFeature_id_t feature,
bool & hasManual)
override;
62 yarp::dev::ReturnValue hasOnePush(yarp::dev::cameraFeature_id_t feature,
bool & hasOnePush)
override;
63 yarp::dev::ReturnValue setMode(yarp::dev::cameraFeature_id_t feature, yarp::dev::FeatureMode mode)
override;
64 yarp::dev::ReturnValue getMode(yarp::dev::cameraFeature_id_t feature, yarp::dev::FeatureMode & mode)
override;
65 yarp::dev::ReturnValue setOnePush(yarp::dev::cameraFeature_id_t feature)
override;
67 bool getCameraDescription(CameraDescriptor * camera)
override;
68 bool hasFeature(
int feature,
bool * hasFeature)
override;
69 bool setFeature(
int feature,
double value)
override;
70 bool getFeature(
int feature,
double * value)
override;
71 bool setFeature(
int feature,
double value1,
double value2)
override;
72 bool getFeature(
int feature,
double * value1,
double * value2)
override;
73 bool hasOnOff(
int feature,
bool * HasOnOff)
override;
74 bool setActive(
int feature,
bool onoff)
override;
75 bool getActive(
int feature,
bool * isActive)
override;
76 bool hasAuto(
int feature,
bool * hasAuto)
override;
77 bool hasManual(
int feature,
bool * hasManual)
override;
78 bool hasOnePush(
int feature,
bool * hasOnePush)
override;
79 bool setMode(
int feature, FeatureMode mode)
override;
80 bool getMode(
int feature, FeatureMode * mode)
override;
81 bool setOnePush(
int feature)
override;
85#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
86 yarp::dev::ReturnValue getImage(yarp::sig::ImageOf<yarp::sig::PixelRgb> & image)
override;
88 bool getImage(yarp::sig::ImageOf<yarp::sig::PixelRgb>& image)
override;
90 int height()
const override;
91 int width()
const override;
94#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
95 yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector<yarp::dev::CameraConfig> & configurations)
override {
return ret_ok; }
96 yarp::dev::ReturnValue getRgbResolution(
int & width,
int & height)
override {
return ret_ok; }
97 yarp::dev::ReturnValue setRgbResolution(
int width,
int height)
override {
return ret_ok; }
98 yarp::dev::ReturnValue getRgbFOV(
double & horizontalFov,
double & verticalFov)
override {
return ret_ok; }
99 yarp::dev::ReturnValue setRgbFOV(
double horizontalFov,
double verticalFov)
override {
return ret_ok; }
100#if YARP_VERSION_COMPARE(>=, 4, 1, 0) || defined(YARP_NEXT)
101 yarp::dev::ReturnValue getRgbIntrinsicParam(yarp::sig::IntrinsicParams & intrinsic)
override {
return ret_ok; }
103 yarp::dev::ReturnValue getRgbIntrinsicParam(yarp::os::Property & intrinsic)
override {
return ret_ok; }
105 yarp::dev::ReturnValue getRgbMirroring(
bool & mirror)
override {
return ret_ok; }
106 yarp::dev::ReturnValue setRgbMirroring(
bool mirror)
override {
return ret_ok; }
108 bool getRgbSupportedConfigurations(yarp::sig::VectorOf<yarp::dev::CameraConfig> & configurations)
override {
return true; }
109 bool getRgbResolution(
int & width,
int & height)
override {
return true; }
110 bool setRgbResolution(
int width,
int height)
override {
return true; }
111 bool getRgbFOV(
double & horizontalFov,
double & verticalFov)
override {
return true; }
112 bool setRgbFOV(
double horizontalFov,
double verticalFov)
override {
return true; }
113 bool getRgbIntrinsicParam(yarp::os::Property & intrinsic)
override {
return true; }
114 bool getRgbMirroring(
bool & mirror)
override {
return true; }
115 bool setRgbMirroring(
bool mirror)
override {
return true; }
117 int getRgbHeight()
override;
118 int getRgbWidth()
override;
125 OpenRAVE::SensorBasePtr sensorBasePtr;
126 boost::shared_ptr<OpenRAVE::SensorBase::CameraSensorData> sensorDataPtr;
127 boost::shared_ptr<OpenRAVE::SensorBase::CameraGeomData> modGeomDataPtr;
130#if YARP_VERSION_COMPARE(>=, 4, 0, 0)
131 yarp::dev::CameraDescriptor cameraDescriptor;
133 CameraDescriptor cameraDescriptor;