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

APT.all-test.Book-robot.clean-house.init-robot.soar Maven / Gradle / Ivy

sp {clean-house*propose*init-robot
   (state  ^name robot
             -^directions)
-->
   ( ^operator  +)
   ( ^name init-robot)
}

sp {robot*apply*init-robot*directions
   (state  ^name robot
              ^operator.name init-robot)
-->
   ( ^problem-space 
        ^desired 
        ^directions    
        ^numbers.number.value 0
        ^wall-obstacle )
   ( ^storage-area-id 12)
   (  ^value north ^opposite south ^move-in-rectangle y ^heading 4.71
         ^move-in-rectangle-delta pos ^move-in-rectangle-num 10)
   ( ^value south ^opposite north ^move-in-rectangle y ^heading 1.57
         ^move-in-rectangle-delta neg ^move-in-rectangle-num -10)
   (  ^value east  ^opposite west  ^move-in-rectangle x ^heading 0.0
         ^move-in-rectangle-delta neg ^move-in-rectangle-num -10)
   (  ^value west  ^opposite east  ^move-in-rectangle x  ^heading 3.14
         ^move-in-rectangle-delta pos ^move-in-rectangle-num 10)
   ( ^name clean-house
         ^default-state-copy yes
         ^one-level-attributes areas current-area destination-area type
         ^one-level-attributes visited-area)
   ( ^info    )
   ( ^direction east west
          ^one-less-than row
          ^against-wall north)
   ( ^direction east west
          ^one-greater-than row
          ^against-wall south)
   ( ^direction north south
          ^one-greater-than col
          ^against-wall east)
   ( ^direction north south
          ^one-less-than col
          ^against-wall west)
}

sp {robot*apply*init-robot*areas
   (state  ^name robot
              ^io.input-link.self.area 
              ^operator.name init-robot)
-->
   ( ^areas.area.id 
        ^blocks )}