35 #include "../map/map.h"
45 double range, bearing;
81 void laser_free(
laser_t *sensor);
84 void laser_clear_ranges(
laser_t *sensor);
87 void laser_add_range(
laser_t *sensor,
double range,
double bearing);
Request to get an integer property.
Definition: player.h:459
#define PLAYER_WARN1(msg, a)
Definition: error.h:90
Definition: pf_vector.h:42
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:159
Boolean property class.
Definition: property.h:87
Generic message header.
Definition: player.h:162
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:658
Definition: cmvision.h:105
virtual void MainQuit(void)
Cleanup method for driver thread (called when main exits)
Definition: driver.h:664
virtual void Main(void)=0
Main method for driver thread.
#define PLAYER_MSGTYPE_DATA
A data message.
Definition: player.h:95
int32_t value
The property value.
Definition: player.h:465
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:112
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
#define PLAYER_MSGTYPE_REQ
A request message.
Definition: player.h:106
Integer property class.
Definition: property.h:115
int ReadDeviceAddr(player_devaddr_t *addr, int section, const char *name, int code, int index, const char *key)
Read a device id.
Class for loading configuration file information.
Definition: configfile.h:197
#define PLAYER_CAPABILITIES_REQ
Capability request message type.
Definition: player.h:397
A device address.
Definition: player.h:146
An autopointer for the message queue.
Definition: message.h:74
#define PLAYER_ERROR(msg)
Definition: error.h:81
Definition: localization/amcl/map/map.h:67
Base class for drivers which oeprate with a thread.
Definition: driver.h:553
char * key
The property key.
Definition: player.h:463
#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
#define PLAYER_MSG0(level, msg)
General messages.
Definition: error.h:105
#define PLAYER_MSG2(level, msg, a, b)
Definition: error.h:107
#define PLAYER_SET_INTPROP_REQ
Integer property set request subtype.
Definition: player.h:432
player_devaddr_t addr
Device to which this message pertains.
Definition: player.h:164