CameraStereoVideo: added resolution options for usb camera

This commit is contained in:
matlabbe
2021-02-25 22:22:44 -05:00
parent cad184e82b
commit 862eb0a90a
4 changed files with 121 additions and 20 deletions

View File

@@ -70,6 +70,8 @@ public:
virtual bool isCalibrated() const;
virtual std::string getSerial() const;
void setResolution(int width, int height) {_width=width, _height=height;}
protected:
virtual SensorData captureImage(CameraInfo * info = 0);
@@ -84,6 +86,8 @@ private:
CameraVideo::Source src_;
int usbDevice_;
int usbDevice2_;
int _width;
int _height;
};
} // namespace rtabmap