Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CMIS-IADS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reeves, David E
CMIS-IADS
Commits
55dc4769
Commit
55dc4769
authored
3 years ago
by
Reeves, David E
Browse files
Options
Downloads
Patches
Plain Diff
* beginning changes to make parameterizing batallions easier
parent
c8862041
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/HTN/Trees/Red/RedForceCoordinator.xml
+13
-84
13 additions, 84 deletions
scripts/HTN/Trees/Red/RedForceCoordinator.xml
with
13 additions
and
84 deletions
scripts/HTN/Trees/Red/RedForceCoordinator.xml
+
13
−
84
View file @
55dc4769
...
@@ -244,6 +244,8 @@ printMessage("Dismounts: "+str(len(borg.redDismounts)), True)
...
@@ -244,6 +244,8 @@ printMessage("Dismounts: "+str(len(borg.redDismounts)), True)
<Parent>
addReplanTriggers
</Parent>
<Parent>
addReplanTriggers
</Parent>
<Code
IsFile=
"false"
>
import mtry.cxxi.model.HierarchicalTaskNetwork.PythonUtilities.PythonTransport as PythonTransport
<Code
IsFile=
"false"
>
import mtry.cxxi.model.HierarchicalTaskNetwork.PythonUtilities.PythonTransport as PythonTransport
import java.util.ArrayList as ArrayList
import java.util.ArrayList as ArrayList
from HTNBehaviors import SendEntityEventDelay
from HTNBehaviors import ConvertToJavaList
#borg.redEntities = []
#borg.redEntities = []
#borg.redVehicles = []
#borg.redVehicles = []
...
@@ -271,90 +273,17 @@ while len(dismounts)>0:
...
@@ -271,90 +273,17 @@ while len(dismounts)>0:
_gt_activeNode.putVar("convoyIndex", 0)
_gt_activeNode.putVar("convoyIndex", 0)
# activate one
unitInfo = [borg.params_activateConvoyOne, "circle", "FIRE_CONTROL_RADAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR"]
al = ArrayList()
al = ConvertToJavaList(unitInfo)
al.add(borg.params_activateConvoyOne)
SendEntityEventDelay(info.getMyAssignedName(), "GoalTracker_CreateConvoy", al, 0.001)
al.add("circle")
al.add("FIRE_CONTROL_RADAR")
unitInfo = [borg.params_activateConvoyTwo, "bigellipse", "FIRE_CONTROL_RADAR", "FIRE_CONTROL_RADAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR","TELAR"]
al.add("TELAR")
al = ConvertToJavaList(unitInfo)
al.add("TELAR")
SendEntityEventDelay(info.getMyAssignedName(), "GoalTracker_CreateConvoy", al, 0.002)
al.add("TELAR")
al.add("TELAR")
unitInfo = [borg.params_activateConvoyThree, "bigbox", "FIRE_CONTROL_RADAR", "TARGET_ACQ_RADAR","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","SPT_VEH","TELAR","TELAR","TELAR"]
al.add("TELAR")
al = ConvertToJavaList(unitInfo)
al.add("TELAR")
SendEntityEventDelay(info.getMyAssignedName(), "GoalTracker_CreateConvoy", al, 0.003)
al.add("TELAR")
UtilityFuncsExp.scheduleEvent(
dm,
info.getMyAssignedName(),
"GoalTracker_CreateConvoy",
0.001,
al)
# activate two
al = ArrayList()
al.add(borg.params_activateConvoyTwo)
al.add("bigellipse")
al.add("FIRE_CONTROL_RADAR")
al.add("FIRE_CONTROL_RADAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
UtilityFuncsExp.scheduleEvent(
dm,
info.getMyAssignedName(),
"GoalTracker_CreateConvoy",
0.002,
al)
# activate three
al = ArrayList()
al.add(borg.params_activateConvoyThree)
al.add("bigbox")
al.add("FIRE_CONTROL_RADAR")
al.add("TARGET_ACQ_RADAR")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("SPT_VEH")
al.add("TELAR")
al.add("TELAR")
al.add("TELAR")
UtilityFuncsExp.scheduleEvent(
dm,
info.getMyAssignedName(),
"GoalTracker_CreateConvoy",
0.003,
al)
</Code>
</Code>
<Import
/>
<Import
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment