Classes | Defines | Typedefs | Functions | Variables
Nclient.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ConfigData
struct  _PosData
union  double_union
union  long_union
struct  reply_struct
struct  request_struct
union  short_union
union  ulong_union
union  ushort_union

Defines

#define ARM_MV   42
#define ARM_WS   41
#define ARM_ZR   40
#define BUFSIZE   4096
#define FALSE   0
#define INFRAREDS   16
#define LEFT(trans, steer)   (trans - (int)((float)steer*ROTATION_CONSTANT))
#define MAX_USER_BUF   0xFFFF
#define MAX_VERTICES   10
#define MODEL_N150   1
#define MODEL_N200   0
#define MODEL_SCOUT   2
#define MODEL_SCOUT2   2
#define MV_AC   4 /* set acceleration for vm, pr, pa modes*/
#define MV_IGNORE   0
#define MV_LP   3 /* limp mode */
#define MV_MT   8 /* set maximum torque for vm, pr, pa, tq modes */
#define MV_PA   6 /* position absolute mode */
#define MV_PR   2 /* position relative mode */
#define MV_SP   5 /* set velocity for pr, pa modes */
#define MV_TQ   7 /* torque mode */
#define MV_VM   1 /* velocity mode */
#define NULL   0
#define NUM_LASER   482
#define NUM_MASK   44
#define NUM_STATE   45
#define POS_BUMPER   ( 1 << 2 )
#define POS_BUMPER_P   ( ( (posDataCheck()) & POS_BUMPER ) ? 1 : 0 )
#define POS_COMPASS   ( 1 << 4 )
#define POS_COMPASS_P   ( ( (posDataCheck()) & POS_COMPASS ) ? 1 : 0 )
#define POS_INFRARED   ( 1 << 0 )
#define POS_INFRARED_P   ( ( (posDataCheck()) & POS_INFRARED ) ? 1 : 0 )
#define POS_IR_1   0
#define POS_IR_10   9
#define POS_IR_11   10
#define POS_IR_12   11
#define POS_IR_13   12
#define POS_IR_14   13
#define POS_IR_15   14
#define POS_IR_16   15
#define POS_IR_2   1
#define POS_IR_3   2
#define POS_IR_4   3
#define POS_IR_5   4
#define POS_IR_6   5
#define POS_IR_7   6
#define POS_IR_8   7
#define POS_IR_9   8
#define POS_LASER   ( 1 << 3 )
#define POS_LASER_P   ( ( (posDataCheck()) & POS_LASER ) ? 1 : 0 )
#define POS_NONE   ( 0 << 0 )
#define POS_SONAR   ( 1 << 1 )
#define POS_SONAR_1   0
#define POS_SONAR_10   9
#define POS_SONAR_11   10
#define POS_SONAR_12   11
#define POS_SONAR_13   12
#define POS_SONAR_14   13
#define POS_SONAR_15   14
#define POS_SONAR_16   15
#define POS_SONAR_2   1
#define POS_SONAR_3   2
#define POS_SONAR_4   3
#define POS_SONAR_5   4
#define POS_SONAR_6   5
#define POS_SONAR_7   6
#define POS_SONAR_8   7
#define POS_SONAR_9   8
#define POS_SONAR_P   ( ( (posDataCheck()) & POS_SONAR ) ? 1 : 0 )
#define RIGHT(trans, steer)   (trans + (int)((float)steer*ROTATION_CONSTANT))
#define ROTATION_CONSTANT   0.118597 /* inches/degree (known to 100 ppm) */
#define scout_vm(trans, steer)   vm(RIGHT(trans, steer), LEFT(trans, steer), 0)
#define SMASK_BUMPER   33
#define SMASK_COMPASS   43
#define SMASK_CONF_STEER   36
#define SMASK_CONF_TURRET   37
#define SMASK_CONF_X   34
#define SMASK_CONF_Y   35
#define SMASK_IR_1   1
#define SMASK_IR_10   10
#define SMASK_IR_11   11
#define SMASK_IR_12   12
#define SMASK_IR_13   13
#define SMASK_IR_14   14
#define SMASK_IR_15   15
#define SMASK_IR_16   16
#define SMASK_IR_2   2
#define SMASK_IR_3   3
#define SMASK_IR_4   4
#define SMASK_IR_5   5
#define SMASK_IR_6   6
#define SMASK_IR_7   7
#define SMASK_IR_8   8
#define SMASK_IR_9   9
#define SMASK_LASER   42
#define SMASK_POS_DATA   0
#define SMASK_RESERVED   41
#define SMASK_SONAR_1   17
#define SMASK_SONAR_10   26
#define SMASK_SONAR_11   27
#define SMASK_SONAR_12   28
#define SMASK_SONAR_13   29
#define SMASK_SONAR_14   30
#define SMASK_SONAR_15   31
#define SMASK_SONAR_16   32
#define SMASK_SONAR_2   18
#define SMASK_SONAR_3   19
#define SMASK_SONAR_4   20
#define SMASK_SONAR_5   21
#define SMASK_SONAR_6   22
#define SMASK_SONAR_7   23
#define SMASK_SONAR_8   24
#define SMASK_SONAR_9   25
#define SMASK_VEL_STEER   39
#define SMASK_VEL_TRANS   38
#define SMASK_VEL_TURRET   40
#define SONARS   16
#define STATE_BUMPER   33
#define STATE_COMPASS   43
#define STATE_CONF_STEER   36
#define STATE_CONF_TURRET   37
#define STATE_CONF_X   34
#define STATE_CONF_Y   35
#define STATE_ERROR   44
#define STATE_IR_0   1
#define STATE_IR_1   2
#define STATE_IR_10   11
#define STATE_IR_11   12
#define STATE_IR_12   13
#define STATE_IR_13   14
#define STATE_IR_14   15
#define STATE_IR_15   16
#define STATE_IR_2   3
#define STATE_IR_3   4
#define STATE_IR_4   5
#define STATE_IR_5   6
#define STATE_IR_6   7
#define STATE_IR_7   8
#define STATE_IR_8   9
#define STATE_IR_9   10
#define STATE_LASER   42
#define STATE_MOTOR_STATUS   41
#define STATE_SIM_SPEED   0
#define STATE_SONAR_0   17
#define STATE_SONAR_1   18
#define STATE_SONAR_10   27
#define STATE_SONAR_11   28
#define STATE_SONAR_12   29
#define STATE_SONAR_13   30
#define STATE_SONAR_14   31
#define STATE_SONAR_15   32
#define STATE_SONAR_2   19
#define STATE_SONAR_3   20
#define STATE_SONAR_4   21
#define STATE_SONAR_5   22
#define STATE_SONAR_6   23
#define STATE_SONAR_7   24
#define STATE_SONAR_8   25
#define STATE_SONAR_9   26
#define STATE_VEL_LEFT   39 /* for scout */
#define STATE_VEL_RIGHT   38 /* for scout */
#define STATE_VEL_STEER   39
#define STATE_VEL_TRANS   38
#define STATE_VEL_TURRET   40
#define TRUE   1
#define USER_BUFFER_LENGTH   0xFFFF
#define ZR_CHECK   1
#define ZR_NO_N_GRIPPER   4
#define ZR_ORIENT   2

