29 #ifndef _GENERIC_XBOW_TYPES_H
30 #define _GENERIC_XBOW_TYPES_H
32 #define DEFAULT_GENERICXBOW_PORT "/dev/ttyUSB0"
33 #define DEFAULT_GENERICXBOW_PLATFORM "telosb"
34 #define DEFAULT_GENERICXBOW_OS "tos2x"
37 #define UNIQUE_TIMER unique("Timer")
40 #define FIXED_UPDATE_INTERVAL 20
42 #define STATIC_DELAY 40
44 #define MAX_PAYLOAD 42
45 #define MAX_TOS_PAYLOAD 35
46 #define MAX_TRANSP_SIZE 100
48 #define WSN_PLAYER_HEADER_COUNT 4
52 #include "mote/MoteIF.h"
57 enum { MICA2DOT, MICA2, MICAZ, IRIS, TELOS, TELOSB, TMOTE, EYES, INTELMOTE2 };
63 AM_PLAYER_TO_WSN = 11,
129 uint8_t sensor_count;
148 uint8_t parameters_size;
158 uint8_t parameters_size;
#define PLAYER_MSG5(level, msg, a, b, c, d, e)
Definition: error.h:110
#define PLAYER_WARN1(msg, a)
Definition: error.h:90
#define PLAYER_MSG1(level, msg, a)
Definition: error.h:106
#define PLAYER_MSG3(level, msg, a, b, c)
Definition: error.h:108
TinyOS generic message.
Definition: MoteProtocol.h:205
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)
Generic message header.
Definition: player.h:162
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
const char * ReadString(int section, const char *name, const char *value)
Read a string value.
virtual void Main(void)=0
Main method for driver thread.
#define PLAYER_MSG4(level, msg, a, b, c, d)
Definition: error.h:109
int ReadInt(int section, const char *name, int value)
Read an integer value.
This class provides serial-port-ready access to the mote.
Definition: MoteIF.h:64
#define PLAYER_MSGTYPE_DATA
A data message.
Definition: player.h:95
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:112
#define PLAYER_WARN2(msg, a, b)
Definition: error.h:91
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
bool ReadBool(int section, const char *name, bool value)
Read a boolean value (one of: yes, no, true, false, 1, 0)
#define PLAYER_MSGTYPE_REQ
A request message.
Definition: player.h:106
double ReadTupleAngle(int section, const char *name, int index, double value)
Read an angle form a tuple (includes units conversion)
#define PLAYER_MSG6(level, msg, a, b, c, d, e, f)
Definition: error.h:111
Class for loading configuration file information.
Definition: configfile.h:197
#define PLAYER_CAPABILITIES_REQ
Capability request message type.
Definition: player.h:397
An autopointer for the message queue.
Definition: message.h:74
#define PLAYER_ERROR1(msg, a)
Definition: error.h:82
A pose in space.
Definition: player.h:229
#define PLAYER_ERROR(msg)
Definition: error.h:81
Base class for drivers which oeprate with a thread.
Definition: driver.h:553
Messages between wsn and a robot.
Definition: er.h:87
Definition: MoteException.h:48
#define PLAYER_WARN(msg)
Warning message macros.
Definition: error.h:89
#define PLAYER_MSGTYPE_CMD
A command message.
Definition: player.h:99
Base class for all drivers.
Definition: driver.h:109
Definition: MoteException.h:49
#define PLAYER_WARN4(msg, a, b, c, d)
Definition: error.h:93
#define PLAYER_MSG0(level, msg)
General messages.
Definition: error.h:105
Definition: MoteException.h:47
#define PLAYER_MSG2(level, msg, a, b)
Definition: error.h:107
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:76