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

APT.all-test.clean-house-new.common.go-to.turn-to-waypoint.soar Maven / Gradle / Ivy

## Rotate toward waypoint if not aligned

sp {go-to*propose*turn-to-waypoint
   (state  ^name go-to
             -^cross-doorway yes
             -^obstacle true
              ^waypoint-data.yaw 
              ^yaw-aligned false)
-->
   ( ^operator  +)
   ( ^name turn-to-waypoint
         ^actions.set-heading.yaw )
  (write (crlf) |Rotating to waypoint at heading | )
  # (exec player-print |Rotating to | )
}