Typedefs

typedef struct _ConfigData ConfigData
typedef struct _PosData PosData
typedef unsigned long TimeData

Functions

int ac (int t_ac, int s_ac, int r_ac)
int add_Obs (long obs[2 *MAX_VERTICES+1])
int add_obstacle (long obs[2 *MAX_VERTICES+1])
long arm_mv (long l_mode, long l_v, long g_mode, long g_v)
long arm_ws (short lift, short grip, long timeout, long *time_remain)
long arm_zr (short mode)
int conf_cp (int mode)
int conf_ir (int history, int order[16])
int conf_ls (unsigned int mode, unsigned int threshold, unsigned int width, unsigned int num_data, unsigned int processing)
int conf_sg (unsigned int threshold, unsigned int min_points, unsigned int gap)
int conf_sn (int rate, int order[16])
int conf_tm (unsigned char timeout)
int connect_robot (long robot_id,...)
int create_robot (long robot_id)
int ct (void)
int da (int th, int tu)
int delete_Obs (long obs[2 *MAX_VERTICES+1])
int delete_obstacle (long obs[2 *MAX_VERTICES+1])
int disconnect_robot (long robot_id)
int dp (int x, int y)
int draw_arc (long x_0, long y_0, long w, long h, int th1, int th2, int mode)
int draw_line (long x_1, long y_1, long x_2, long y_2, int mode)
int draw_robot (long x, long y, int th, int tu, int mode)
signed short extract2byteint (unsigned char *buffer, unsigned short *index)
unsigned short extract2byteuint (unsigned char *buffer, unsigned short *index)
signed long extract4byteint (unsigned char *buffer, unsigned short *index)
unsigned long extract4byteuint (unsigned char *buffer, unsigned short *index)
int extract_receive_buffer_header (unsigned short *length, unsigned char *serial_number, unsigned char *packet_type, unsigned char *buffer)
signed char extractchar (unsigned char *buffer, unsigned short *index)
double extractdouble (unsigned char *buffer, unsigned short *index)
unsigned char extractuchar (unsigned char *buffer, unsigned short *index)
int get_bp (void)
int get_cp (void)
int get_ir (void)
int get_laser (int laser[2 *NUM_LASER+1])
int get_ls (void)
int get_mask (int mask[NUM_MASK])
int get_ra (void)
int get_rc (void)
int get_robot_conf (long *conf)
int get_rpx (long *robot_pos)
int get_rv (void)
int get_sg (void)
int get_sn (void)
int get_state (long state[NUM_STATE])
int gs (void)
void init_mask (void)
int init_receive_buffer (unsigned short *index)
int init_send_buffer (unsigned short *index)
int init_sensors (void)
int lp (void)
int motion_check (long type, double a1, double a2, double a3, double a4, double a5, double a6, double a7, double collide[3])
int move_Obs (long obs[2 *MAX_VERTICES+1], long dx, long dy)
int move_obstacle (long obs[2 *MAX_VERTICES+1], long dx, long dy)
int mv (int t_mode, int t_mv, int s_mode, int s_mv, int r_mode, int r_mv)
int new_world (void)
int place_robot (int x, int y, int th, int tu)
int posBumperGet (PosData *posData)
int posCompassGet (PosData *posData)
int posDataCheck (void)
int posDataRequest (int posRequest)
int posInfraredGet (PosData *posData, int infraredNumber)
int posInfraredRingGet (PosData posData[INFRAREDS])
int posLaserGet (PosData *posData)
int posSonarGet (PosData *posData, int sonarNumber)
int posSonarRingGet (PosData posData[SONARS])
int posTimeGet (void)
int pr (int t_pr, int s_pr, int r_pr)
int predict_sensors (int x, int y, int th, int tu, long *state, int *laser)
int quit_server (void)
int real_robot (void)
int refresh_actual_trace (void)
int refresh_all (void)
int refresh_all_sensors (void)
int refresh_all_traces (void)
int refresh_bumper_sensor (void)
int refresh_client_graphics (void)
int refresh_encoder_trace (void)
int refresh_infrared_sensor (void)
int refresh_laser_sensor (void)
int refresh_sonar_sensor (void)
int server_is_running (void)
int set_mask (int mask[NUM_MASK])
int set_serv_tcp_port (int port)
int set_server_machine_name (char *sname)
int simulated_robot (void)
int sp (int t_sp, int s_sp, int r_sp)
int special_request (unsigned char *user_send_buffer, unsigned char *user_receive_buffer)
int st (void)
int stuff2byteint (signed short data, unsigned char *buffer, unsigned short *index)
int stuff2byteuint (unsigned short data, unsigned char *buffer, unsigned short *index)
int stuff4byteint (signed long data, unsigned char *buffer, unsigned short *index)
int stuff4byteuint (unsigned long data, unsigned char *buffer, unsigned short *index)
int stuff_send_buffer_header (unsigned short index, unsigned char serial_number, unsigned char packet_type, unsigned char *buffer)
int stuffchar (signed char data, unsigned char *buffer, unsigned short *index)
int stuffdouble (double data, unsigned char *buffer, unsigned short *index)
int stuffuchar (unsigned char data, unsigned char *buffer, unsigned short *index)
int tk (char *talk_string)
int vm (int t_vm, int s_vm, int r_vm)
float voltCpuGet (void)
float voltMotorGet (void)
int ws (unsigned char t_ws, unsigned char s_ws, unsigned char r_ws, unsigned char timeout)
int zr (void)

