43 #ifndef __vpServolens_h
44 #define __vpServolens_h
46 #include <visp/vpConfig.h>
48 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
59 #include <visp/vpCameraParameters.h>
60 #include <visp/vpImage.h>
95 class VISP_EXPORT vpServolens
118 vpServolens(
const char *port);
121 void open(
const char *port=
"/dev/ttyS0");
125 void setController(vpControllerType controller)
const;
126 void setAutoIris(
bool enable)
const;
127 void setPosition(vpServoType servo,
unsigned int position)
const;
128 bool getPosition(vpServoType servo,
unsigned int &position)
const;
131 void enablePrompt(
bool active)
const;
137 void enableCmdComplete(vpServoType servo,
bool active)
const;
140 void wait(vpServoType servo)
const;
142 bool read(
char *c,
long timeout_s)
const;
143 void write(
const char *s)
const;
145 bool clean(
const char *in,
char *out)
const;
Generic class defining intrinsic camera parameters.