
APT.all-test.HauntBot.behavior.investigate.soar Maven / Gradle / Ivy
echo "\nLoading behavior/investigate"
#
# This behavior is used when the agent notices something strange and should
# move closer to examine the object and surrounding area. The agent will move near the object
# and then proceed to look at the object and then all around.
#
# debug rule for demo only
sp {debug*elaborate*should-investigate-box
(state ^name haunt
^impossible true #this production is disabled for the demo
^object-list.decoration )
( ^name |SmallSteelBox0|)
-->
( ^should-investigate )
( ^direction left
^direction right
^direction behind)
# ^direction up) #looking 'up' doesn't seem to work (unrealside)
}
sp {behavior*propose*investigate*object
(state ^name haunt
^impossible true # this behavior is disabled for the demo
^object-list.<< decoration item >> )
( ^should-investigate
^area-id
^position )
-->
( ^operator +)
( ^name investigate-object
^type move-and-x
^area
^position
^next-action )
( ^name look-around
^type look-around
^target )
}
# FUTURE RULE (incomplete)
#
#
#sp {behavior*propose*investigate*sound
# (state ^name haunt
# ^io.input-link.sounds.sound )
#-->
# ( ^operator +)
# ( ^name investigate-object
# ^target )
#}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy