1- Field Coordinate System Definition
2- ==================================
1+ *FIRST * Tech Challenge Field Coordinate System Definition
2+ =========================================================
3+
4+ .. meta ::
5+ :description: This document defines the Field Coordinate System which can be used to specify position on the playing field.
6+
7+
8+ Summary: The *FIRST * Tech Challenge Field Coordinate System is a Cartesian Coordinate System of three dimensions.
9+ The X and Y axes will refer to a position on the Field and the Z axis a height above the Field.
10+
11+ .. contents :: In This Article:
12+ :local:
13+ :depth: 1
14+ :backlinks: none
315
416Scope
517-----
6-
718
819This document defines the Field Coordinate System
920for a *FIRST * Tech Challenge playing Field. This definition can be
1021used for consistent field-centric navigation, target localization and path
1122planning.
1223
13- The Field Coordinate System is a
14- `three-dimensional Cartesian coordinate system
15- <https://en.wikipedia.org/wiki/Cartesian_coordinate_system#Three_dimensions> `__
16- which means that the three axes are at right angles to each other.
17- The X and Y axes will refer to a position on the Field and Z axis a height above the Field.
18-
1924Reference Frame
2025---------------
2126
@@ -24,11 +29,21 @@ to the red Alliance Area, known here after as the Red Wall. The definition is
2429from the perspective of a person, standing outside the Field, in the center of
2530Red Wall, looking towards the center of the Field.
2631
27- .. note ::
32+ .. note ::
2833 If the red Alliance Area is ever adjacent to two perimeter walls,
2934 the Red Wall will be the one with *most * contact with the Alliance Area. If
3035 the red Alliance Area is ever adjacent to two perimeter walls *equally *, then
3136 the most clockwise of the two walls will be considered to be the Red Wall.
37+
38+ Coordinate System
39+ -----------------
40+
41+ The Field Coordinate System is a Cartesian Coordinate System of three dimensions.
42+ X and Y will refer to a position on the field.
43+ Z will refer to a height above the field.
44+ You may use any length measure as long as the same measure is used for all three axes.
45+ The coordinates are ordered (X, Y, Z).
46+ Example: coordinate position (10, -10, 0) has X = 10, Y = -10 and Z = 0.
3247
3348Origin
3449^^^^^^
@@ -65,58 +80,54 @@ Rotation About Axes
6580When considering rotations about an axis, consider yourself looking down the
6681axis from the positive end towards the origin. Positive
6782rotations are then counterclockwise and negative rotations clockwise.
68- This rotation convention comes from the
69- `right hand rule <https://en.wikipedia.org/wiki/Right-hand_rule >`__ of classic geometry.
70-
71- .. figure :: images/image1.jpg
72- :width: 35%
73- :align: center
74- :class: no-scaled-link
75- :alt: illustration
7683
77- showing the counterclockwise rotations about each axis.
84+ .. figure :: images/image1.jpg
85+ :alt:
7886
79- A rotation example: consider looking down the positive Z axis towards the origin.
80- This would be like standing in the middle of the Field
81- looking down at the intersection of the tiles in the very center of the Field.
82- A positive rotation about the Z axis is then counterclockwise.
83- Example: a robot spinning clockwise on the Field is making a negative rotation about the Z axis.
87+ Rotations about each axis.
88+
89+ Imagine looking down the positive Z axis towards the origin.
90+ This would be like standing in the middle of the Field
91+ looking down at the intersection of the tiles in the very center of the Field.
92+ A positive rotation about the Z axis is then counterclockwise.
93+
94+ Example: a robot spinning clockwise on the Field is making a negative rotation about the Z axis.
8495
8596Field Configuration Examples
8697----------------------------
8798
8899Below are two examples illustrating the Field Coordinate System for different
89100*FIRST * Tech Challenge Field configurations.
90101
91- In a diamond Field configuration the two Alliance walls are adjacent.
92- The Field is rotated 45 degrees such that both Alliance Areas face the audience.
93- From the audience perspective the Field forms a diamond shape.
94- The Red Wall will be on the right as seen from the audience,
95- and the blue wall will be on the left.
96- The Y axis points across the Field as seen from the Red Wall.
97- The X axis points to the blue wall.
102+ Diamond Field
103+ ^^^^^^^^^^^^^
98104
99105.. figure :: images/image2.jpg
100- :width: 75%
101- :align: center
102- :class: no-scaled-link
103- :alt: a diamond Field
106+ :alt:
104107
105- from the *FIRST * RES-Q game
106-
107- In a square Field configuration the two Alliances face each other across the Field.
108- The Field is oriented such that the Red Wall is on the right as seen from the audience,
109- and the blue wall will be on the left.
110- The Y axis points across the Field from the Red Wall to the blue wall.
111- The X axis points away from the audience to the rear of the Field.
108+ The *FIRST * RES-Q game Field with X, Y and Z axes shown.
109+
110+ In a diamond Field configuration the two Alliance walls are adjacent.
111+ The Field is rotated 45 degrees such that both Alliances face the audience.
112+ From the audience perspective the Field forms a diamond shape.
113+ The Red Wall will be on the right as seen from the audience,
114+ and the blue wall will be on the left.
115+ The Y axis points across the Field as seen from the Red Wall.
116+ The X axis points to the blue wall.
117+
118+ Square Field
119+ ^^^^^^^^^^^^
112120
113121.. figure :: images/image3.jpg
114- :width: 75%
115- :align: center
116- :class: no-scaled-link
117- :alt: a square Field
122+ :alt:
118123
119- from the Cascade Effect game
124+ The Cascade Effect game Field with X, Y and Z axes shown.
125+
126+ In a square Field configuration the two Alliances face each other across the Field.
127+ The Field is oriented such that the Red Wall is on the right as seen
128+ from the audience, and the blue wall will be on the left.
129+ The Y axis points across the Field from the Red Wall to the blue wall.
130+ The X axis points away from the audience to the rear of the Field.
120131
121132.. note ::
122133 In both Field configurations the red Alliance is facing out along the positive Y axis,
@@ -126,10 +137,24 @@ The X axis points away from the audience to the rear of the Field.
126137 towards the blue Alliance. In the square Field configuration
127138 the Y axis is pointing towards the blue Alliance.
128139
140+ Coordinate Position Example
141+ ---------------------------
142+
143+ Let's consider a robot on the Cascade Effect Field at coordinates
144+ (60, -60, 10) in inches. So X = 60, y = -60, and Z = 10.
145+ Measured in inches, the walls would be about 72 inches from the origin.
146+ Cascade Effect was a Sqaure Field configuration, so
147+ the X axis value of positive 60 would be located close to the rear field wall, away from the audience.
148+ The Y axis value of negative 60 would be located close to the Red Wall, away from the origin.
149+ Together the X and Y values (60, -60) indicate a position in the corner of the Field.
150+ That corner is adjacent to the Red Wall and furthest from the audience.
151+ The Z axis value of 10 places the robot on top of the red
152+ ramp that is in that corner in the Cascade Effect game.
153+
129154Measured Values
130155---------------
131156
132- The following values have been measured from a 2016 competition Field. They are
157+ The following metric values have been measured from a 2016 competition Field. They are
133158representative only, and should not be assumed to be exact, or guaranteed.
134159
135160- Distance between opposite inside faces of panels: 3580 mm,
@@ -141,7 +166,31 @@ representative only, and should not be assumed to be exact, or guaranteed.
141166
142167So, for a diamond Field configuration, the corner of the Field closest to the
143168audience, at a height equal to the top of the perimeter wall, would have a
144- coordinate position of: (-1790, 1790, 300).
169+ coordinate position of: (-1790, 1790, 300) in millimeters.
170+
171+ Additional Information
172+ ----------------------
173+
174+ See this Wikipedia article on `Cartesian coordinate system
175+ <https://en.wikipedia.org/wiki/Cartesian_coordinate_system#Three_dimensions> `__
176+ in three dimensions.
177+ The Field Coordinate System rotation convention comes from the
178+ `right hand rule <https://en.wikipedia.org/wiki/Right-hand_rule >`__
179+ of classic geometry.
180+
181+ Robots with a webcam can use :ref: `AprilTags <apriltag/vision_portal/apriltag_intro/apriltag-intro:apriltag introduction >`
182+ to determine where an :ref: `AprilTag is located
183+ <apriltag/understanding_apriltag_detection_values/understanding-apriltag-detection-values:introduction>`
184+ with respect to the robot.
185+ Since AprilTags are in known locations on the field, you can also determine the
186+ :ref: `location of the robot <apriltag/vision_portal/apriltag_localization/apriltag-localization:apriltag localization >`
187+ on the field.
188+
189+ Robots can use an inertial measurement unit (IMU) to measure rotations about axes
190+ with respect to the robot. See :ref: `IMU axes definition. <programming_resources/imu/imu:axes definition >`
191+ The yaw value from the IMU, also known the heading, measures rotation about the Z axis
192+ which points up from the robot.
193+ You can use the IMU to determine which direction a robot is facing.
145194
146195Glossary
147196--------
@@ -154,12 +203,21 @@ Glossary
154203 and an Alliance in the blue Alliance Area is known as the blue Alliance.
155204
156205 Alliance Area
157- A 120 inch (~304.8 cm) wide by 42 inch (~106.7 cm) deep by infinitely tall volume formed
158- by placing Alliance colored tape onto the flooring surface outside of the Field.
159- The Alliance Area includes the taped lines.
206+ A 120 inch wide by 42 inch deep (304.8 cm by 106.7 cm) by infinitely tall volume
207+ formed by placing Alliance colored tape onto the flooring surface outside of the Field.
160208 The red Alliance Area will have red tape, the blue Alliance Area will have blue tape.
209+ The Alliance Area includes the taped lines.
210+
211+ Cartesian Coordinate System
212+ A Cartesian coordinate system for three-dimensional space consists of an ordered triplet of lines
213+ (the axes) that go through a common point (the origin). The axes are pair-wise perpendicular
214+ (at right-angles to each other). A single unit of measure applies to all three axes.
215+ A point P in space can then be referenced by three numbers which correspond to the three axes.
216+ The Cartesian coordinates of P are those three numbers, in the chosen order.
161217
162218 Field
163- An approximately 12 foot (3.66m) by 12 foot (3.66m) Area bounded by the
219+ A square area with walls approximately 12 feet (3.66 meters) long bounded by the
164220 outside edge of the extrusion that frames the walls of the Field perimeter.
165- The flooring surface of the Field is made of 36 (nominal size) 24 inch by 24 inch by 5/8 inch interlocking soft foam tiles.
221+ The flooring surface of the Field is made of 36 interlocking soft foam tiles.
222+ The nominal size of a tile is 24 inches by 24 inches by 5/8 of an inch.
223+
0 commit comments