Skip to content

Commit

Permalink
Code Release 2024 of Shared Autonomy Challenge
Browse files Browse the repository at this point in the history
Co-authored-by: Leon B.
Co-authored-by: Dominik Brämer <[email protected]>
Co-authored-by: Alexandra Cloodt <[email protected]>
Co-authored-by: Lisa Dasmann <[email protected]>
Co-authored-by: Alicia Gayda <[email protected]>
Co-authored-by: Robert Huber <[email protected]>
Co-authored-by: Diana Kleingarn <[email protected]>
Co-authored-by: Thomas Klute <[email protected]>
Co-authored-by: Angelina Koch <[email protected]>
Co-authored-by: Aaron Larisch <[email protected]>
Co-authored-by: Mahdokht Mohammadi <[email protected]>
Co-authored-by: Arne Moos <[email protected]>
Co-authored-by: Tim Plotzki <[email protected]>
Co-authored-by: Ingmar Schwarz <[email protected]>
Co-authored-by: Alexander Voß <[email protected]>
  • Loading branch information
14 people committed Oct 15, 2024
1 parent de64b13 commit 39d4c90
Show file tree
Hide file tree
Showing 102 changed files with 1,815 additions and 611 deletions.
2 changes: 1 addition & 1 deletion Config/KeyFrameEngine/saveFallFront.kfm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ keyFrames = [
leavingPossible = false;
useArmProblemDetection = [false,false];
armAngleReached = false;
holdFrame = 500;
holdFrame = 128;
nextKeyFrameConditions = [none];
nextKeyFrameIDs = [none];
fallDownProtection = none;
Expand Down
21 changes: 21 additions & 0 deletions Config/Scenes/Includes/SharedAutonomy.con
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vf worldState
vfd worldState fieldLines
vfd worldState goalFrame
vfd worldState fieldPolygons
vfd worldState representation:GameInfo
vfd worldState representation:RobotPose

vfd worldState behavior:RemoteControlProvider
vfd worldState representation:RobotMap
vfd worldState representation:BallChaserDecision
vfd worldState representation:TeammateData
vfd worldState origin:RobotPoseAfterPreview
vfd worldState representation:MotionRequest
vfd worldState origin:RobotPose
vfd worldState representation:BallModel
vfd worldState representation:BallModel:endPosition

vd module:BallChaserDecisionProvider:overwrite

echo call Includes/JPEGImageViews
echo set parameters:JPEGImageProvider quality = 15;
19 changes: 19 additions & 0 deletions Config/Scenes/SharedAutonomyAttackers.con
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
call Includes/Normal

robot robot8
dr module:BallChaserDecisionProvider:enable on
robot robot9
dr module:BallChaserDecisionProvider:enable on

robot robot3
call Includes/FieldViewsCreate
call Includes/Ballchaser

robot robot4
rc offensive
rc passPref
rc on
call Includes/SharedAutonomy

echo gc playing
echo rc kickPref
47 changes: 47 additions & 0 deletions Config/Scenes/SharedAutonomyAttackers.ros2
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<Simulation>

<Include href="Includes/NaoV6H25.rsi2"/>
<Include href="Includes/Ball2016SPL.rsi2"/>
<Include href="Includes/Field2020SPL.rsi2"/>
<Include href="Includes/Boards.rsi2"/>

<Scene name="RoboCup" controller="SimulatedNao" stepLength="0.012" color="rgb(65%, 65%, 70%)" Kp="12500" Kd="10000" contactKp="1425" contactKd="7.5">
<Light z="9m" ambientColor="rgb(50%, 50%, 50%)"/>

<Compound name="robots">
<Body ref="Nao" name="robot3">
<Translation x="0.3" y="0.3" z="330mm"/>
<Rotation z="180degree"/>
<Set name="NaoColor" value="red"/>
</Body>
<Body ref="Nao" name="robot4">
<Translation x="3" y="-1" z="330mm"/>
<Rotation z="180degree"/>
<Set name="NaoColor" value="yellow"/>
</Body>

<Body ref="Nao" name="robot8">
<Translation x="-4.5" z="330mm"/>
<Set name="NaoColor" value="blue"/>
</Body>
<Body ref="Nao" name="robot9">
<Translation x="-3" y= "1.4" z="330mm"/>
<Set name="NaoColor" value="black"/>
</Body>
</Compound>

<Compound name="balls">
<Body ref="ball">
<Translation z="0.05m"/>
</Body>
</Compound>

<Compound name="boards">
<Compound ref="boards"/>
</Compound>

<Compound name="field">
<Compound ref="field"/>
</Compound>
</Scene>
</Simulation>
23 changes: 23 additions & 0 deletions Config/Scenes/SharedAutonomyDefenders.con
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
call Includes/Normal

robot robot10
dr module:BallChaserDecisionProvider:enable on
robot robot11
dr module:BallChaserDecisionProvider:enable on

#robot robot1
robot robot3
call Includes/FieldViewsCreate
call Includes/Ballchaser

robot robot2
rc defensive
rc passPref
rc on
call Includes/SharedAutonomy

echo gc playing
echo rc kickPref
echo rc passPref
echo rc offensive
echo rc defensive
47 changes: 47 additions & 0 deletions Config/Scenes/SharedAutonomyDefenders.ros2
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<Simulation>

<Include href="Includes/NaoV6H25.rsi2"/>
<Include href="Includes/Ball2016SPL.rsi2"/>
<Include href="Includes/Field2020SPL.rsi2"/>
<Include href="Includes/Boards.rsi2"/>

<Scene name="RoboCup" controller="SimulatedNao" stepLength="0.012" color="rgb(65%, 65%, 70%)" Kp="12500" Kd="10000" contactKp="1425" contactKd="7.5">
<Light z="9m" ambientColor="rgb(50%, 50%, 50%)"/>

<Compound name="robots">
<Body ref="Nao" name="robot3">
<Translation x="1.0" z="330mm"/>
<Rotation z="180degree"/>
<Set name="NaoColor" value="red"/>
</Body>
<Body ref="Nao" name="robot2">
<Translation x="3" y="0" z="330mm"/>
<Rotation z="180degree"/>
<Set name="NaoColor" value="yellow"/>
</Body>

<Body ref="Nao" name="robot10">
<Translation x="-0.3" y="0.3" z="330mm"/>
<Set name="NaoColor" value="blue"/>
</Body>
<Body ref="Nao" name="robot11">
<Translation x="-3" y="-1" z="330mm"/>
<Set name="NaoColor" value="black"/>
</Body>
</Compound>

<Compound name="balls">
<Body ref="ball">
<Translation z="0.05m"/>
</Body>
</Compound>

<Compound name="boards">
<Compound ref="boards"/>
</Compound>

<Compound name="field">
<Compound ref="field"/>
</Compound>
</Scene>
</Simulation>
14 changes: 14 additions & 0 deletions Config/Scenes/SharedAutonomyDummyAttackers.con
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
call Includes/Normal

robot robot3
call Includes/FieldViewsCreate
call Includes/Ballchaser

robot robot4
rc offensive
rc passPref
rc on
call Includes/SharedAutonomy

echo gc playing
echo rc kickPref
49 changes: 49 additions & 0 deletions Config/Scenes/SharedAutonomyDummyAttackers.ros2
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<Simulation>

<Include href="Includes/NaoV6H25.rsi2"/>
<Include href="Includes/Ball2016SPL.rsi2"/>
<Include href="Includes/Field2020SPL.rsi2"/>
<Include href="Includes/Boards.rsi2"/>

<Scene name="RoboCup" controller="SimulatedNao" stepLength="0.012" color="rgb(65%, 65%, 70%)" Kp="12500" Kd="10000" contactKp="1425" contactKd="7.5">
<Light z="9m" ambientColor="rgb(50%, 50%, 50%)"/>

<Compound name="robots">
<Body ref="Nao" name="robot3">
<Translation x="0.3" y="0.3" z="330mm"/>
<Rotation z="180degree"/>
<Set name="NaoColor" value="red"/>
</Body>
<Body ref="Nao" name="robot4">
<Translation x="3" y="-1" z="330mm"/>
<Rotation z="180degree"/>
<Set name="NaoColor" value="yellow"/>
</Body>
</Compound>

<Compound name="extras">
<Body ref="NaoDummy" name="robot8">
<Translation x="-4.5" z="330mm"/>
<Set name="NaoColor" value="blue"/>
</Body>
<Body ref="NaoDummy" name="robot9">
<Translation x="-3" y= "1.4" z="330mm"/>
<Set name="NaoColor" value="black"/>
</Body>
</Compound>

<Compound name="balls">
<Body ref="ball">
<Translation z="0.05m"/>
</Body>
</Compound>

<Compound name="boards">
<Compound ref="boards"/>
</Compound>

<Compound name="field">
<Compound ref="field"/>
</Compound>
</Scene>
</Simulation>
17 changes: 17 additions & 0 deletions Config/Scenes/SharedAutonomyDummyDefenders.con
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
call Includes/Normal

robot robot3
call Includes/FieldViewsCreate
call Includes/Ballchaser

robot robot4
rc defensive
rc passPref
rc on
call Includes/SharedAutonomy

echo gc playing
echo rc kickPref
echo rc passPref
echo rc offensive
echo rc defensive
49 changes: 49 additions & 0 deletions Config/Scenes/SharedAutonomyDummyDefenders.ros2
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<Simulation>

<Include href="Includes/NaoV6H25.rsi2"/>
<Include href="Includes/Ball2016SPL.rsi2"/>
<Include href="Includes/Field2020SPL.rsi2"/>
<Include href="Includes/Boards.rsi2"/>

<Scene name="RoboCup" controller="SimulatedNao" stepLength="0.012" color="rgb(65%, 65%, 70%)" Kp="12500" Kd="10000" contactKp="1425" contactKd="7.5">
<Light z="9m" ambientColor="rgb(50%, 50%, 50%)"/>

<Compound name="robots">
<Body ref="Nao" name="robot3">
<Translation x="1.0" z="330mm"/>
<Rotation z="180degree"/>
<Set name="NaoColor" value="red"/>
</Body>
<Body ref="Nao" name="robot4">
<Translation x="3" y="0" z="330mm"/>
<Rotation z="180degree"/>
<Set name="NaoColor" value="yellow"/>
</Body>
</Compound>

<Compound name="extras">
<Body ref="NaoDummy" name="robot8">
<Translation x="-0.3" y="0.3" z="330mm"/>
<Set name="NaoColor" value="blue"/>
</Body>
<Body ref="NaoDummy" name="robot9">
<Translation x="-3" y="-1" z="330mm"/>
<Set name="NaoColor" value="black"/>
</Body>
</Compound>

<Compound name="balls">
<Body ref="ball">
<Translation z="0.05m"/>
</Body>
</Compound>

<Compound name="boards">
<Compound ref="boards"/>
</Compound>

<Compound name="field">
<Compound ref="field"/>
</Compound>
</Scene>
</Simulation>
11 changes: 11 additions & 0 deletions Config/Scenes/SharedAutonomyRemoteRobot.con
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# connect to a robot
call Includes/connect

call Includes/SharedAutonomy
rc passPref
rc defensive
rc on

echo rc offensive
echo rc defensive
echo rc kickPref
3 changes: 3 additions & 0 deletions Config/Scenes/SharedAutonomyRemoteRobot.ros2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Simulation>
<Scene name="RoboCup" controller="SimulatedNao" stepLength="0.012"/>
</Simulation>
2 changes: 1 addition & 1 deletion Config/ballChaserDecisionProvider.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ timeToBallParams = {
ballBehindRobotHysteresis = 500;
ballChaserBonus = 500;
ballChaserTimeBonus = 1;
distancePenaltyBallBehindRobot = 800;
distancePenaltyBallBehindRobot = 600;
distancePenaltyBallBehindRobotFullDistance = 4000;
targetDistanceRobotRotFactor = 1;
penaltyBallBehindFactorOwnGroundline = 1;
Expand Down
2 changes: 1 addition & 1 deletion Config/ballchaserProvider.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
previewArrival = true;

penaltyKickNames = [kickMiddleFast];
penaltyKickNames = [kickHack,kickMiddleFast];

oppSetPlayBallDistance = 1000;
10 changes: 5 additions & 5 deletions Config/clipLineFinder.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
maxDistPointsImage = 35;
maxNoDistLinesImage = 5;
maxDistSumPointsToLineImage = 7;
maxDistSumPointsToLineImage = 5;
pixelErrorSumToImageWidthFactor = 160;
minStraightLineLengthInImageFactor = 10;
minStraightLineLengthInImageFactor = 15;
maxAngleSumLineImage = 0.08;
maxAngleSumLineField = 0.15;
minAngleSumCircleImage = 0.23;
Expand All @@ -13,9 +13,9 @@ maxAvgPointDistToCircleField = 30;
maxDistSegToCenterCircleField = 500;
maxDistSegToCenterCircleImage = 5;
maxCenterCircleRadiusDiffField = 150;
minFieldLineLength = 300;
minDefiniteFieldLineLength = 700;
minPointsForLine = 4;
minFieldLineLength = 350;
minDefiniteFieldLineLength = 800;
minPointsForLine = 5;
minPointsForCenterCircle = 8;
maxSegConnectDistField = 1000;
maxSegConnectDistImage = 30;
Expand Down
10 changes: 5 additions & 5 deletions Config/eventManager.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
eventConfig = {
playerMovedEventDistance = 1200;
playerMovedEventDistanceForBallchaser = 500;
playerMovedEventDistanceForNearBall = 500;
playerMovedNearBallDistance = 1500;
playerMovedEventDistanceWhenSlow = 200;
playerMovedEventDistance = 0;
playerMovedEventDistanceForBallchaser = 0;
playerMovedEventDistanceForNearBall = 0;
playerMovedEventDistanceWhenSlow = 0;
playerMovedNearBallDistance = 500;
playerMovedEventSlowTransSpeed = 20;
playerMovedEventSlowRotSpeed = 20deg;
playerMovedEventIntervalInitial = 5000;
Expand Down
1 change: 0 additions & 1 deletion Config/fieldColorProvider.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ maxDiffOptCb = 20;
maxDiffOptY = 45;
maxDiffCbCrRatio = 200;
minLineToFieldColorThresholdUpper = 10;
fieldColorMaxDistY = 54;
minLineToFieldColorThresholdLower = 55;
4 changes: 2 additions & 2 deletions Config/headPOIListGenerator.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
localizeAngles = [
{
x = -30deg;
x = -20deg;
y = 20deg;
},
{
x = 30deg;
x = 20deg;
y = 20deg;
}
];
Expand Down
Loading

0 comments on commit 39d4c90

Please sign in to comment.