erratic/motorpacket.h
Command: state (PLAYER_POSITION1D_CMD_POS)
Definition: player_interfaces.h:3578
uint32_t data_count
Size of data as stored in buffer (bytes)
Definition: player_interfaces.h:3447
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:159
#define PLAYER_POSITION1D_DATA_STATE
Data subtype: state.
Definition: player_interfaces.h:3507
double ReadFloat(int section, const char *name, double value)
Read a floating point (double) value.
Data: state (PLAYER_POSITION1D_DATA_STATE)
Definition: player_interfaces.h:3537
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
#define PLAYER_POWER_MASK_VOLTS
bit masks for the player_power_data_t mask field
Definition: player_interfaces.h:282
#define PLAYER_OPAQUE_DATA_STATE
Data subtype: generic state.
Definition: player_interfaces.h:3429
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
int ReadDeviceAddr(player_devaddr_t *addr, int section, const char *name, int code, int index, const char *key)
Read a device id.
#define PLAYER_POSITION1D_REQ_SET_ODOM
Request/reply subtype: set odometry.
Definition: player_interfaces.h:3492
void Print()
Copyright (C) 2010 Ana Teresa Hernández Malagón anat.hernandezm@gmail.com Movirobotics athernandez@...
Definition: mbase/motorpacket.cc:45
bool Parse(unsigned char *buffer, int length)
Parse -Parses and absorbs a standard packet from the robot.
Definition: mbase/motorpacket.cc:58
#define PLAYER_OPAQUE_CMD_DATA
Cmd subtype: generic command.
Definition: player_interfaces.h:3432
#define PLAYER_POWER_MASK_PERCENT
Data subtype: voltage.
Definition: player_interfaces.h:285
#define PLAYER_POSITION1D_CMD_POS
Command subtype: position command.
Definition: player_interfaces.h:3516
void Fill(player_mbasedriver_data_t *data)
Fill.
Definition: mbase/motorpacket.cc:111
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:76
Definition: erratic/motorpacket.h:37
uint8_t * data
The data we will be sending.
Definition: player_interfaces.h:3449