Skip to content

Commit

Permalink
C4
Browse files Browse the repository at this point in the history
  • Loading branch information
nunolau committed Nov 11, 2022
1 parent e8a22ff commit 92b82a3
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Labs/rmi-2223/C4-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Parameters SimTime="5000" CycleTime="50"
CompassNoise="2" BeaconNoise="2" ObstacleNoise="0.1"
MotorsNoise="1.5" KeyTime="5000"
GPS="Off" GPSLinNoise="0.0" GPSDirNoise="0"
LineSensorTrueProb="0.99"
BeaconSensor="Off"
CompassSensor="On"
ScoreSensor="Off" ShowActions="True" NBeacons="0"
NRequestsPerCycle="0"
ObstacleRequestable="Off" BeaconRequestable="Off"
GroundRequestable="Off" CompassRequestable="Off"
CollisionRequestable="Off"
ObstacleLatency="0" BeaconLatency="0"
GroundLatency="0" CompassLatency="0"
CollisionLatency="0"
BeaconAperture="3.141593"
ReturnTimePenalty="25" ArrivalTimePenalty="100"
CollisionWallPenalty="0" CollisionRobotPenalty="0"
TargetReward="100" HomeReward="100"
/>
4 changes: 4 additions & 0 deletions Labs/rmi-2223/C4-grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Grid>\n"
<Position X="4.0" Y="10.0" Dir="0.0"/>
</Grid>

24 changes: 24 additions & 0 deletions Labs/rmi-2223/C4-lab.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Lab Name="RMI-2223 C3 Lab" Height="14" Width="28">
<Beacon X="4" Y="10.0" Height="4.0"/>
<Target X="4" Y="10.0" Radius="1.0"/>
<Beacon X="16" Y="2.0" Height="4.0"/>
<Target X="16" Y="2.0" Radius="1.0"/>
<Beacon X="20" Y="8.0" Height="4.0"/>
<Target X="20" Y="8.0" Radius="1.0"/>
<Beacon X="8" Y="4.0" Height="4.0"/>
<Target X="8" Y="4.0" Radius="1.0"/>
<Row Pos="12" Height="0.0" Pattern=" " />
<Row Pos="11" Height="0.0" Pattern=" + + + +--+--+--+--+ + +--+--+--+ " />
<Row Pos="10" Height="0.0" Pattern=" | | | | | " />
<Row Pos="9" Height="0.0" Pattern=" + +--+--+ +--+--+--+ +--+ + +--+ " />
<Row Pos="8" Height="0.0" Pattern=" | | | | | | | " />
<Row Pos="7" Height="0.0" Pattern=" + + +--+ +--+ + +--+--+--+--+--+ " />
<Row Pos="6" Height="0.0" Pattern=" | | | | | | | " />
<Row Pos="5" Height="0.0" Pattern=" + +--+--+--+ +--+--+--+--+--+ +--+ " />
<Row Pos="4" Height="0.0" Pattern=" | | | | " />
<Row Pos="3" Height="0.0" Pattern=" +--+ +--+--+--+ + + +--+ + +--+ " />
<Row Pos="2" Height="0.0" Pattern=" | | | | | | | | " />
<Row Pos="1" Height="0.0" Pattern=" +--+--+--+--+--+ +--+--+ +--+--+--+ " />
<Row Pos="0" Height="0.0" Pattern=" " />
</Lab>

15 changes: 15 additions & 0 deletions startC4
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

ARGS="--param ../Labs/rmi-2223/C4-config.xml"
ARGS+=" --lab ../Labs/rmi-2223/C4-lab.xml"
ARGS+=" --grid ../Labs/rmi-2223/C4-grid.xml"
ARGS+=" --scoring 6"
(cd simulator; ./simulator $ARGS) &

sleep 2

(cd Viewer; ./Viewer --autoconnect)

killall simulator

echo Bye

0 comments on commit 92b82a3

Please sign in to comment.