31 #ifndef FLIR_PTU_DRIVER_DRIVER_H 32 #define FLIR_PTU_DRIVER_DRIVER_H 35 #define PTU_DEFAULT_BAUD 9600 36 #define PTU_BUFFER_LEN 255 37 #define PTU_DEFAULT_PORT "/dev/ttyUSB0" 38 #define PTU_DEFAULT_HZ 10 39 #define PTU_DEFAULT_VEL 0.0 46 #define PTU_MIN_SPEED 'l' 47 #define PTU_MAX_SPEED 'u' 48 #define PTU_VELOCITY 'v' 49 #define PTU_POSITION 'i' 68 ser_(ser), initialized_(false)
85 float getPosition(
char type);
91 float getSpeed(
char type);
108 return getResolution(type) * (type ==
PTU_TILT ? TMin : PMin);
116 return getResolution(type) * (type ==
PTU_TILT ? TMax : PMax);
125 return getResolution(type) * (type ==
PTU_TILT ? TSMin : PSMin);
133 return getResolution(type) * (type ==
PTU_TILT ? TSMax : PSMax);
144 bool setPosition(
char type,
float pos,
bool Block =
false);
152 bool setSpeed(
char type,
float speed);
159 bool setMode(
char type);
174 float getRes(
char type);
182 int getLimit(
char type,
char limType);
203 std::string sendCommand(std::string command);
214 #endif // FLIR_PTU_DRIVER_DRIVER_H
int TMin
Min Tilt in Counts.
int PMin
Min Pan in Counts.
ROSCONSOLE_DECL void initialize()
bool Lim
Position Limits enabled.
float getMaxSpeed(char type)
float getResolution(char type)
float getMinSpeed(char type)
int PSMin
Min Pan Speed in Counts/second.
int TSMax
Max Tilt Speed in Counts/second.
int PMax
Max Pan in Counts.
float tr
tilt resolution (rads/count)
int PSMax
Max Pan Speed in Counts/second.
int TSMin
Min Tilt Speed in Counts/second.
float pr
pan resolution (rads/count)
int TMax
Max Tilt in Counts.