encode.h
Definition: types.hh:80
#define PLAYER_LASER_DATA_SCAN
Data subtype: scan.
Definition: player_interfaces.h:845
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:158
double ReadFloat(int section, const char *name, double value)
Read a floating point (double) value.
player_pose3d_t pose
Laser pose, in robot cs (m, m, m, rad, rad, rad).
Definition: player_interfaces.h:948
Definition: localize.hh:29
#define PLAYER_SIMULATION_REQ_GET_POSE2D
Request/reply subtype: set 2D pose.
Definition: player_interfaces.h:2655
double ReadTupleLength(int section, const char *name, int index, double value)
Read a length from a tuple (includes units conversion)
float max_angle
Start and end angles for the laser scan [rad].
Definition: player_interfaces.h:888
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:657
virtual void MainQuit(void)
Cleanup method for driver thread (called when main exits)
Definition: driver.h:663
uint8_t type
Message type; must be one of PLAYER_MSGTYPE_*.
Definition: player.h:165
const char * ReadString(int section, const char *name, const char *value)
Read a string value.
Definition: types.hh:42
Data: hypotheses (PLAYER_LOCALIZE_DATA_HYPOTHS)
Definition: player_interfaces.h:2351
#define PLAYER_POSITION2D_CMD_VEL
Command: velocity (PLAYER_POSITION2D_CMD_VEL)
Definition: player_interfaces.h:581
double ReadAngle(int section, const char *name, double value)
Read an angle (includes unit conversion).
Definition: types.hh:29
double ReadLength(int section, const char *name, double value)
Read a length (includes unit conversion, if any).
#define PLAYER_OPAQUE_DATA_STATE
Data subtype: generic state.
Definition: player_interfaces.h:3434
Request/reply: get/set 2D pose of a named simulation object.
Definition: player_interfaces.h:2710
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:111
Command: Draw polyline (PLAYER_GRAPHICS2D_CMD_POLYLINE) Draw a series of straight line segments betwe...
Definition: player_interfaces.h:4230
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
Definition: types.hh:73
player_segment_t * segments
Line segments.
Definition: player_interfaces.h:3095
#define PLAYER_LOCALIZE_DATA_HYPOTHS
Data subtype: pose hypotheses.
Definition: player_interfaces.h:2320
#define PLAYER_LASER_REQ_GET_GEOM
Request/reply subtype: get geometry.
Definition: player_interfaces.h:854
#define PLAYER_GRAPHICS2D_CMD_POLYLINE
Command subtype: draw a polyline.
Definition: player_interfaces.h:4200
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.
float min_angle
Start and end angles for the laser scan [rad].
Definition: player_interfaces.h:886
#define PLAYER_POSITION2D_DATA_STATE
Data: state (PLAYER_POSITION2D_DATA_STATE)
Definition: player_interfaces.h:568
double timestamp
Time associated with message contents (seconds since epoch)
Definition: player.h:169
player_pose2d_t pos
position [m,m,rad] (x, y, yaw)
Definition: player_interfaces.h:609
#define PLAYER_POSITION2D_CMD_POS
Command: position (PLAYER_POSITION2D_CMD_POS)
Definition: player_interfaces.h:588
#define PLAYER_MAP_REQ_GET_VECTOR
Request/reply subtype: get vector map.
Definition: player_interfaces.h:3027
uint32_t ranges_count
Number of range readings.
Definition: player_interfaces.h:894
uint32_t segments_count
The number of line segments
Definition: player_interfaces.h:3093
#define PLAYER_GRAPHICS2D_CMD_CLEAR
Command subtype: clear the drawing area (send an empty message)
Definition: player_interfaces.h:4194
player_devaddr_t addr
Device to which this message pertains.
Definition: player.h:163
Definition: transf.hh:36
player_pose2d_t pos
position [m,m,rad] (x, y, yaw)
Definition: player_interfaces.h:629