11月修改
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user