Variables

int CONN_TYPE
int Laser [2 *NUM_LASER+1]
double LASER_CALIBRATION [8]
double LASER_OFFSET [2]
char ROBOT_MACHINE_NAME [80]
int ROBOT_TCP_PORT
int SERIAL_BAUD
char SERIAL_PORT [40]
int SERV_TCP_PORT
char SERVER_MACHINE_NAME [80]
int Smask [NUM_MASK]
long State [NUM_STATE]

Define Documentation

#define ARM_MV   42

Definition at line 189 of file Nclient.h.

#define ARM_WS   41

Definition at line 188 of file Nclient.h.

#define ARM_ZR   40

Definition at line 187 of file Nclient.h.

#define BUFSIZE   4096

Definition at line 35 of file Nclient.h.

#define FALSE   0

Definition at line 23 of file Nclient.h.

#define INFRAREDS   16

Definition at line 46 of file Nclient.h.

#define LEFT (   trans,
  steer 
)    (trans - (int)((float)steer*ROTATION_CONSTANT))

Definition at line 278 of file Nclient.h.

#define MAX_USER_BUF   0xFFFF

Definition at line 36 of file Nclient.h.

#define MAX_VERTICES   10

Definition at line 31 of file Nclient.h.

#define MODEL_N150   1

Definition at line 40 of file Nclient.h.

#define MODEL_N200   0

Definition at line 39 of file Nclient.h.

#define MODEL_SCOUT   2

Definition at line 41 of file Nclient.h.

#define MODEL_SCOUT2   2

Definition at line 42 of file Nclient.h.

#define MV_AC   4 /* set acceleration for vm, pr, pa modes*/

Definition at line 169 of file Nclient.h.

#define MV_IGNORE   0

Definition at line 165 of file Nclient.h.

#define MV_LP   3 /* limp mode */

Definition at line 168 of file Nclient.h.

#define MV_MT   8 /* set maximum torque for vm, pr, pa, tq modes */

Definition at line 173 of file Nclient.h.

#define MV_PA   6 /* position absolute mode */

Definition at line 171 of file Nclient.h.

