All Downloads are FREE. Search and download functionalities are using the official Maven repository.

APT.all-test.MOUTBot.execute-mission.defend.stand.soar Maven / Gradle / Ivy

echo "Loading defend/stand"

# Conditions under which it makes sense to stand when defend

# REW: 2003-06-09
# For now, just stand whenever defensive position is achieved
# and desired body position is stand

sp {defend*propose*stand
   (state  ^name defend
              ^objective.defensive-position 
              ^desired-body-position stand
              ^top-state )
   ( ^position-achieved true
         ^orientation-achieved true)
   ( 
         ^self.body-position <> stand
        -^self.changing-body-position)
   -->
   (write (crlf) |stand on defend|)
   ( ^operator  + = )
   ( ^name stand
        ^actions.stand true)
}