Skip to content

Commit 4041181

Browse files
committed
Added prototypes of loop functions for habanero, and xmas and easter videos
1 parent 1cd3ceb commit 4041181

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+31745
-0
lines changed

scenarios/easter.argos

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
<?xml version="1.0" ?>
2+
<argos-configuration>
3+
<!-- ************* -->
4+
<!-- * Framework * -->
5+
<!-- ************* -->
6+
<framework>
7+
<experiment length="360"
8+
ticks_per_second="10" random_seed="868737"/>
9+
</framework>
10+
11+
<!-- ****************** -->
12+
<!-- * Loop functions * -->
13+
<!-- ****************** -->
14+
<loop_functions library="/home/mkegelei/tuttifrutti-xmas/experiments-loop-functions/devel/lib/libeaster_sw_loopfunc.so"
15+
label="easter_sw_loop_function">
16+
<params number_robots="6"
17+
build_arena="true"
18+
number_edges="8"
19+
number_boxes_per_edge="3"
20+
lenght_boxes="0.25"/>
21+
</loop_functions>
22+
23+
<!-- *************** -->
24+
<!-- * Controllers * -->
25+
<!-- *************** -->
26+
<controllers>
27+
<!-- TRANSMITTER -->
28+
<automode_controller id="tuttifrutti"
29+
library="/home/mkegelei/tuttifrutti-xmas/AutoMoDe-tuttifrutti/build/src/libautomode.so">
30+
<actuators>
31+
<epuck_wheels implementation="default" noise_std_dev="0.05"/>
32+
<epuck_rgb_leds implementation="default" medium="leds"/>
33+
<epuck_range_and_bearing implementation="medium" medium="rab" data_size="4" range="0.5"/>
34+
</actuators>
35+
<sensors>
36+
<epuck_proximity implementation="default" show_rays="false" noise_level="0.05" calibrated="true"/>
37+
<epuck_range_and_bearing implementation="medium" medium="rab" data_size="4" nois_std_deviation="1.5" loss_probability="0.85" calibrated="true"/>
38+
<epuck_light implementation="default" show_rays="false" noise_level="0.05" calibrated="true"/>
39+
<epuck_ground implementation="rot_z_only" noise_level="0.05" calibrated="true"/>
40+
<epuck_omnidirectional_camera implementation="rot_z_only" medium="leds" show_rays="false"/>
41+
</sensors>
42+
43+
<params readable="false" history='false'
44+
45+
fsm-config="--nstates 2 --s0 9 --vel0 1.0 --cle0 0 --clr0 2 --n0 1 --n0x0 0 --c0x0 2 --p0x0 0.68 --s1 8 --vel1 1.0 --cle1 5 --clr1 3 --n1 2 --n1x0 0 --c1x0 7 --p1x0 0.55 --l1x0 1 --n1x1 0 --c1x1 3 --p1x1 9 --w1x1 18.18"/>
46+
47+
48+
<!-- From sa -> n0x0 sb = n0x0 sb+1, (a < b) -->
49+
<!-- From sa -> n0x0 sb = n0x0 sb , (a > b)-->
50+
</automode_controller>
51+
52+
</controllers>
53+
54+
<!-- ********* -->
55+
<!-- * Arena * -->
56+
<!-- ********* -->
57+
<arena size="3, 3, 1" center="0,0,0">
58+
59+
<!-- ********* -->
60+
<!-- * Tree * -->
61+
<!-- ********* -->
62+
63+
<box id="box" size="0.001,0.001,0.04" movable="false">
64+
<body position="0,0,0" orientation="0,0,0"/>
65+
<leds medium="leds">
66+
67+
<led id="led_0" offset=" 0.0, 0.75, 0.18" anchor="origin" color="red" />
68+
<led id="led_1" offset=" 0.0, 0.50, 0.18" anchor="origin" color="red" />
69+
<led id="led_2" offset=" 0.0, 0.25, 0.18" anchor="origin" color="red" />
70+
<led id="led_3" offset=" 0.0, 0.0, 0.18" anchor="origin" color="red" />
71+
<led id="led_4" offset=" 0.0, -0.25, 0.18" anchor="origin" color="red" />
72+
<led id="led_5" offset=" 0.0, -0.50, 0.18" anchor="origin" color="red" />
73+
<led id="led_6" offset=" 0.0, -0.75, 0.18" anchor="origin" color="red" />
74+
75+
<led id="led_7" offset=" 0.25, 0.75, 0.18" anchor="origin" color="red" />
76+
<led id="led_8" offset=" 0.25, 0.50, 0.18" anchor="origin" color="red" />
77+
<led id="led_9" offset=" 0.25, 0.25, 0.18" anchor="origin" color="red" />
78+
<led id="led_10" offset=" 0.25, 0.0, 0.18" anchor="origin" color="red" />
79+
<led id="led_11" offset=" 0.25, -0.25, 0.18" anchor="origin" color="red" />
80+
<led id="led_12" offset=" 0.25, -0.50, 0.18" anchor="origin" color="red" />
81+
<led id="led_13" offset=" 0.25, -0.75, 0.18" anchor="origin" color="red" />
82+
83+
<led id="led_14" offset=" 0.50, 0.50, 0.18" anchor="origin" color="red" />
84+
<led id="led_15" offset=" 0.50, 0.25, 0.18" anchor="origin" color="red" />
85+
<led id="led_16" offset=" 0.50, 0.0, 0.18" anchor="origin" color="red" />
86+
<led id="led_17" offset=" 0.50, -0.25, 0.18" anchor="origin" color="red" />
87+
<led id="led_18" offset=" 0.50, -0.50, 0.18" anchor="origin" color="red" />
88+
89+
<led id="led_19" offset=" 0.75, 0.25, 0.18" anchor="origin" color="red" />
90+
<led id="led_20" offset=" 0.75, 0.0, 0.18" anchor="origin" color="red" />
91+
<led id="led_21" offset=" 0.75, -0.25, 0.18" anchor="origin" color="red" />
92+
93+
</leds>
94+
</box>
95+
96+
<!-- Change the floor here -->
97+
<floor id="floor" source="loop_functions" pixels_per_meter="300"/>
98+
99+
<!-- Change the light here -->
100+
<!-- Please note that this light has an intensity equal to 0 -->
101+
<!-- and therefore does not affect the experiment. -->
102+
<!-- ARGoS requires at least one light when using the light sensor -->
103+
<light id="light" position="-1.4,0,0.4" orientation="0,0,0" color="yellow" intensity="0.0" medium="leds"/>
104+
105+
<!-- ********** -->
106+
<!-- * E-Puck * -->
107+
<!-- ********** -->
108+
109+
<distribute>
110+
<position method="uniform" min="-1,-1,0" max="1,1,0" />
111+
<orientation method="gaussian" mean="0,0,0" std_dev="360,0,0" />
112+
<entity quantity="6" max_trials="100">
113+
<e-puck id="epuck">
114+
<controller config="tuttifrutti" />
115+
</e-puck>
116+
</entity>
117+
</distribute>
118+
119+
<!-- ********** -->
120+
<!-- * Walls * -->
121+
<!-- ********** -->
122+
123+
<!-- The walls are distributed by the AutoMoDeLoopFunctions. -->
124+
</arena>
125+
126+
<!-- ******************* -->
127+
<!-- * Physics engines * -->
128+
<!-- ******************* -->
129+
<physics_engines>
130+
<dynamics2d id="dyn2d" />
131+
</physics_engines>
132+
133+
<!-- ********* -->
134+
<!-- * Media * -->
135+
<!-- ********* -->
136+
<media>
137+
<led id="leds" grid_size="1,1,1"/>
138+
<range_and_bearing id="ircom"/>
139+
<range_and_bearing id="rab"/>
140+
</media>
141+
142+
<!-- ***************** -->
143+
<!-- * Visualization * -->
144+
<!-- ***************** -->
145+
146+
<visualization>
147+
<qt-opengl>
148+
<camera>
149+
<placement idx="0"
150+
position="0,0,2.7"
151+
look_at="0,0,0"
152+
lens_focal_length="30" />
153+
</camera>
154+
</qt-opengl>
155+
</visualization>
156+
157+
</argos-configuration>

0 commit comments

Comments
 (0)