#define MV_PR   2 /* position relative mode */

Definition at line 167 of file Nclient.h.

#define MV_SP   5 /* set velocity for pr, pa modes */

Definition at line 170 of file Nclient.h.

#define MV_TQ   7 /* torque mode */

Definition at line 172 of file Nclient.h.

#define MV_VM   1 /* velocity mode */

Definition at line 166 of file Nclient.h.

#define NULL   0

Definition at line 29 of file Nclient.h.

#define NUM_LASER   482

Definition at line 34 of file Nclient.h.

#define NUM_MASK   44

Definition at line 33 of file Nclient.h.

#define NUM_STATE   45

Definition at line 32 of file Nclient.h.

#define POS_BUMPER   ( 1 << 2 )

Definition at line 207 of file Nclient.h.

#define POS_BUMPER_P   ( ( (posDataCheck()) & POS_BUMPER ) ? 1 : 0 )

Definition at line 221 of file Nclient.h.

#define POS_COMPASS   ( 1 << 4 )

Definition at line 209 of file Nclient.h.

#define POS_COMPASS_P   ( ( (posDataCheck()) & POS_COMPASS ) ? 1 : 0 )

Definition at line 223 of file Nclient.h.

#define POS_INFRARED   ( 1 << 0 )

Definition at line 205 of file Nclient.h.

#define POS_INFRARED_P   ( ( (posDataCheck()) & POS_INFRARED ) ? 1 : 0 )

Definition at line 219 of file Nclient.h.

#define POS_IR_1   0

Definition at line 233 of file Nclient.h.

#define POS_IR_10   9

Definition at line 242 of file Nclient.h.

#define POS_IR_11   10

Definition at line 243 of file Nclient.h.

#define POS_IR_12   11

Definition at line 244 of file Nclient.h.

#define POS_IR_13   12

Definition at line 245 of file Nclient.h.

#define POS_IR_14   13

Definition at line 246 of file Nclient.h.

#define POS_IR_15   14

Definition at line 247 of file Nclient.h.

#define POS_IR_16   15

Definition at line 248 of file Nclient.h.

#define POS_IR_2   1

Definition at line 234 of file Nclient.h.

#define POS_IR_3   2

Definition at line 235 of file Nclient.h.

#define POS_IR_4   3

Definition at line 236 of file Nclient.h.

#define POS_IR_5   4

Definition at line 237 of file Nclient.h.

#define POS_IR_6   5

Definition at line 238 of file Nclient.h.

#define POS_IR_7   6

Definition at line 239 of file Nclient.h.

#define POS_IR_8   7

Definition at line 240 of file Nclient.h.

#define POS_IR_9   8

Definition at line 241 of file Nclient.h.

#define POS_LASER   ( 1 << 3 )

Definition at line 208 of file Nclient.h.

#define POS_LASER_P   ( ( (posDataCheck()) & POS_LASER ) ? 1 : 0 )

Definition at line 222 of file Nclient.h.

#define POS_NONE   ( 0 << 0 )

Definition at line 204 of file Nclient.h.

#define POS_SONAR   ( 1 << 1 )

Definition at line 206 of file Nclient.h.

#define POS_SONAR_1   0

Definition at line 250 of file Nclient.h.

#define POS_SONAR_10   9

Definition at line 259 of file Nclient.h.

#define POS_SONAR_11   10

Definition at line 260 of file Nclient.h.

#define POS_SONAR_12   11

Definition at line 261 of file Nclient.h.

#define POS_SONAR_13   12

Definition at line 262 of file Nclient.h.

#define POS_SONAR_14   13

Definition at line 263 of file Nclient.h.

#define POS_SONAR_15   14

Definition at line 264 of file Nclient.h.

#define POS_SONAR_16   15

Definition at line 265 of file Nclient.h.

#define POS_SONAR_2   1

Definition at line 251 of file Nclient.h.

#define POS_SONAR_3   2

Definition at line 252 of file Nclient.h.

#define POS_SONAR_4   3

Definition at line 253 of file Nclient.h.

#define POS_SONAR_5   4

Definition at line 254 of file Nclient.h.

#define POS_SONAR_6   5

Definition at line 255 of file Nclient.h.

#define POS_SONAR_7   6

Definition at line 256 of file Nclient.h.

#define POS_SONAR_8   7

Definition at line 257 of file Nclient.h.

#define POS_SONAR_9   8

Definition at line 258 of file Nclient.h.

#define POS_SONAR_P   ( ( (posDataCheck()) & POS_SONAR ) ? 1 : 0 )

Definition at line 220 of file Nclient.h.

#define RIGHT (   trans,
  steer 
)    (trans + (int)((float)steer*ROTATION_CONSTANT))

Definition at line 277 of file Nclient.h.

#define ROTATION_CONSTANT   0.118597 /* inches/degree (known to 100 ppm) */

Definition at line 275 of file Nclient.h.

#define scout_vm (   trans,
  steer 
)    vm(RIGHT(trans, steer), LEFT(trans, steer), 0)

