11月修改
This commit is contained in:
@@ -43,3 +43,4 @@ advanced_behavior UCAV_fire
|
||||
end_execute
|
||||
|
||||
end_advanced_behavior
|
||||
|
||||
|
||||
40
behavior/net_detect_group_behavior/move.txt
Normal file
40
behavior/net_detect_group_behavior/move.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
# File generated by Wizard 2.9.0 on Dec 1, 2025.
|
||||
advanced_behavior move
|
||||
|
||||
script_variables
|
||||
WsfControlMessage msg=WsfControlMessage();
|
||||
string str="";
|
||||
WsfTrack track=WsfTrack();
|
||||
double alat=25.076;
|
||||
double alon=121.22;
|
||||
end_script_variables
|
||||
|
||||
on_init
|
||||
|
||||
end_on_init
|
||||
|
||||
on_message
|
||||
type WSF_CONTROL_MESSAGE
|
||||
script
|
||||
WsfControlMessage msg=(WsfControlMessage)MESSAGE;
|
||||
writeln("receive",msg.AuxDataString("task"));
|
||||
str=msg.AuxDataString("task");
|
||||
end_script
|
||||
end_on_message
|
||||
|
||||
precondition
|
||||
if(str=="MOVE")
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
end_precondition
|
||||
|
||||
execute
|
||||
PLATFORM.GoToSpeed(16);#m/s
|
||||
PLATFORM.GoToLocation(alat,alon);
|
||||
str="";
|
||||
return Success();
|
||||
end_execute
|
||||
|
||||
end_advanced_behavior
|
||||
@@ -4,7 +4,7 @@ include_once behavior/behavior_fire.txt
|
||||
include_once signatures/human_signature.txt
|
||||
|
||||
platform_type MAN_AM WSF_PLATFORM
|
||||
icon human
|
||||
icon marker
|
||||
infrared_signature HUMAN_INFRARED_SIGNATURE
|
||||
optical_signature HUMAN_OPTICAL_SIGNATURE
|
||||
radar_signature HUMAN_RADAR_SIGNATURE
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
include_once signatures/human_signature.txt
|
||||
|
||||
platform_type SNIPER WSF_PLATFORM
|
||||
icon human
|
||||
icon marker
|
||||
radar_signature HUMAN_RADAR_SIGNATURE
|
||||
optical_signature HUMAN_OPTICAL_SIGNATURE
|
||||
infrared_signature HUMAN_INFRARED_SIGNATURE
|
||||
|
||||
40
platforms/red/detect_jam_car.txt
Normal file
40
platforms/red/detect_jam_car.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
# File generated by Wizard 2.9.0 on Dec 1, 2025.
|
||||
include_once sensors/radar/acq_radar.txt
|
||||
include_once signatures/vehicle_signature.txt
|
||||
include_once weapons/jammer/radar_jammer_2_18ghz.txt
|
||||
include_once weapons/jammer/comm_jammer_30m_3g.txt
|
||||
|
||||
platform_type DETECT_JAM_CAR WSF_PLATFORM
|
||||
icon comm_truck_icon
|
||||
infrared_signature VEHICLE_INFRARED_SIGNATURE
|
||||
optical_signature VEHICLE_OPTICAL_SIGNATURE
|
||||
radar_signature VEHICLE_RADAR_SIGNATURE
|
||||
|
||||
sensor ew_radar ACQ_RADAR
|
||||
on
|
||||
internal_link data_mgr
|
||||
ignore_same_side
|
||||
end_sensor
|
||||
|
||||
processor data_mgr WSF_LINKED_PROCESSOR
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
weapon radar_jammer RADAR_JAMMER_2_18GHZ
|
||||
on
|
||||
yaw 0 deg
|
||||
pitch -10 deg
|
||||
ignore_same_side
|
||||
end_weapon
|
||||
|
||||
weapon comm_jammer COMM_JAMMER_30M_3G
|
||||
on
|
||||
ignore_same_side
|
||||
end_weapon
|
||||
|
||||
end_platform_type
|
||||
@@ -1,6 +1,7 @@
|
||||
# File generated by Wizard 2.9.0 on Oct 22, 2025.
|
||||
include_once sensors/radar/acq_radar.txt
|
||||
include_once signatures/human_signature.txt
|
||||
include_once behavior/net_detect_group_behavior/move.txt
|
||||
|
||||
platform_type NET_DETECT_GROUP WSF_PLATFORM
|
||||
icon low_blow
|
||||
@@ -8,6 +9,10 @@ platform_type NET_DETECT_GROUP WSF_PLATFORM
|
||||
optical_signature HUMAN_OPTICAL_SIGNATURE
|
||||
radar_signature HUMAN_RADAR_SIGNATURE
|
||||
|
||||
mover WSF_GROUND_MOVER
|
||||
|
||||
end_mover
|
||||
|
||||
sensor ew_radar ACQ_RADAR
|
||||
on
|
||||
internal_link data_mgr
|
||||
@@ -18,9 +23,23 @@ platform_type NET_DETECT_GROUP WSF_PLATFORM
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
processor task_mgr WSF_SCRIPT_PROCESSOR
|
||||
update_interval 5 sec
|
||||
advanced_behavior_tree
|
||||
btt on
|
||||
selector
|
||||
behavior_node move
|
||||
end_selector
|
||||
end_advanced_behavior_tree
|
||||
end_processor
|
||||
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
comm cmdr_net DATALINK
|
||||
network_name <local:slave>
|
||||
internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
end_platform_type
|
||||
33
platforms/red/shortwave_jammer.txt
Normal file
33
platforms/red/shortwave_jammer.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
# File generated by Wizard 2.9.0 on Dec 1, 2025.
|
||||
include_once sensors/radar/acq_radar.txt
|
||||
include_once signatures/human_signature.txt
|
||||
include_once weapons/jammer/radar_jammer_2_18ghz.txt
|
||||
include_once weapons/jammer/comm_jammer_30m_3g.txt
|
||||
|
||||
platform_type SHORTWAVE_JAMMER WSF_PLATFORM
|
||||
icon height_finder
|
||||
infrared_signature HUMAN_INFRARED_SIGNATURE
|
||||
optical_signature HUMAN_OPTICAL_SIGNATURE
|
||||
radar_signature HUMAN_RADAR_SIGNATURE
|
||||
|
||||
sensor ew_radar ACQ_RADAR
|
||||
on
|
||||
internal_link data_mgr
|
||||
ignore_same_side
|
||||
end_sensor
|
||||
|
||||
processor data_mgr WSF_LINKED_PROCESSOR
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
weapon comm_jammer COMM_JAMMER_30M_3G
|
||||
on
|
||||
ignore_same_side
|
||||
end_weapon
|
||||
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
end_platform_type
|
||||
@@ -9,10 +9,12 @@ processor SSM_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
#show_state_transitions
|
||||
#show_task_messages
|
||||
|
||||
|
||||
script_variables
|
||||
int MAX_SAMS_PER_TARGET = 2;
|
||||
int MAX_ASSIGNMENTS_PER_SAM = 4;
|
||||
string WEAPON_NAME = "";
|
||||
string IS_MOVE = "true";
|
||||
end_script_variables
|
||||
|
||||
// determine if TRACK is assignable
|
||||
@@ -48,10 +50,12 @@ processor SSM_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
script void sendMessage()
|
||||
#writeln("MakeAssignments ");
|
||||
writeln("sendMessage");
|
||||
Array<WsfPlatform> firer = Array<WsfPlatform>();
|
||||
Array<WsfPlatform> mover = Array<WsfPlatform>();
|
||||
Array<WsfPlatform> waiter = Array<WsfPlatform>();
|
||||
Array<WsfPlatform> net_mover = Array<WsfPlatform>();
|
||||
|
||||
foreach (WsfPlatform sub in PLATFORM.Subordinates())
|
||||
{
|
||||
|
||||
@@ -70,13 +74,25 @@ processor SSM_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(sub.Type() == "NET_DETECT_GROUP")
|
||||
{
|
||||
writeln("is NET_DETECT_GROUP");
|
||||
if(IS_MOVE=="true")
|
||||
{
|
||||
IS_MOVE="false";
|
||||
writeln("*** Adding ", sub.Name(), " to net_mover");
|
||||
net_mover.PushBack(sub);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int i;
|
||||
int numAssignments = (int)MATH.Min(firer.Size(), MAX_SAMS_PER_TARGET);
|
||||
int num=(int)net_mover.Size();
|
||||
|
||||
for (int i=0; i < numAssignments; i = i + 1)
|
||||
{
|
||||
writeln("assign fire");
|
||||
@@ -86,34 +102,23 @@ processor SSM_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
PLATFORM.Comm("sub_net").SendMessage(msg,firer[i].Name(),"cmdr_net");
|
||||
AssignTask(TRACK, "FIRE", firer[i]);
|
||||
}
|
||||
|
||||
for(int i=0;i<num;i=i+1)
|
||||
{
|
||||
writeln("assign net_move");
|
||||
WsfControlMessage msg = WsfControlMessage();
|
||||
msg.SetAuxData("task","MOVE");
|
||||
PLATFORM.Comm("sub_net").SendMessage(msg,net_mover[i].Name(),"cmdr_net");
|
||||
}
|
||||
|
||||
end_script
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
evaluation_interval DETECTED 20.0 sec
|
||||
time_to_evaluate DETECTED 5.0 secs
|
||||
state DETECTED
|
||||
next_state ASSIGNED
|
||||
if (! IsAssignable()) return false;
|
||||
sendMessage();
|
||||
return true;
|
||||
end_next_state
|
||||
end_state
|
||||
|
||||
evaluation_interval ASSIGNED 20.0 sec
|
||||
time_to_evaluate ASSIGNED 1.0 secs
|
||||
state ASSIGNED
|
||||
next_state DETECTED
|
||||
if (! IsAssignable())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
update_interval 10 s
|
||||
on_update
|
||||
sendMessage();
|
||||
return false;
|
||||
end_next_state
|
||||
end_state
|
||||
end_on_update
|
||||
end_processor
|
||||
|
||||
platform_type SSM_CMDR WSF_PLATFORM
|
||||
@@ -137,11 +142,9 @@ platform_type SSM_CMDR WSF_PLATFORM
|
||||
purge_interval 60 sec
|
||||
end_processor
|
||||
|
||||
processor task_mgr COMMON_CMDR_TASK_MGR
|
||||
operating_level ENGAGE 1
|
||||
processor task_mgr SSM_CMDR_TASK_MGR
|
||||
|
||||
end_processor
|
||||
|
||||
|
||||
|
||||
end_platform_type
|
||||
@@ -12,20 +12,14 @@ platform_type TRANSPORT_COPTER WSF_PLATFORM
|
||||
mover WSF_AIR_MOVER
|
||||
end_mover
|
||||
|
||||
sensor acq_radar ACQ_RADAR
|
||||
on
|
||||
internal_link data_mgr
|
||||
ignore_same_side
|
||||
end_sensor
|
||||
|
||||
processor data_mgr WSF_LINKED_PROCESSOR
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
processor task_mgr WSF_TASK_PROCESSOR
|
||||
|
||||
end_processor
|
||||
|
||||
end_platform_type
|
||||
@@ -6,9 +6,10 @@ include_once platforms/mortar.txt
|
||||
include_once platforms/blue/m1a2t.txt
|
||||
include_once platforms/blue/m60.txt
|
||||
include_once platforms/blue/CM-32.txt
|
||||
include_once blue/defence_mid.txt
|
||||
include_once blue/defence_close.txt
|
||||
include_once blue/defence_disperse.txt
|
||||
|
||||
#include_once blue/defence_mid.txt
|
||||
#include_once blue/defence_close.txt
|
||||
#include_once blue/defence_disperse.txt
|
||||
#include_once blue/reinforce.txt
|
||||
|
||||
visual_elements
|
||||
@@ -20,7 +21,6 @@ end_visual_elements
|
||||
|
||||
|
||||
|
||||
|
||||
#platform blue_ew_radar1 ACQ_RADAR
|
||||
# side blue
|
||||
# commander SELF
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# File generated by Wizard 2.9.0 on Sep 12, 2025.
|
||||
include_once scenarios/red/permeate_detect.txt
|
||||
include_once scenarios/red/comm_and_attack.txt
|
||||
include_once scenarios/red/copters_arrive.txt
|
||||
#include_once scenarios/red/comm_and_attack.txt
|
||||
#include_once scenarios/red/copters_arrive.txt
|
||||
#include_once scenarios/red/after_occupy.txt
|
||||
|
||||
#platform red_radar_apache RADAR_APACHE
|
||||
# side red
|
||||
|
||||
25
scenarios/red/after_occupy.txt
Normal file
25
scenarios/red/after_occupy.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
# File generated by Wizard 2.9.0 on Oct 24, 2025.
|
||||
include_once platforms/red/detect_jam_car.txt
|
||||
include_once platforms/red/shortwave_jammer.txt
|
||||
|
||||
|
||||
platform detect_jam_car_1 DETECT_JAM_CAR
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 25:02:22.64n 121:23:10.95e altitude 5.0 m
|
||||
end_platform
|
||||
|
||||
platform detect_jam_car_2 DETECT_JAM_CAR
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 25:03:38.80n 121:26:16.88e altitude 5.0 m
|
||||
end_platform
|
||||
|
||||
platform detect_jam_car_3 DETECT_JAM_CAR
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 25:00:49.41n 121:25:58.05e altitude 5.0 m
|
||||
end_platform
|
||||
@@ -7,61 +7,63 @@ platform ew_copter_1 EW_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:40:12.48n 121:08:38.53e altitude 5.0 m
|
||||
position 24:40:12.48n 121:08:38.53e altitude 500 m
|
||||
end_platform
|
||||
|
||||
platform ew_copter_2 EW_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:40:07.52n 121:03:49.45e altitude 5.0 m
|
||||
position 24:40:07.52n 121:03:49.45e altitude 500 m
|
||||
end_platform
|
||||
|
||||
platform ew_copter_3 EW_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:39:58.40n 121:13:37.86e altitude 5.0 m
|
||||
position 24:39:58.40n 121:13:37.86e altitude 500 m
|
||||
end_platform
|
||||
|
||||
platform armed_copter_1 ARMED_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:38:47.57n 121:07:41.82e altitude 5.0 m
|
||||
position 24:38:47.57n 121:07:41.82e altitude 500 m
|
||||
end_platform
|
||||
|
||||
platform armed_copter_2 ARMED_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:38:33.14n 121:02:57.97e altitude 5.0 m
|
||||
position 24:38:33.14n 121:02:57.97e altitude 500 m
|
||||
end_platform
|
||||
|
||||
platform armed_copter_3 ARMED_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:38:28.81n 121:12:35.93e altitude 5.0 m
|
||||
position 24:38:28.81n 121:12:35.93e altitude 500 m
|
||||
end_platform
|
||||
|
||||
platform transport_copter_1 TRANSPORT_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:38:42.90n 121:09:19.87e altitude 5.0 m
|
||||
position 24:38:42.90n 121:09:19.87e altitude 500 m
|
||||
end_platform
|
||||
|
||||
platform transport_copter_2 EW_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:38:28.53n 121:04:36.04e altitude 5.0 m
|
||||
position 24:38:28.53n 121:04:36.04e altitude 500 m
|
||||
end_platform
|
||||
|
||||
platform transport_copter_3 EW_COPTER
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:38:19.37n 121:14:19.12e altitude 5.0 m
|
||||
position 24:38:19.37n 121:14:19.12e altitude 500 m
|
||||
#creation_time 10.0 min
|
||||
end_platform
|
||||
|
||||
|
||||
@@ -4,10 +4,11 @@ include_once platforms/red/net_attack_group.txt
|
||||
include_once platforms/red/comm_detect_group.txt
|
||||
include_once platforms/red/radar_detect_group.txt
|
||||
include_once platforms/red/detect_jam_drone.txt
|
||||
include_once platforms/red/ssm_cmdr.txt
|
||||
|
||||
platform net_detect_group_1 NET_DETECT_GROUP
|
||||
side red
|
||||
commander SELF
|
||||
commander ssm_cmdr
|
||||
heading 0 deg
|
||||
position 24:57:28.86n 121:10:35.07e altitude 5.0 m
|
||||
end_platform
|
||||
@@ -89,3 +90,9 @@ platform detact_drone_3 DETECT_JAM_DRONE
|
||||
position 24:48:53.63n 121:08:45.74e altitude 5.0 m
|
||||
end_platform
|
||||
|
||||
platform ssm_cmdr SSM_CMDR
|
||||
side red
|
||||
commander SELF
|
||||
heading 0 deg
|
||||
position 24:50:38.41n 121:09:31.65e altitude 5.0 m
|
||||
end_platform
|
||||
Reference in New Issue
Block a user