Project

General

Profile

Revision 964

added some structs to the common header file

View differences:

branches/simulator/projects/simulator/common/robot_shared.h
1
/* shared structs for simulator */
1 2

  
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
};
3 9

  
10

  
11
typedef struct RangeFinder
12
{
13
  short d1,d2,d3,d4,d5;
14
};
15

  
16

  
4 17
typedef struct RobotSharedType
5 18
{
6
	short motor1;
7
	short motor2;
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 */
8 24
} RobotShared;
9 25

  

Also available in: Unified diff