Definition at line 280 of file Nclient.h.

#define SMASK_BUMPER   33

Definition at line 145 of file Nclient.h.

#define SMASK_COMPASS   43

Definition at line 155 of file Nclient.h.

#define SMASK_CONF_STEER   36

Definition at line 148 of file Nclient.h.

#define SMASK_CONF_TURRET   37

Definition at line 149 of file Nclient.h.

#define SMASK_CONF_X   34

Definition at line 146 of file Nclient.h.

#define SMASK_CONF_Y   35

Definition at line 147 of file Nclient.h.

#define SMASK_IR_1   1

Definition at line 111 of file Nclient.h.

#define SMASK_IR_10   10

Definition at line 120 of file Nclient.h.

#define SMASK_IR_11   11

Definition at line 121 of file Nclient.h.

#define SMASK_IR_12   12

Definition at line 122 of file Nclient.h.

#define SMASK_IR_13   13

Definition at line 123 of file Nclient.h.

#define SMASK_IR_14   14

Definition at line 124 of file Nclient.h.

#define SMASK_IR_15   15

Definition at line 125 of file Nclient.h.

#define SMASK_IR_16   16

Definition at line 126 of file Nclient.h.

#define SMASK_IR_2   2

Definition at line 112 of file Nclient.h.

#define SMASK_IR_3   3

Definition at line 113 of file Nclient.h.

#define SMASK_IR_4   4

Definition at line 114 of file Nclient.h.

#define SMASK_IR_5   5

Definition at line 115 of file Nclient.h.

#define SMASK_IR_6   6

Definition at line 116 of file Nclient.h.

#define SMASK_IR_7   7

Definition at line 117 of file Nclient.h.

#define SMASK_IR_8   8

Definition at line 118 of file Nclient.h.

#define SMASK_IR_9   9

Definition at line 119 of file Nclient.h.

#define SMASK_LASER   42

Definition at line 154 of file Nclient.h.

#define SMASK_POS_DATA   0

Definition at line 109 of file Nclient.h.

#define SMASK_RESERVED   41

Definition at line 153 of file Nclient.h.

#define SMASK_SONAR_1   17

Definition at line 128 of file Nclient.h.

#define SMASK_SONAR_10   26

Definition at line 137 of file Nclient.h.

#define SMASK_SONAR_11   27

Definition at line 138 of file Nclient.h.

#define SMASK_SONAR_12   28

Definition at line 139 of file Nclient.h.

#define SMASK_SONAR_13   29

Definition at line 140 of file Nclient.h.

#define SMASK_SONAR_14   30

Definition at line 141 of file Nclient.h.

#define SMASK_SONAR_15   31

Definition at line 142 of file Nclient.h.

#define SMASK_SONAR_16   32

Definition at line 143 of file Nclient.h.

#define SMASK_SONAR_2   18

Definition at line 129 of file Nclient.h.

#define SMASK_SONAR_3   19

Definition at line 130 of file Nclient.h.

#define SMASK_SONAR_4   20

Definition at line 131 of file Nclient.h.

#define SMASK_SONAR_5   21

Definition at line 132 of file Nclient.h.

#define SMASK_SONAR_6   22

Definition at line 133 of file Nclient.h.

#define SMASK_SONAR_7   23

Definition at line 134 of file Nclient.h.

#define SMASK_SONAR_8   24

Definition at line 135 of file Nclient.h.

#define SMASK_SONAR_9   25

Definition at line 136 of file Nclient.h.

#define SMASK_VEL_STEER   39

Definition at line 151 of file Nclient.h.

#define SMASK_VEL_TRANS   38

Definition at line 150 of file Nclient.h.

#define SMASK_VEL_TURRET   40

Definition at line 152 of file Nclient.h.

#define SONARS   16

Definition at line 45 of file Nclient.h.

#define STATE_BUMPER   33

Definition at line 89 of file Nclient.h.

#define STATE_COMPASS   43

Definition at line 101 of file Nclient.h.

#define STATE_CONF_STEER   36

Definition at line 92 of file Nclient.h.

#define STATE_CONF_TURRET   37

Definition at line 93 of file Nclient.h.

#define STATE_CONF_X   34

Definition at line 90 of file Nclient.h.

#define STATE_CONF_Y   35

Definition at line 91 of file Nclient.h.

#define STATE_ERROR   44

Definition at line 102 of file Nclient.h.

#define STATE_IR_0   1

Definition at line 55 of file Nclient.h.

#define STATE_IR_1   2

Definition at line 56 of file Nclient.h.

#define STATE_IR_10   11

Definition at line 65 of file Nclient.h.

#define STATE_IR_11   12

Definition at line 66 of file Nclient.h.

#define STATE_IR_12   13

Definition at line 67 of file Nclient.h.

#define STATE_IR_13   14

Definition at line 68 of file Nclient.h.

#define STATE_IR_14   15

Definition at line 69 of file Nclient.h.

