handler.h
#define PLAYER_ACTARRAY_ACTSTATE_STALLED
Stalled state code.
Definition: player_interfaces.h:3779
Definition: handler.h:45
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:159
#define PLAYER_CAMERA_FORMAT_RGB565
Image format : 16-bit color (5 bits R, 6 bits G, 5 bits B).
Definition: player_interfaces.h:2940
#define PLAYER_CAMERA_FORMAT_RGB888
Image format : 24-bit color (8 bits R, 8 bits G, 8 bits B).
Definition: player_interfaces.h:2942
#define PLAYER_GRIPPER_STATE_CLOSED
Gripper state: closed.
Definition: player_interfaces.h:401
uint8_t type
Message type; must be one of PLAYER_MSGTYPE_*.
Definition: player.h:166
const char * ReadString(int section, const char *name, const char *value)
Read a string value.
#define PLAYER_ACTARRAY_ACTSTATE_BRAKED
Braked state code.
Definition: player_interfaces.h:3777
#define PLAYER_PTZ_POSITION_CONTROL
Control mode, for use with PLAYER_PTZ_REQ_CONTROL_MODE.
Definition: player_interfaces.h:1221
#define PLAYER_ACTARRAY_ACTSTATE_IDLE
Idle state code.
Definition: player_interfaces.h:3773
const char * ReadTupleString(int section, const char *name, int index, const char *value)
Read a string from a tuple field.
#define PLAYER_CAMERA_FORMAT_MONO16
Image format : 16-bit monochrome (network byte order).
Definition: player_interfaces.h:2938
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:112
#define PLAYER_ACTARRAY_TYPE_ROTARY
Rotary type code.
Definition: player_interfaces.h:3784
#define PLAYER_GRIPPER_STATE_OPEN
Gripper state: open.
Definition: player_interfaces.h:399
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
#define PLAYER_GRIPPER_STATE_ERROR
Gripper state: error.
Definition: player_interfaces.h:405
Definition: handler.h:40
#define PLAYER_MSGTYPE_RESP_NACK
A negative response message.
Definition: player.h:125
#define PLAYER_GRIPPER_STATE_MOVING
Gripper state: moving.
Definition: player_interfaces.h:403
#define PLAYER_ACTARRAY_ACTSTATE_MOVING
Moving state code.
Definition: player_interfaces.h:3775
int ReadDeviceAddr(player_devaddr_t *addr, int section, const char *name, int code, int index, const char *key)
Read a device id.
int GetTupleCount(int section, const char *name)
Get the number of values in a tuple.
#define PLAYER_ACTARRAY_TYPE_LINEAR
Linear type code.
Definition: player_interfaces.h:3782
#define PLAYER_PTZ_VELOCITY_CONTROL
Control mode, for use with PLAYER_PTZ_REQ_CONTROL_MODE.
Definition: player_interfaces.h:1219
#define PLAYER_CAMERA_COMPRESS_RAW
Compression method: raw.
Definition: player_interfaces.h:2945
#define PLAYER_CAMERA_FORMAT_MONO8
Image format : 8-bit monochrome.
Definition: player_interfaces.h:2936
double timestamp
Time associated with message contents (seconds since epoch)
Definition: player.h:170
player_devaddr_t addr
Device to which this message pertains.
Definition: player.h:164
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:76
#define PLAYER_CAMERA_COMPRESS_JPEG
Compression method: jpeg.
Definition: player_interfaces.h:2947