-
Notifications
You must be signed in to change notification settings - Fork 0
/
env5.txt
59 lines (51 loc) · 1.54 KB
/
env5.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%file: env4.txt
%
% Note that "%" is a comment character (the rest of line is ignored)
% We are basically reading several sequences of numbers,
% one sequence per line.
% Labels like "epsilon", "start", etc, will be ignored.
% Also, commas (",") and colons (":") are ignored.
% The order of the first 6 sequences of numbers are fixed:
%
% For simplicity, there is one bounding box B0
% and all other polygons are contained inside B0.
% REMARKS: when polygons nest inside each other, alternate
% levels must change their CW or CCW orientation.
%
% The structure of environment input files are as follows:
%
% 1. radius: r % radius of robot
% 2. epsilon: eps % small positive number
% 3. bX: x x' x'' x''' % (bX, bY) is the bounding box
% 4. bY: y y' y'' y''' % with vertices in CW order
% 5. start: x1 y1 % start configuration
% 6. goal: x2 y2 % goal configuration
%
% 7. p1X: x x' x'' x''' % (p1X, p1Y) is a polygon
% 8. p1Y: y y' y'' y''' % with vertices in CCW order
% 9. p2X: x x' x'' x''' % (p2X, p2Y) is a polygon
% 10. p2Y: y y' y'' y''' % with vertices in CCW order
% ... ... % ... as many polygons as needed
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Intro to Robotics, Spring 2017
% Chee Yap
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Robot:
radius: 0.4
% Resolution:
epsilon: 0.1
%Bounding Box:
PX: 0 10 10 0
PY: 0 0 10 10
%Configurations:
start: 3, 2
goal: 9, 9
% What follows is a sequence of polygons (in CCW order)
%Triangle
PX: 9 9 6
PY: 1 5 5
%Rectangle
PX: 2 7 7 2
PY: 5 5 8 8
% END