#define STATE_IR_15   16

Definition at line 70 of file Nclient.h.

#define STATE_IR_2   3

Definition at line 57 of file Nclient.h.

#define STATE_IR_3   4

Definition at line 58 of file Nclient.h.

#define STATE_IR_4   5

Definition at line 59 of file Nclient.h.

#define STATE_IR_5   6

Definition at line 60 of file Nclient.h.

#define STATE_IR_6   7

Definition at line 61 of file Nclient.h.

#define STATE_IR_7   8

Definition at line 62 of file Nclient.h.

#define STATE_IR_8   9

Definition at line 63 of file Nclient.h.

#define STATE_IR_9   10

Definition at line 64 of file Nclient.h.

#define STATE_LASER   42

Definition at line 100 of file Nclient.h.

#define STATE_MOTOR_STATUS   41

Definition at line 99 of file Nclient.h.

#define STATE_SIM_SPEED   0

Definition at line 53 of file Nclient.h.

#define STATE_SONAR_0   17

Definition at line 72 of file Nclient.h.

#define STATE_SONAR_1   18

Definition at line 73 of file Nclient.h.

#define STATE_SONAR_10   27

Definition at line 82 of file Nclient.h.

#define STATE_SONAR_11   28

Definition at line 83 of file Nclient.h.

#define STATE_SONAR_12   29

Definition at line 84 of file Nclient.h.

#define STATE_SONAR_13   30

Definition at line 85 of file Nclient.h.

#define STATE_SONAR_14   31

Definition at line 86 of file Nclient.h.

#define STATE_SONAR_15   32

Definition at line 87 of file Nclient.h.

#define STATE_SONAR_2   19

Definition at line 74 of file Nclient.h.

#define STATE_SONAR_3   20

Definition at line 75 of file Nclient.h.

#define STATE_SONAR_4   21

Definition at line 76 of file Nclient.h.

#define STATE_SONAR_5   22

Definition at line 77 of file Nclient.h.

#define STATE_SONAR_6   23

Definition at line 78 of file Nclient.h.

#define STATE_SONAR_7   24

Definition at line 79 of file Nclient.h.

#define STATE_SONAR_8   25

Definition at line 80 of file Nclient.h.

#define STATE_SONAR_9   26

Definition at line 81 of file Nclient.h.

#define STATE_VEL_LEFT   39 /* for scout */

Definition at line 97 of file Nclient.h.

#define STATE_VEL_RIGHT   38 /* for scout */

Definition at line 95 of file Nclient.h.

#define STATE_VEL_STEER   39

Definition at line 96 of file Nclient.h.

#define STATE_VEL_TRANS   38

Definition at line 94 of file Nclient.h.

#define STATE_VEL_TURRET   40

Definition at line 98 of file Nclient.h.

#define TRUE   1

Definition at line 26 of file Nclient.h.

#define USER_BUFFER_LENGTH   0xFFFF

Definition at line 271 of file Nclient.h.

#define ZR_CHECK   1

Definition at line 179 of file Nclient.h.

#define ZR_NO_N_GRIPPER   4

Definition at line 181 of file Nclient.h.

#define ZR_ORIENT   2

Definition at line 180 of file Nclient.h.


Typedef Documentation

typedef struct _ConfigData ConfigData
typedef struct _PosData PosData
typedef unsigned long TimeData

Definition at line 315 of file Nclient.h.


Function Documentation

int ac ( int  t_ac,
int  s_ac,
int  r_ac 
)

Definition at line 1074 of file Nclient.c.

int add_Obs ( long  obs[2 *MAX_VERTICES+1])

Definition at line 2016 of file Nclient.c.

int add_obstacle ( long  obs[2 *MAX_VERTICES+1])

Definition at line 1991 of file Nclient.c.

long arm_mv ( long  l_mode,
long  l_v,
long  g_mode,
long  g_v 
)

Definition at line 3673 of file Nclient.c.

long arm_ws ( short  lift,
short  grip,
long  timeout,
long *  time_remain 
)

Definition at line 3643 of file Nclient.c.

long arm_zr ( short  mode)

Definition at line 3618 of file Nclient.c.

int conf_cp ( int  mode)

Definition at line 1560 of file Nclient.c.

int conf_ir ( int  history,
int  order[16] 
)

Definition at line 1493 of file Nclient.c.

int conf_ls ( unsigned int  mode,
unsigned int  threshold,
unsigned int  width,
unsigned int  num_data,
unsigned int  processing 
)

Definition at line 1609 of file Nclient.c.

int conf_sg ( unsigned int  threshold,
unsigned int  min_points,
unsigned int  gap 
)

Definition at line 1848 of file Nclient.c.

int conf_sn ( int  rate,
int  order[16] 
)

Definition at line 1528 of file Nclient.c.

int conf_tm ( unsigned char  timeout)

Definition at line 1642 of file Nclient.c.

int connect_robot ( long  robot_id,
  ... 
)

