root / branches / simulator / projects / simulator / common / robot_shared.h @ 964
History | View | Annotate | Download (485 Bytes)
1 |
/* shared structs for simulator */
|
---|---|
2 |
|
3 |
|
4 |
typedef struct Position |
5 |
{ |
6 |
int x,y; /* position of robot in environment */ |
7 |
int theta; /* orientation of robot in environment */ |
8 |
}; |
9 |
|
10 |
|
11 |
typedef struct RangeFinder |
12 |
{ |
13 |
short d1,d2,d3,d4,d5;
|
14 |
}; |
15 |
|
16 |
|
17 |
typedef struct RobotSharedType |
18 |
{ |
19 |
struct Position pos; /* position in environment */ |
20 |
short motor1; /* motor1 value */ |
21 |
short motor2; /* motor2 value */ |
22 |
struct RangeFinder ranges; /* rangefinders */ |
23 |
/* add other sensors, etc here */
|
24 |
} RobotShared; |
25 |
|