behaviac icon indicating copy to clipboard operation
behaviac copied to clipboard

关于状态机子树的问题

Open danielstock opened this issue 5 years ago • 0 comments

您好,看了node_test/fsm/fsm_ref_bt_ut的例子,对应c++代码fsmunittest.cpp 当testVar_0为2时,调用btexec, 前置使得testVar_0变为3,那此时是先执行子树action_ut_1_2呢, 还是根据条件跳转到Exit节点。

status = testBtAgent->btexec(); CHECK_EQUAL(behaviac::BT_RUNNING, status); CHECK_EQUAL(4, testBtAgent->testVar_0);

另外这里为啥返回状态是status为running

盼复,谢谢。

danielstock avatar Jul 20 '18 07:07 danielstock