27 #include <p2os_msgs/PTZState.h>
138 void callback(
const p2os_msgs::PTZStateConstPtr &msg);
142 int sendRequest(
unsigned char *str,
int len,
unsigned char* reply);
Controls operation of IR lighting.
Illegal parameters to function call.
static const int MAX_COMMAND_LENGTH
Stops current pan/tilt motion.
p2os_msgs::PTZState getCurrentState()
Requests max zoom position.
P2OSPtz(P2OSNode *p2os, bool bidirectional_com=false)
Controls the IR cut filter.
Request pan/tilt position.
int setDefaultTiltRange()
Request pan/tilt min/max slew.
Pan/tilt min/max range assignment.
int sendCommand(unsigned char *str, int len)
Sets gain adjustment on camera.
Puts camera in Control mode.
int getAbsPanTilt(int *pan, int *tilt)
static const int PACKET_TIMEOUT
int receiveCommandAnswer(int asize)
Not in host control mode.
void putOnBuf(unsigned char c)
Packet header for response.
int sendAbsZoom(int zoom)
Controls the digital zoom amount.
Requests the product name.
static const int TILT_THRESH
void getPtzPacket(int s1, int s2=0)
static const int SLEEP_TIME_USEC
void callback(const p2os_msgs::PTZStateConstPtr &msg)
static const int COMMAND_RESPONSE_BYTES
int sendAbsPanTilt(int pan, int tilt)
Controls auto-focusing functions.
static const int PAN_THRESH
int receiveRequestAnswer(unsigned char *data, int s1, int s2)
static const int MAX_REQUEST_LENGTH
Request pan/tilt min/max angle.
static const int ZOOM_THRESH
int getAbsZoom(int *zoom)
Unknown error condition. Should never happen.
int sendRequest(unsigned char *str, int len, unsigned char *reply)
Camera busy, will not execute the command.
int getMaxZoom(int *max_zoom)
p2os_msgs::PTZState current_state_