-
Notifications
You must be signed in to change notification settings - Fork 0
/
micromouse_escape.xml
153 lines (122 loc) · 7.8 KB
/
micromouse_escape.xml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<mujoco>
<default>
<!-- <joint damping=".03" actuatorforcerange="-0.5 0.5"/> -->
<default class="wheel">
<geom type="cylinder" size=".0027 .0007" rgba=".5 .5 1 1" />
</default>
</default>
<compiler angle="degree" coordinate="local" inertiafromgeom="true" />
<option integrator="RK4" timestep="0.0001" />
<asset>
<texture builtin="gradient" height="100" rgb1="1 1 1" rgb2="0 0 0" type="skybox" width="100" />
<texture builtin="flat" height="1278" mark="cross" markrgb="1 1 1" name="texgeom"
random="0.01" rgb1="0.8 0.6 0.4" rgb2="0.8 0.6 0.4" type="cube" width="127" />
<texture builtin="checker" height="100" name="texplane" rgb1="0 0 0" rgb2="0.8 0.8 0.8"
type="2d" width="100" />
<material name="MatPlane" reflectance="0.5" shininess="1" specular="1" texrepeat="60 60"
texture="texplane" />
<material name="geom" texture="texgeom" texuniform="true" />
</asset>
<worldbody>
<!-- <geom type="plane" size="50 50 .01" rgba="0.6 1 0 1" /> -->
<geom conaffinity="1" condim="3" name="floor" friction="0.0 0.0 0.0" pos="0 0 0" rgba="0.8 0.9 0.8 1" size="40 40 40" type="plane"/>
<body pos="0 0 1.8e-3">
<freejoint />
<site name="sensor_left_front" type="box" size="0.003 0.003 0.003" pos="0.031 0.036 0.004" zaxis="1 0 0" rgba=".5 1 .5 1"/>
<site name="sensor_left_side" type="box" size="0.003 0.003 0.003" pos="0.043 0.016 0.004" zaxis="0.25 1 0" rgba=".5 1 .5 1"/>
<site name="sensor_right_front" type="box" size="0.003 0.003 0.003" pos="0.031 -0.036 0.004" zaxis="1 0 0" rgba=".5 1 .5 1"/>
<site name="sensor_right_side" type="box" size="0.003 0.003 0.003" pos="0.043 -0.016 0.004" zaxis="0.25 -1 0" rgba=".5 1 .5 1"/>
<body>
<geom name="mein_body" type="box" size="0.05 0.04 0.0016" friction="0.0 0.0 0.0" rgba="0.05 0.4 0.15 .7" pos="0 0 0.001" />
<site name = "hit_box" type = "box" size = "0.02 0.05 0.0005" pos="0.04 0 0.002" rgba=".5 .2 0 .3"/>
<site name = "hit_box2" type = "box" size = "0.02 0.05 0.0005" pos="-0.04 0 0.002" rgba=".5 .2 0 .3"/>
</body>
<!-- <body name="left wheel" pos="-0.0 0.036 0.0117" zaxis="0 1 0"> -->
<body name="left wheel" pos="-0.0 0.036 0.0117" zaxis="0 1 0">
<joint name="left wheel joint" type="hinge" axis="0 1 0" limited="false" damping="0.002266" />
<geom type="cylinder" size="0.0135 0.0035" rgba=".3 .3 0.3 1" />
<site type="box" rgba="1 1 1 1" size=".0006 .0036 .0012" />
</body>
<body name="right wheel" pos="-0.0 -0.036 0.0117" zaxis="0 1 0">
<joint name="right wheel joint" type="hinge" axis="0 0 1" limited="false" damping="0.002266" />
<geom type="cylinder" size="0.0135 0.0035" rgba=".3 .3 0.3 1" />
<site type="box" rgba="1 1 1 1" size=".0006 .0036 .0012" />
</body>
<body name="motorbox1" pos="0 -0.018 0.0135">
<geom type="box" size="0.01 0.0135 0.01" rgba="0.1 0.1 0.1 1" />
</body>
<body name="motorbox2" pos="0 0.018 0.0135">
<geom type="box" size="0.01 0.0135 0.01" rgba="0.1 0.1 0.1 1" />
</body>
</body>
<!-- <site type="box" rgba="1 0 0 0.2" fromto="0 0 0 2 0 0" size="0.02"/>
<site type="box" rgba="0 1 0 0.2" fromto="0 0 0 0 2 0" size="0.02"/>
<site type="box" rgba="0 0 1 0.2" fromto="0 0 0 0 0 2" size="0.02"/> -->
<body name="wall" pos="7 0.0 0">
<geom type="box" size="0.1 2 0.3" rgba=".5 .5 1 1" />
</body>
<!-- <body name="maze_wall_back" pos="-0.45 0 0.025">
<geom type="box" size="0.005 0.18 0.025" rgba=".5 .5 1 1" />
</body> -->
<!--
<body name="side_wall1" pos="0 3 2">
<freejoint />
<geom type="box" size="2 0.1 0.3" rgba=".5 .5 1 1" />
</body> -->
<!--
<body name="side_wall2" pos="0 -3 2">
<freejoint />
<geom type="box" size="2 0.1 0.3" rgba=".5 .5 1 1" />
</body> -->
<!--
<body name="maze_init_wall_outline" pos="0 0.09 0.025">
<geom type="box" size="0.09 0.005 0.025" rgba=".5 .5 .3 0.5" pos="0 -0.18 0.0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 1" pos="0.18 0 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 1" pos="0.36 0 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 1" pos="0.54 0 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 1" pos="0.72 0 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 1" pos="0.90 0 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 1" pos="1.08 0 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 1" pos="1.26 0 0"/>
<geom type="box" size="0.005 0.09 0.025" rgba="1 0 0 1" pos="0.81 -0.09 0"/>
<geom type="box" size="0.005 0.09 0.025" rgba="1 0 0 1" pos="0.81 -0.18 0"/>
<geom type="box" size="0.005 0.09 0.025" rgba="1 0 0 1" pos="0.81 -0.36 0"/>
<geom type="box" size="0.005 0.09 0.025" rgba="1 0 0 1" pos="0.81 -0.54 0"/>
<geom type="box" size="0.005 0.18 0.025" rgba="1 0 0 1" pos="0.81 -0.72 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba=".5 .5 .3 0.5" />
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 0.4" pos="0.0 -0.90 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 0.4" pos="0.18 -0.90 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 0.4" pos="0.36 -0.90 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 0.4" pos="0.54 -0.90 0"/>
<geom type="box" size="0.09 0.005 0.025" rgba="1 0 0 0.4" pos="0.72 -0.90 0"/>
<geom type="box" size="0.005 0.09 0.025" rgba=".5 .5 .3 0.5" pos="-0.09 -0.09 0"/>
<geom type="box" size="0.005 0.09 0.025" rgba="1 0 0 1" pos="-0.09 -0.18 0"/>
<geom type="box" size="0.005 0.09 0.025" rgba="1 0 0 1" pos="-0.09 -0.36 0"/>
<geom type="box" size="0.005 0.09 0.025" rgba="1 0 0 1" pos="-0.09 -0.54 0"/>
<geom type="box" size="0.005 0.18 0.025" rgba="1 0 0 1" pos="-0.09 -0.72 0"/>
</body> -->
<!-- かべかべかべn --><!-- かべかべかべn --><!-- かべかべかべn --><!-- かべかべかべn --><!-- かべかべかべn -->
<!-- <body name="maze_wall2" pos="1.9 -0.09 0.025">
<geom type="box" size="8 0.005 0.025" rgba=".5 .5 1 1" />
</body>
<body name="long_wall2" pos="1.9 0.09 0.025">
<geom type="box" size="8 0.005 0.025" rgba=".5 .5 1 1" />
</body> -->
<!-- かべかべかべn --><!-- かべかべかべn --><!-- かべかべかべn --><!-- かべかべかべn --><!-- かべかべかべn -->
<body name="goal1" pos="-2 0 0">
<geom name="goal" type="sphere" size="0.09" rgba="1 1 0 0.6" />
</body>
</worldbody>
<actuator>
<motor name="right" joint="right wheel joint" gear="0.0185"/>
<motor name="left" joint="left wheel joint" gear="0.0185"/>
</actuator>
<sensor>
<rangefinder name="LF" site="sensor_left_front" cutoff="0.20"/>
<rangefinder name="LS" site="sensor_left_side" cutoff="0.20"/>
<rangefinder name="RF" site="sensor_right_front" cutoff="0.20"/>
<rangefinder name="RS" site="sensor_right_side" cutoff="0.20"/>
<touch name = "HB" site = "hit_box"/>
<touch name = "HB2" site = "hit_box2"/>
</sensor>
</mujoco>