Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

PtzProxy Class Reference
[Proxies]

#include <playerclient.h>

Inherits ClientProxy.

List of all members.


Detailed Description

The PtzProxy class is used to control a ptz device. The state of the camera can be read from the pan, tilt, zoom attributes and changed using the SetCam() method.


Public Member Functions

 PtzProxy (PlayerClient *pc, unsigned short index, unsigned char access='c')
int SetCam (double pan, double tilt, double zoom)
int SetSpeed (double panspeed, double tiltspeed)
void FillData (player_msghdr_t hdr, const char *buffer)
int SendConfig (uint8_t *bytes, size_t len, uint8_t *reply=NULL, size_t reply_len=0)
 Send a camera-specific config.

int SelectControlMode (uint8_t mode)
void Print ()
 Print out current ptz state.


Public Attributes

double pan
 Pan, tilt, and field of view values (all radians).

double tilt
 Pan, tilt, and field of view values (all radians).

double zoom
 Pan, tilt, and field of view values (all radians).

double panspeed
 Pan and tilt speeds (rad/sec).

double tiltspeed
 Pan and tilt speeds (rad/sec).


Constructor & Destructor Documentation

PtzProxy::PtzProxy PlayerClient pc,
unsigned short  index,
unsigned char  access = 'c'
[inline]
 

Constructor. Leave the access field empty to start unconnected.


Member Function Documentation

int PtzProxy::SetCam double  pan,
double  tilt,
double  zoom
 

Change the camera state. Specify the new pan, tilt, and zoom values (all degrees). Returns: 0 if everything's ok, -1 otherwise.

int PtzProxy::SetSpeed double  panspeed,
double  tiltspeed
 

Specify new target velocities

void PtzProxy::FillData player_msghdr_t  hdr,
const char *  buffer
[virtual]
 

All proxies must provide this method. It is used internally to parse new data when it is received.

Reimplemented from ClientProxy.

int PtzProxy::SendConfig uint8_t *  bytes,
size_t  len,
uint8_t *  reply = NULL,
size_t  reply_len = 0
 

Send a camera-specific config.

int PtzProxy::SelectControlMode uint8_t  mode  ) 
 

Select new control mode. Use either PLAYER_PTZ_POSITION_CONTROL or PLAYER_PTZ_VELOCITY_CONTROL.

void PtzProxy::Print  )  [virtual]
 

Print out current ptz state.

Reimplemented from ClientProxy.


Member Data Documentation

double PtzProxy::pan
 

Pan, tilt, and field of view values (all radians).

double PtzProxy::tilt
 

Pan, tilt, and field of view values (all radians).

double PtzProxy::zoom
 

Pan, tilt, and field of view values (all radians).

double PtzProxy::panspeed
 

Pan and tilt speeds (rad/sec).

double PtzProxy::tiltspeed
 

Pan and tilt speeds (rad/sec).


The documentation for this class was generated from the following file:
Generated on Tue May 3 14:16:05 2005 for Player by doxygen 1.3.6