27 void heapsort(
TAsoc a[],
int n);
Request to get an integer property.
Definition: player.h:457
String Property Class.
Definition: property.h:169
#define PLAYER_MSG1(level, msg, a)
Error message macros.
Definition: error.h:105
uint32_t host
The "host" on which the device resides.
Definition: player.h:147
#define PLAYER_LASER_DATA_SCAN
Data subtype: scan.
Definition: player_interfaces.h:845
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:158
double px
X [m].
Definition: player.h:230
#define PLAYER_SET_STRPROP_REQ
String property set request subtype.
Definition: player.h:439
player_pose3d_t pose
Laser pose, in robot cs (m, m, m, rad, rad, rad).
Definition: player_interfaces.h:948
Generic message header.
Definition: player.h:160
int Subscribe(QueuePointer &sub_queue)
Subscribe the given queue to this device.
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:657
Encapsulates a device (i.e., a driver bound to an interface)
Definition: device.h:73
double pyaw
yaw [rad]
Definition: player.h:240
uint32_t robot
The "robot" or device collection in which the device resides.
Definition: player.h:150
virtual void Main(void)=0
Main method for driver thread.
#define PLAYER_MSG4(level, msg, a, b, c, d)
Error message macros.
Definition: error.h:108
void * GetPayload()
Get pointer to payload.
Definition: message.h:187
#define PLAYER_MSGTYPE_DATA
A data message.
Definition: player.h:94
int32_t value
The property value.
Definition: player.h:464
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:111
uint32_t id
A unique, increasing, ID for the scan.
Definition: player_interfaces.h:902
float * ranges
Range readings [m].
Definition: player_interfaces.h:896
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
#define PLAYER_MSGTYPE_REQ
A request message.
Definition: player.h:105
#define PLAYER_LASER_REQ_GET_GEOM
Request/reply subtype: get geometry.
Definition: player_interfaces.h:854
Integer property class.
Definition: property.h:113
double sl
Length [m].
Definition: player.h:258
Request/reply: Get geometry.
Definition: player_interfaces.h:945
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.
Class for loading configuration file information.
Definition: configfile.h:195
double sw
Width [m].
Definition: player.h:256
#define PLAYER_CAPABILITIES_REQ
Capability request message type.
Definition: player.h:396
A device address.
Definition: player.h:144
An autopointer for the message queue.
Definition: message.h:72
double py
Y [m].
Definition: player.h:232
char * key
The property key.
Definition: player.h:484
#define PLAYER_ERROR1(msg, a)
Error message macros.
Definition: error.h:81
#define PLAYER_ERROR(msg)
Error message macros.
Definition: error.h:80
Base class for drivers which oeprate with a thread.
Definition: driver.h:551
char * key
The property key.
Definition: player.h:462
player_bbox3d_t size
Laser dimensions (m, m, m).
Definition: player_interfaces.h:950
Reference-counted message objects.
Definition: message.h:131
Base class for all drivers.
Definition: driver.h:107
char * value
The property value.
Definition: player.h:488
uint32_t intensity_count
Number of intensity readings.
Definition: player_interfaces.h:898
Request to get a string property.
Definition: player.h:479
#define PLAYER_ERROR3(msg, a, b, c)
Error message macros.
Definition: error.h:83
#define PLAYER_MSG0(level, msg)
General messages.
Definition: error.h:104
uint32_t ranges_count
Number of range readings.
Definition: player_interfaces.h:894
int Unsubscribe(QueuePointer &sub_queue)
Unsubscribe the given queue from this device.
#define PLAYER_SET_INTPROP_REQ
Integer property set request subtype.
Definition: player.h:431
Data: scan (PLAYER_LASER_DATA_SCAN)
Definition: player_interfaces.h:883
player_msghdr_t * GetHeader()
Get pointer to header.
Definition: message.h:185
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
uint16_t interf
The interface provided by the device; must be one of PLAYER_*_CODE.
Definition: player.h:152
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:75
uint8_t * intensity
Intensity readings.
Definition: player_interfaces.h:900