lasertransform.h
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
Definition: toranger.cc:91
virtual void Publish(player_devaddr_t addr, QueuePointer &queue, uint8_t type, uint8_t subtype, void *src=NULL, size_t deprecated=0, double *timestamp=NULL, bool copy=true)
Publish a message via one of this driver's interfaces.
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:159
A rectangular bounding box, used to define the size of an object.
Definition: player.h:255
double ReadFloat(int section, const char *name, double value)
Read a floating point (double) value.
double ReadTupleLength(int section, const char *name, int index, double value)
Read a length from a tuple (includes units conversion)
uint8_t type
Message type; must be one of PLAYER_MSGTYPE_*.
Definition: player.h:166
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
Definition: lasertransform.cc:86
double ReadTupleFloat(int section, const char *name, int index, double value)
Read a float (double) from a tuple field.
Definition: lasertransform.h:48
double ReadAngle(int section, const char *name, double value)
Read an angle (includes unit conversion).
double ReadLength(int section, const char *name, double value)
Read a length (includes unit conversion, if any).
QueuePointer InQueue
Queue for all incoming messages for this driver.
Definition: driver.h:285
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:112
void PutMsg(QueuePointer &resp_queue, uint8_t type, uint8_t subtype, void *src, size_t deprecated, double *timestamp)
Send a message to this device.
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
static bool MatchDeviceAddress(player_devaddr_t addr1, player_devaddr_t addr2)
Compare two addresses.
Definition: device.h:201
#define PLAYER_MSGTYPE_RESP_NACK
A negative response message.
Definition: player.h:125
double ReadTupleAngle(int section, const char *name, int index, double value)
Read an angle form a tuple (includes units conversion)
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.
void SetFilter(int host, int robot, int interf, int index, int type, int subtype)
Set filter values.
player_devaddr_t device_addr
Default device address (single-interface drivers)
Definition: driver.h:269
double timestamp
Time associated with message contents (seconds since epoch)
Definition: player.h:170
Definition: toranger.h:33
int Unsubscribe(QueuePointer &sub_queue)
Unsubscribe the given queue from this device.
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