audio_sample.h
37 AudioSample (const uint8_t *source, uint32_t length, uint16_t channels, uint32_t sr, uint16_t bps);
41 void SetDataPosition (uint32_t newPosition); // Set current position in the data (in frames, not bytes)
42 uint32_t GetDataPosition (void) const; // Get current position in the data (in frames, not bytes)
45 void ClearSample (void); // Clear the entire sample (including format), making this a SAMPLE_TYPE_NONE
float position
The position to move to.
Definition: player_interfaces.h:3877
Command: Multiple Joint position control (PLAYER_ACTARRAY_CMD_MULTI_POS)
Definition: player_interfaces.h:3883
#define PLAYER_ACTARRAY_ACTSTATE_STALLED
Stalled state code.
Definition: player_interfaces.h:3784
uint32_t blobs_count
The number of blobs.
Definition: player_interfaces.h:1103
#define PLAYER_ACTARRAY_DATA_STATE
Idle state code.
Definition: player_interfaces.h:3774
Data: detected blobs (PLAYER_BLOBFINDER_DATA_BLOBS)
Definition: player_interfaces.h:1096
uint32_t color
A descriptive color for the blob (useful for gui's).
Definition: player_interfaces.h:1074
float centre
The range of motion of the actuator, in m or rad depending on the type.
Definition: player_interfaces.h:3839
Definition: pf_vector.h:40
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:158
player_actarray_actuatorgeom_t * actuators
The geometry information for each actuator in the array.
Definition: player_interfaces.h:3859
float accel
Acceleration setting in m/s^2 or rad/s^2.
Definition: player_interfaces.h:3991
uint32_t right
Bounding box for the blob [pixels].
Definition: player_interfaces.h:1084
#define PLAYER_ACTARRAY_CMD_SPEED
Idle state code.
Definition: player_interfaces.h:3759
double ReadFloat(int section, const char *name, double value)
Read a floating point (double) value.
#define PLAYER_PTZ_DATA_STATE
Data subtype: state.
Definition: player_interfaces.h:1208
#define PLAYER_ACTARRAY_CMD_MULTI_POS
Idle state code.
Definition: player_interfaces.h:3756
#define PLAYER_WIFI_DATA_STATE
Data subtype: state.
Definition: player_interfaces.h:2188
float speed
Speed setting in m/s or rad/s.
Definition: player_interfaces.h:3978
float max
The range of motion of the actuator, in m or rad depending on the type.
Definition: player_interfaces.h:3841
#define PLAYER_AUDIO_BITS
Data subtype: wav_rec_data, recorded data block.
Definition: player_interfaces.h:1428
uint32_t data_count
length of raw data
Definition: player_interfaces.h:1466
float home
The range of motion of the actuator, in m or rad depending on the type.
Definition: player_interfaces.h:3843
uint32_t height
The image dimensions.
Definition: player_interfaces.h:1101
uint32_t left
Bounding box for the blob [pixels].
Definition: player_interfaces.h:1082
uint32_t positions_count
The number of actuators in the array.
Definition: player_interfaces.h:3886
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:657
uint8_t state
The current state of the actuator.
Definition: player_interfaces.h:3804
virtual void MainQuit(void)
Cleanup method for driver thread (called when main exits)
Definition: driver.h:663
#define PLAYER_CAMERA_FORMAT_RGB888
Image format : 24-bit color (8 bits R, 8 bits G, 8 bits B).
Definition: player_interfaces.h:2942
int32_t joint
The joint/actuator to command.
Definition: player_interfaces.h:3875
#define PLAYER_AUDIO_FREQ_48k
Data subtype: wav_rec_data, recorded data block.
Definition: player_interfaces.h:1444
uint8_t type
Message type; must be one of PLAYER_MSGTYPE_*.
Definition: player.h:165
uint32_t bottom
Bounding box for the blob [pixels].
Definition: player_interfaces.h:1088
const char * ReadString(int section, const char *name, const char *value)
Read a string value.
int32_t joint
Joint to set acceleration for.
Definition: player_interfaces.h:3989
int32_t joint
The joint/actuator to command - set to -1 to command all.
Definition: player_interfaces.h:3928
#define PLAYER_ACTARRAY_ACTSTATE_BRAKED
Braked state code.
Definition: player_interfaces.h:3782
player_point_3d_t base_pos
The position of the base of the actarray.
Definition: player_interfaces.h:3862
#define PLAYER_BLOBFINDER_DATA_BLOBS
Structure describing a single blob.
Definition: player_interfaces.h:1055
#define PLAYER_PTZ_POSITION_CONTROL
Control mode, for use with PLAYER_PTZ_REQ_CONTROL_MODE.
Definition: player_interfaces.h:1221
#define PLAYER_ACTARRAY_REQ_BRAKES
Idle state code.
Definition: player_interfaces.h:3741
#define PLAYER_ACTARRAY_ACTSTATE_IDLE
Idle state code.
Definition: player_interfaces.h:3778
float speed
The speed of the actuator in m/s or rad/s depending on the type.
Definition: player_interfaces.h:3798
double ReadAngle(int section, const char *name, double value)
Read an angle (includes unit conversion).
#define PLAYER_AUDIO_FREQ_22k
Data subtype: wav_rec_data, recorded data block.
Definition: player_interfaces.h:1443
int32_t joint
Joint to set speed for.
Definition: player_interfaces.h:3976
const char * ReadTupleString(int section, const char *name, int index, const char *value)
Read a string from a tuple field.
Command: Joint position control (PLAYER_ACTARRAY_CMD_POS)
Definition: player_interfaces.h:3872
#define PLAYER_MAX_MESSAGE_SIZE
The largest possible message.
Definition: player.h:67
Structure containing a single actuator's information.
Definition: player_interfaces.h:3793
#define PLAYER_ACTARRAY_REQ_POWER
Idle state code.
Definition: player_interfaces.h:3738
#define PLAYER_ACTARRAY_CMD_MULTI_SPEED
Idle state code.
Definition: player_interfaces.h:3762
uint32_t speeds_count
The number of actuators in the array.
Definition: player_interfaces.h:3908
float * positions
The positions for each joint/actuator.
Definition: player_interfaces.h:3888
Command: Multiple Joint speed control (PLAYER_ACTARRAY_CMD_MULTI_SPEED)
Definition: player_interfaces.h:3905
uint32_t area
The blob area [pixels].
Definition: player_interfaces.h:1076
#define PLAYER_ACTARRAY_REQ_SPEED
Idle state code.
Definition: player_interfaces.h:3747
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:111
uint8_t type
The type of the actuator - linear or rotary.
Definition: player_interfaces.h:3824
#define PLAYER_ACTARRAY_TYPE_ROTARY
Rotary type code.
Definition: player_interfaces.h:3789
float * speeds
The speed to move with.
Definition: player_interfaces.h:3910
#define PLAYER_ACTARRAY_CMD_HOME
Idle state code.
Definition: player_interfaces.h:3765
#define PLAYER_AUDIO_FORMAT_BITS
AUDIO format.
Definition: player_interfaces.h:1447
player_point_3d_t axis
The axis of rotation for this actuator if it is rotary, or axis along which it moves if it is linear.
Definition: player_interfaces.h:3835
Definition: audio_sample.h:32
float acceleration
The acceleration of the actuator in m/s^2 or rad/s^2 depending on the type.
Definition: player_interfaces.h:3800
#define PLAYER_ACTARRAY_REQ_ACCEL
Idle state code.
Definition: player_interfaces.h:3750
float current
The current of the actuator in A.
Definition: player_interfaces.h:3802
Command: Joint current control (PLAYER_ACTARRAY_CMD_CURRENT)
Definition: player_interfaces.h:3925
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
player_orientation_3d_t base_orientation
The orientation of the base of the actarray.
Definition: player_interfaces.h:3865
#define PLAYER_AUDIO_FORMAT_RAW
Data subtype: wav_rec_data, recorded data block.
Definition: player_interfaces.h:1450
#define PLAYER_ACTARRAY_CMD_MULTI_CURRENT
Idle state code.
Definition: player_interfaces.h:3771
#define PLAYER_AUDIO_FREQ_11k
Data subtype: wav_rec_data, recorded data block.
Definition: player_interfaces.h:1442
float tiltspeed
Current tilt velocity [rad/s].
Definition: player_interfaces.h:1239
uint32_t mode
Mode to use: must be either PLAYER_PTZ_VELOCITY_CONTROL or PLAYER_PTZ_POSITION_CONTROL.
Definition: player_interfaces.h:1305
#define PLAYER_MSGTYPE_RESP_NACK
A negative response message.
Definition: player.h:124
float speed
The speed to move with.
Definition: player_interfaces.h:3899
uint32_t actuators_count
The number of actuators in the array.
Definition: player_interfaces.h:3857
int32_t joint
The joint/actuator to command - set to -1 to command all.
Definition: player_interfaces.h:3919
Definition: imagebase.h:61
float panspeed
Current pan velocity [rad/s].
Definition: player_interfaces.h:1237
uint32_t currents_count
The number of actuators in the array.
Definition: player_interfaces.h:3939
#define PLAYER_ACTARRAY_ACTSTATE_MOVING
Moving state code.
Definition: player_interfaces.h:3780
float * currents
The current for the motors of the whole array.
Definition: player_interfaces.h:3941
uint32_t top
Bounding box for the blob [pixels].
Definition: player_interfaces.h:1086
#define PLAYER_AUDIO_FREQ_44k
Data subtype: wav_rec_data, recorded data block.
Definition: player_interfaces.h:1441
#define PLAYER_ACTARRAY_TYPE_LINEAR
Linear type code.
Definition: player_interfaces.h:3787
player_actarray_actuator_t * actuators
The actuator data.
Definition: player_interfaces.h:3815
float current
The current to move with.
Definition: player_interfaces.h:3930
#define PLAYER_SONAR_REQ_GET_GEOM
Request/reply subtype: get geometry.
Definition: player_interfaces.h:755
#define PLAYER_ACTARRAY_CMD_CURRENT
Idle state code.
Definition: player_interfaces.h:3768
#define PLAYER_PTZ_VELOCITY_CONTROL
Control mode, for use with PLAYER_PTZ_REQ_CONTROL_MODE.
Definition: player_interfaces.h:1219
#define PLAYER_ACTARRAY_CMD_POS
Idle state code.
Definition: player_interfaces.h:3753
float config_speed
The configured speed setting of the actuator - different from current speed.
Definition: player_interfaces.h:3845
player_orientation_3d_t orientation
The orientation of this actuator when it is in its rest position.
Definition: player_interfaces.h:3832
uint32_t width
The image dimensions.
Definition: player_interfaces.h:1099
#define PLAYER_CAMERA_COMPRESS_RAW
Compression method: raw.
Definition: player_interfaces.h:2945
uint32_t actuators_count
The number of actuators in the array.
Definition: player_interfaces.h:3813
#define PLAYER_PTZ_CMD_STATE
Command subtype: state.
Definition: player_interfaces.h:1214
#define PLAYER_ACTARRAY_REQ_GET_GEOM
Idle state code.
Definition: player_interfaces.h:3744
#define PLAYER_CAMERA_FORMAT_MONO8
Image format : 8-bit monochrome.
Definition: player_interfaces.h:2936
player_blobfinder_blob_t * blobs
The list of blobs.
Definition: player_interfaces.h:1105
float min
The range of motion of the actuator, in m or rad depending on the type.
Definition: player_interfaces.h:3837
player_pose3d_t * poses
Pose of each sonar, in robot cs.
Definition: player_interfaces.h:790
int32_t joint
The joint/actuator to command.
Definition: player_interfaces.h:3897
Definition: localization/amcl/map/map.h:50
Command: Joint home (PLAYER_ACTARRAY_CMD_HOME)
Definition: player_interfaces.h:3916
float position
The position of the actuator in m or rad depending on the type.
Definition: player_interfaces.h:3796
Command: Joint speed control (PLAYER_ACTARRAY_CMD_SPEED)
Definition: player_interfaces.h:3894
Command: Multiple Joint current control (PLAYER_ACTARRAY_CMD_MULTI_CURRENT)
Definition: player_interfaces.h:3936
float length
The length of this actuator's link to the next actuator.
Definition: player_interfaces.h:3827
uint8_t hasbrakes
If the actuator has brakes or not.
Definition: player_interfaces.h:3847
#define PLAYER_PTZ_REQ_CONTROL_MODE
Request/reply subtype: control mode.
Definition: player_interfaces.h:1199
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:75