Definition at line 981 of file Nclient.c.

int create_robot ( long  robot_id)

Definition at line 940 of file Nclient.c.

int ct ( void  )

Definition at line 1308 of file Nclient.c.

int da ( int  th,
int  tu 
)

Definition at line 1902 of file Nclient.c.

int delete_Obs ( long  obs[2 *MAX_VERTICES+1])

Definition at line 2057 of file Nclient.c.

int delete_obstacle ( long  obs[2 *MAX_VERTICES+1])

Definition at line 2032 of file Nclient.c.

int disconnect_robot ( long  robot_id)

Definition at line 1039 of file Nclient.c.

int dp ( int  x,
int  y 
)

Definition at line 1440 of file Nclient.c.

int draw_arc ( long  x_0,
long  y_0,
long  w,
long  h,
int  th1,
int  th2,
int  mode 
)

Definition at line 2521 of file Nclient.c.

int draw_line ( long  x_1,
long  y_1,
long  x_2,
long  y_2,
int  mode 
)

Definition at line 2485 of file Nclient.c.

int draw_robot ( long  x,
long  y,
int  th,
int  tu,
int  mode 
)

Definition at line 2453 of file Nclient.c.

signed short extract2byteint ( unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 3043 of file Nclient.c.

unsigned short extract2byteuint ( unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 3122 of file Nclient.c.

signed long extract4byteint ( unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 3070 of file Nclient.c.

unsigned long extract4byteuint ( unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 3144 of file Nclient.c.

int extract_receive_buffer_header ( unsigned short *  length,
unsigned char *  serial_number,
unsigned char *  packet_type,
unsigned char *  buffer 
)

Definition at line 2774 of file Nclient.c.

signed char extractchar ( unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 3019 of file Nclient.c.

double extractdouble ( unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 3169 of file Nclient.c.

unsigned char extractuchar ( unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 3101 of file Nclient.c.

int get_bp ( void  )

Definition at line 1817 of file Nclient.c.

int get_cp ( void  )

Definition at line 1766 of file Nclient.c.

int get_ir ( void  )

Definition at line 1664 of file Nclient.c.

int get_laser ( int  laser[2 *NUM_LASER+1])

Definition at line 3215 of file Nclient.c.

int get_ls ( void  )

Definition at line 1787 of file Nclient.c.

int get_mask ( int  mask[NUM_MASK])

Definition at line 3224 of file Nclient.c.

int get_ra ( void  )

Definition at line 1745 of file Nclient.c.

int get_rc ( void  )

Definition at line 1705 of file Nclient.c.

int get_robot_conf ( long *  conf)

Definition at line 2724 of file Nclient.c.

int get_rpx ( long *  robot_pos)

Definition at line 1957 of file Nclient.c.

int get_rv ( void  )

Definition at line 1725 of file Nclient.c.

int get_sg ( void  )

Definition at line 1871 of file Nclient.c.

int get_sn ( void  )

Definition at line 1685 of file Nclient.c.

int get_state ( long  state[NUM_STATE])

Definition at line 3206 of file Nclient.c.

int gs ( void  )

Definition at line 1356 of file Nclient.c.

void init_mask ( void  )

Definition at line 2333 of file Nclient.c.

int init_receive_buffer ( unsigned short *  index)

Definition at line 2754 of file Nclient.c.

int init_send_buffer ( unsigned short *  index)

Definition at line 2796 of file Nclient.c.

int init_sensors ( void  )

Definition at line 2346 of file Nclient.c.

int lp ( void  )

Definition at line 1394 of file Nclient.c.

int motion_check ( long  type,
double  a1,
double  a2,
double  a3,
double  a4,
double  a5,
double  a6,
double  a7,
double  collide[3] 
)

Definition at line 2683 of file Nclient.c.

int move_Obs ( long  obs[2 *MAX_VERTICES+1],
long  dx,
long  dy 
)

Definition at line 2102 of file Nclient.c.

int move_obstacle ( long  obs[2 *MAX_VERTICES+1],
long  dx,
long  dy 
)

Definition at line 2075 of file Nclient.c.

int mv ( int  t_mode,
int  t_mv,
int  s_mode,
int  s_mv,
int  r_mode,
int  r_mv 
)

Definition at line 1261 of file Nclient.c.

int new_world ( void  )

Definition at line 2110 of file Nclient.c.

int place_robot ( int  x,
int  y,
int  th,
int  tu 
)

Definition at line 2368 of file Nclient.c.

int posBumperGet ( PosData posData)

Definition at line 3424 of file Nclient.c.

int posCompassGet ( PosData posData)

Definition at line 3462 of file Nclient.c.

int posDataCheck ( void  )

Definition at line 3315 of file Nclient.c.

int posDataRequest ( int  posRequest)

Definition at line 3288 of file Nclient.c.

int posInfraredGet ( PosData posData,
int  infraredNumber 
)

Definition at line 3357 of file Nclient.c.

int posInfraredRingGet ( PosData  posData[INFRAREDS])

Definition at line 3335 of file Nclient.c.

int posLaserGet ( PosData posData)

Definition at line 3443 of file Nclient.c.

int posSonarGet ( PosData posData,
int  sonarNumber 
)

Definition at line 3400 of file Nclient.c.

int posSonarRingGet ( PosData  posData[SONARS])

Definition at line 3380 of file Nclient.c.

int posTimeGet ( void  )

Definition at line 3482 of file Nclient.c.

int pr ( int  t_pr,
int  s_pr,
int  r_pr 
)

Definition at line 1137 of file Nclient.c.

int predict_sensors ( int  x,
int  y,
int  th,
int  tu,
long *  state,
int *  laser 
)

Definition at line 2635 of file Nclient.c.

int quit_server ( void  )

Definition at line 2567 of file Nclient.c.

int real_robot ( void  )

Definition at line 2587 of file Nclient.c.

int refresh_actual_trace ( void  )

Definition at line 2174 of file Nclient.c.

int refresh_all ( void  )

Definition at line 2136 of file Nclient.c.

int refresh_all_sensors ( void  )

Definition at line 2212 of file Nclient.c.

int refresh_all_traces ( void  )

Definition at line 2155 of file Nclient.c.

int refresh_bumper_sensor ( void  )

Definition at line 2231 of file Nclient.c.

int refresh_client_graphics ( void  )

Definition at line 2308 of file Nclient.c.

int refresh_encoder_trace ( void  )

Definition at line 2193 of file Nclient.c.

int refresh_infrared_sensor ( void  )

Definition at line 2250 of file Nclient.c.

int refresh_laser_sensor ( void  )

Definition at line 2288 of file Nclient.c.

int refresh_sonar_sensor ( void  )

Definition at line 2269 of file Nclient.c.

int server_is_running ( void  )

Definition at line 2557 of file Nclient.c.

int set_mask ( int  mask[NUM_MASK])

Definition at line 3233 of file Nclient.c.

int set_serv_tcp_port ( int  port)

Definition at line 3249 of file Nclient.c.

int set_server_machine_name ( char *  sname)

Definition at line 3242 of file Nclient.c.

int simulated_robot ( void  )

Definition at line 2607 of file Nclient.c.

int sp ( int  t_sp,
int  s_sp,
int  r_sp 
)

Definition at line 1103 of file Nclient.c.

int special_request ( unsigned char *  user_send_buffer,
unsigned char *  user_receive_buffer 
)

Definition at line 2401 of file Nclient.c.

int st ( void  )

Definition at line 1375 of file Nclient.c.

int stuff2byteint ( signed short  data,
unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 2860 of file Nclient.c.

int stuff2byteuint ( unsigned short  data,
unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 2936 of file Nclient.c.

int stuff4byteint ( signed long  data,
unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 2887 of file Nclient.c.

int stuff4byteuint ( unsigned long  data,
unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 2957 of file Nclient.c.

int stuff_send_buffer_header ( unsigned short  index,
unsigned char  serial_number,
unsigned char  packet_type,
unsigned char *  buffer 
)

Definition at line 2818 of file Nclient.c.

int stuffchar ( signed char  data,
unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 2837 of file Nclient.c.

int stuffdouble ( double  data,
unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 2982 of file Nclient.c.

int stuffuchar ( unsigned char  data,
unsigned char *  buffer,
unsigned short *  index 
)

Definition at line 2917 of file Nclient.c.

int tk ( char *  talk_string)

Definition at line 1417 of file Nclient.c.

int vm ( int  t_vm,
int  s_vm,
int  r_vm 
)

Definition at line 1202 of file Nclient.c.

float voltCpuGet ( void  )

Definition at line 3497 of file Nclient.c.

float voltMotorGet ( void  )

Definition at line 3512 of file Nclient.c.

int ws ( unsigned char  t_ws,
unsigned char  s_ws,
unsigned char  r_ws,
unsigned char  timeout 
)

Definition at line 1933 of file Nclient.c.

int zr ( void  )

Definition at line 1463 of file Nclient.c.


Variable Documentation

int CONN_TYPE

Definition at line 214 of file Nclient.c.

int Laser[2 *NUM_LASER+1]

Definition at line 207 of file Nclient.c.

double LASER_CALIBRATION[8]

Definition at line 219 of file Nclient.c.

double LASER_OFFSET[2]

Definition at line 220 of file Nclient.c.

Definition at line 213 of file Nclient.c.

Definition at line 217 of file Nclient.c.

Definition at line 216 of file Nclient.c.

char SERIAL_PORT[40]

Definition at line 215 of file Nclient.c.

Definition at line 209 of file Nclient.c.

Definition at line 208 of file Nclient.c.

Definition at line 206 of file Nclient.c.

Definition at line 205 of file Nclient.c.



scout_ndirect
Author(s): Gonçalo Cabrita and Pedro Sousa
autogenerated on Mon Jan 6 2014 11:25:23