40 #ifndef _vpServolens_h_
41 #define _vpServolens_h_
43 #include <visp3/core/vpConfig.h>
45 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
56 #include <visp3/core/vpCameraParameters.h>
57 #include <visp3/core/vpImage.h>
95 typedef enum { ZOOM = 1, FOCUS = 2, IRIS = 3 } vpServoType;
104 typedef enum { AUTO = 1, CONTROLLED = 2, RELEASED = 3 } vpControllerType;
110 void open(
const char *port =
"/dev/ttyS0");
114 void setController(vpControllerType controller)
const;
115 void setAutoIris(
bool enable)
const;
116 void setPosition(vpServoType servo,
unsigned int position)
const;
117 bool getPosition(vpServoType servo,
unsigned int &position)
const;
120 void enablePrompt(
bool active)
const;
126 void wait(vpServoType servo)
const;
128 bool read(
char *c,
long timeout_s)
const;
129 void write(
const char *s)
const;
131 bool clean(
const char *in,
char *out)
const;
Generic class defining intrinsic camera parameters.
Interface for the Servolens lens attached to the camera fixed on the Afma4 robot.