46 #ifndef _vpServolens_h_
47 #define _vpServolens_h_
49 #include <visp3/core/vpConfig.h>
51 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
53 #include <visp3/core/vpCameraParameters.h>
54 #include <visp3/core/vpConfig.h>
55 #include <visp3/core/vpImage.h>
94 class VISP_EXPORT vpServolens
97 typedef enum { ZOOM = 1, FOCUS = 2, IRIS = 3 } vpServoType;
107 typedef enum { AUTO = 1, CONTROLLED = 2, RELEASED = 3 } vpControllerType;
110 VP_EXPLICIT vpServolens(
const char *port);
111 virtual ~vpServolens();
113 void open(
const char *port =
"/dev/ttyS0");
117 void setController(vpControllerType controller)
const;
118 void setAutoIris(
bool enable)
const;
119 void setPosition(vpServoType servo,
unsigned int position)
const;
120 bool getPosition(vpServoType servo,
unsigned int &position)
const;
123 void enablePrompt(
bool active)
const;
129 void wait(vpServoType servo)
const;
131 bool read(
char *c,
long timeout_s)
const;
132 void write(
const char *s)
const;
134 bool clean(
const char *in,
char *out)
const;
Generic class defining intrinsic camera parameters.
VISP_EXPORT int wait(double t0, double t)