9.3 NaoBehavior
naobehavior.cc
contains the definition of the Think function which is called by void Run()
within the main.cc
file. The Think function performs the following tasks:
Think()
parser->parse() -> Converts message from server into useful information
bodyModel->refresh() -> Gets updated information on current bots state
Does a whole chunk of initialising
act()
checkingFall() -> checks falling
“currentSkill = selectSkill()” selects an appropriate skill to perform
Some useful objects that are instantiated within naobehavior.cc
include :
- parser
- bodyModel
- worldModel
- memory