32 #ifndef _RFLEXDEVICE_H 33 #define _RFLEXDEVICE_H 38 #include <libplayercore/playercore.h> 40 #include "rflex_commands.h" 43 #include "rflex_configs.h" 45 #define RFLEX_MOTORS_REQUEST_ON 0 46 #define RFLEX_MOTORS_ON 1 47 #define RFLEX_MOTORS_REQUEST_OFF 2 48 #define RFLEX_MOTORS_OFF 3 50 #define RFLEX_CONFIG_BUFFER_SIZE 256 52 #define DEFAULT_RFLEX_PORT "/dev/ttyS0" 54 #define DEFAULT_RFLEX_BUMPER_ADDRESS 0x40 55 #define RFLEX_BUMPER_STYLE_BIT "bit" 56 #define RFLEX_BUMPER_STYLE_ADDR "addr" 57 #define DEFAULT_RFLEX_BUMPER_STYLE RFLEX_BUMPER_STYLE_ADDR 65 #define DEFAULT_RFLEX_POWER_OFFSET 0 67 #define MAX_NUM_LOOPS 30 110 int position_subscriptions;
111 int sonar_subscriptions;
112 int ir_subscriptions;
113 int bumper_subscriptions;
118 char rflex_serial_port[MAX_FILENAME_SIZE];
121 double rad_odo_theta;
123 void ResetRawPositions();
124 int initialize_robot();
125 void reset_odometry();
126 void set_odometry(
float,
float,
float);
127 void update_everything(player_rflex_data_t* d);
129 void set_config_defaults();
142 virtual void MainQuit();
144 static int joy_control;
Class for loading configuration file information.
Definition: configfile.h:196
position 2d velocity command
Definition: player_interfaces.h:617
Generic message header.
Definition: player.h:161
A device address.
Definition: player.h:145
Base class for drivers which oeprate with a thread.
Definition: driver.h:552
Messages between wsn and a robot.
Definition: er.h:86
Data: voltage (PLAYER_POWER_DATA_STATE)
Definition: player_interfaces.h:291
An autopointer for the message queue.
Definition: message.h:73
Data: state (PLAYER_BUMPER_DATA_GEOM)
Definition: player_interfaces.h:1922
Data: ranges (PLAYER_IR_DATA_RANGES)
Definition: player_interfaces.h:2115
Data: state (PLAYER_GRIPPER_DATA_STATE)
Definition: player_interfaces.h:418
position2d data
Definition: player_interfaces.h:606
Data: input values (PLAYER_DIO_DATA_VALUES)
Definition: player_interfaces.h:1994
Data: state (PLAYER_AIO_DATA_STATE)
Definition: player_interfaces.h:2053
Data: ranges (PLAYER_SONAR_DATA_RANGES)
Definition: player_interfaces.h:771