52 #include "playerconfig.h"
68 #define PLAYER_MAX_MESSAGE_SIZE 8388608
70 #define PLAYER_MAX_PAYLOAD_SIZE (PLAYER_MAX_MESSAGE_SIZE - sizeof(player_msghdr_t))
72 #define PLAYER_MAX_DRIVER_STRING_LEN 64
74 #define PLAYER_MAX_DEVICES 4096
76 #define PLAYER_MSGQUEUE_DEFAULT_MAXLEN 1024
78 #define PLAYER_IDENT_STRING "Player v."
80 #define PLAYER_IDENT_STRLEN 32
82 #define PLAYER_KEYLEN 32
95 #define PLAYER_MSGTYPE_DATA 1
99 #define PLAYER_MSGTYPE_CMD 2
106 #define PLAYER_MSGTYPE_REQ 3
112 #define PLAYER_MSGTYPE_RESP_ACK 4
117 #define PLAYER_MSGTYPE_SYNCH 5
125 #define PLAYER_MSGTYPE_RESP_NACK 6
396 #define PLAYER_CAPABILITIES_REQ 255
398 #define PLAYER_CAPABILTIES_REQ 255
429 #define PLAYER_GET_INTPROP_REQ 254
431 #define PLAYER_SET_INTPROP_REQ 253
433 #define PLAYER_GET_DBLPROP_REQ 252
435 #define PLAYER_SET_DBLPROP_REQ 251
437 #define PLAYER_GET_STRPROP_REQ 250
439 #define PLAYER_SET_STRPROP_REQ 249
441 #define PLAYER_GET_BOOLPROP_REQ 248
443 #define PLAYER_SET_BOOLPROP_REQ 247
536 #include <libplayerinterface/player_interfaces.h>
Request to get an integer property.
Definition: player.h:457
uint32_t key_count
The property key's length.
Definition: player.h:460
double proll
roll [rad]
Definition: player.h:236
struct player_pose2d player_pose2d_t
A pose in the plane.
uint32_t host
The "host" on which the device resides.
Definition: player.h:147
double sw
Width [m].
Definition: player.h:247
uint32_t timestamp_usec
Time of entry creation.
Definition: player.h:285
struct player_intprop_req player_intprop_req_t
Request to get an integer property.
double py
Y [m].
Definition: player.h:198
A rectangular bounding box, used to define the size of an object.
Definition: player.h:253
uint32_t key_count
Length of key in bytes.
Definition: player.h:267
uint32_t key_count
The property key's length.
Definition: player.h:449
uint8_t * data
Entry data.
Definition: player.h:281
struct player_dblprop_req player_dblprop_req_t
Request to get a double property.
double px
X [m].
Definition: player.h:230
double py
Y [m].
Definition: player.h:188
A pose in the plane.
Definition: player.h:216
char value
The property value.
Definition: player.h:453
double y1
Endpoints [m].
Definition: player.h:299
struct player_segment player_segment_t
A line segment, used to construct vector-based maps.
uint32_t subtype
The subtype of the requested capability (i.e.
Definition: player.h:407
An angle in 3D space.
Definition: player.h:205
double px
X [m].
Definition: player.h:186
double ppitch
pitch [rad]
Definition: player.h:210
Generic message header.
Definition: player.h:160
double pz
Z [m].
Definition: player.h:234
char * group
Second identifier.
Definition: player.h:273
double x1
Endpoints [m].
Definition: player.h:297
A color descriptor.
Definition: player.h:319
uint8_t type
Message type; must be one of PLAYER_MSGTYPE_*.
Definition: player.h:165
uint32_t type
The type of the requested capability (i.e.
Definition: player.h:405
struct player_capabilities_req player_capabilities_req_t
Structure containing a single capability request.
double px
X [m].
Definition: player.h:219
struct player_pose3d player_pose3d_t
A pose in space.
A line segment, used to construct vector-based maps.
Definition: player.h:290
double x1
Endpoints [m].
Definition: player.h:313
double pyaw
yaw [rad]
Definition: player.h:240
A point in 3D space.
Definition: player.h:193
uint8_t subtype
Message subtype; interface specific.
Definition: player.h:167
uint32_t robot
The "robot" or device collection in which the device resides.
Definition: player.h:150
struct player_point_2d player_point_2d_t
A point in the plane.
uint16_t type
Entry data type.
Definition: player.h:275
struct player_extent2d player_extent2d_t
A rectangular bounding box, used to define the origin and bounds of an object.
uint8_t blue
Blue color channel.
Definition: player.h:328
uint32_t group_count
Second identifier count.
Definition: player.h:271
char * key
Identifier for the entry.
Definition: player.h:269
struct player_msghdr player_msghdr_t
Generic message header.
uint8_t red
Red color channel.
Definition: player.h:324
double py
Y [m].
Definition: player.h:221
Request to get a double property.
Definition: player.h:468
int32_t value
The property value.
Definition: player.h:464
double px
X [m].
Definition: player.h:196
double x0
Endpoints [m].
Definition: player.h:293
struct player_bbox2d player_bbox2d_t
A rectangular bounding box, used to define the size of an object.
double ppitch
pitch [rad]
Definition: player.h:238
double sh
Height [m].
Definition: player.h:260
A rectangular bounding box, used to define the origin and bounds of an object.
Definition: player.h:306
Structure for messages returning a single integer.
Definition: player.h:339
double x0
Origin x [m].
Definition: player.h:309
struct player_boolprop_req player_boolprop_req_t
Request to get a boolean property.
struct player_color player_color_t
A color descriptor.
double sl
Length [m].
Definition: player.h:258
A rectangular bounding box, used to define the size of an object.
Definition: player.h:244
double proll
roll [rad]
Definition: player.h:208
double sw
Width [m].
Definition: player.h:256
double pz
Z [m].
Definition: player.h:200
A device address.
Definition: player.h:144
double py
Y [m].
Definition: player.h:232
char * key
The property key.
Definition: player.h:484
double y0
Origin y [m].
Definition: player.h:311
uint8_t state
state
Definition: player.h:335
A boolean variable, 0 for false anything else for true.
Definition: player.h:332
char * key
The property key.
Definition: player.h:451
char * key
The property key.
Definition: player.h:473
A pose in space.
Definition: player.h:227
struct player_strprop_req player_strprop_req_t
Request to get a string property.
uint32_t timestamp_sec
Time of entry creation.
Definition: player.h:283
uint32_t seq
For keeping track of associated messages.
Definition: player.h:171
struct player_bbox3d player_bbox3d_t
A rectangular bounding box, used to define the size of an object.
struct player_devaddr player_devaddr_t
A device address.
double y0
Endpoints [m].
Definition: player.h:295
struct player_blackboard_entry player_blackboard_entry_t
Vectormap feature data.
A point in the plane.
Definition: player.h:183
struct player_orientation_3d player_orientation_3d_t
An angle in 3D space.
double timestamp
Time associated with message contents (seconds since epoch)
Definition: player.h:169
uint32_t size
Size in bytes of the payload to follow.
Definition: player.h:173
char * key
The property key.
Definition: player.h:462
Structure containing a single capability request.
Definition: player.h:402
double sl
Length [m].
Definition: player.h:249
struct player_uint32 player_uint32_t
Structure for messages returning a single integer.
double pyaw
yaw [rad]
Definition: player.h:212
double y1
Endpoints [m].
Definition: player.h:315
uint8_t alpha
Alpha (transparency) channel.
Definition: player.h:322
double pa
yaw [rad]
Definition: player.h:223
uint32_t key_count
The property key's length.
Definition: player.h:482
uint32_t key_count
The property key's length.
Definition: player.h:471
char * value
The property value.
Definition: player.h:488
Request to get a string property.
Definition: player.h:479
Vectormap feature data.
Definition: player.h:264
uint32_t value_count
The property's length.
Definition: player.h:486
Request to get a boolean property.
Definition: player.h:446
double value
The property value.
Definition: player.h:475
struct player_point_3d player_point_3d_t
A point in 3D space.
uint32_t data_count
Entry data length.
Definition: player.h:279
uint16_t subtype
Entry data subtype.
Definition: player.h:277
uint16_t index
Which device of that interface.
Definition: player.h:154
player_devaddr_t addr
Device to which this message pertains.
Definition: player.h:163
struct player_bool player_bool_t
A boolean variable, 0 for false anything else for true.
uint16_t interf
The interface provided by the device; must be one of PLAYER_*_CODE.
Definition: player.h:152
uint8_t green
Green color channel.
Definition: player.h:326