@@ -430,6 +430,7 @@ MAKE_COMMS(Bottle)
430430%include <yarp/dev/ISpeechTranscription.h>
431431%include <yarp/dev/ILLM.h>
432432%include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
433+ %include <yarp/dev/IRGBDSensor.h>
433434%include <yarp/dev/IFrameTransform.h>
434435
435436%template(DVector) std::vector<double>;
@@ -823,6 +824,7 @@ typedef yarp::os::BufferedPort<ImageRgbFloat> BufferedPortImageRgbFloat;
823824 CAST_POLYDRIVER_TO_INTERFACE (ISpeechTranscription)
824825 CAST_POLYDRIVER_TO_INTERFACE (ILLM)
825826 CAST_POLYDRIVER_TO_INTERFACE (IFrameTransform)
827+ CAST_POLYDRIVER_TO_INTERFACE (IRGBDSensor)
826828
827829// These views are currently disabled in SWIG + java generator since they are
828830// useless without the EXTENDED_ANALOG_SENSOR_INTERFACE part.
@@ -2044,6 +2046,16 @@ public:
20442046 }
20452047}
20462048
2049+ // ////////////////////////////////////////////////////////////////////////
2050+ // Adding IRGBDSensor
2051+ %extend yarp::dev::IRGBDSensor {
2052+ bool getRgbImage (yarp::sig::FlexImage& rgbImage) {
2053+ yarp::os::Stamp timeStamp;
2054+ bool ok = self->getRgbImage (rgbImage, &timeStamp);
2055+ return ok;
2056+ }
2057+ }
2058+
20472059// ////////////////////////////////////////////////////////////////////////
20482060// Just in Python (and in yarp bindings itself, not in downstream bindings
20492061// that include yarp.i) add some code to automatically call
0 commit comments