nimu.h
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:159
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)
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:658
virtual void MainQuit(void)
Cleanup method for driver thread (called when main exits)
Definition: driver.h:664
Definition: nd.h:55
uint8_t type
Message type; must be one of PLAYER_MSGTYPE_*.
Definition: player.h:166
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).
Definition: nd.h:177
Definition: nd.h:79
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
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.
Definition: nd.h:140
int GetTupleCount(int section, const char *name)
Get the number of values in a tuple.
int ReadTupleInt(int section, const char *name, int index, int value)
Read an integer from a tuple field.
Definition: nimu.h:63
double timestamp
Time associated with message contents (seconds since epoch)
Definition: player.h:170
Definition: nd.h:156
Definition: nimu.h:39
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