Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

离线联调模式不进入子树 #122

Open
ghost opened this issue Sep 18, 2020 · 3 comments
Open

离线联调模式不进入子树 #122

ghost opened this issue Sep 18, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 18, 2020

behaviac$_.log
[22:26:48][workspace] xml "D:/tmp/behaviors_erl/bt/"
[22:26:48][frame]0
[22:26:48][jump]SecondAgent#SecondAgent_0_0 SecondBT.xml
[22:26:48][tick]SecondAgent#SecondAgent_0_0 SecondBT.xml->BehaviorTree[-1]:enter [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 SecondBT.xml->Sequence[2]:enter [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 SecondBT.xml->Action[3]:enter [success] [1]
[22:26:48][property]SecondAgent#SecondAgent_0_0 p2->0
[22:26:48][frame]1
[22:26:48][frame]2
[22:26:48][tick]SecondAgent#SecondAgent_0_0 SecondBT.xml->Action[3]:exit [failure] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 SecondBT.xml->Sequence[2]:exit [failure] [1]
[22:26:48][return]SecondAgent#SecondAgent_0_0 SecondBT.xml
[22:26:48][tick]SecondAgent#SecondAgent_0_0 SecondBT.xml->BehaviorTree[-1]:exit [failure] [1]
[22:26:48][jump]SecondAgent#SecondAgent_0_0 sub_task.xml
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->BehaviorTree[-1]:enter [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Task[0]:enter [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Sequence[1]:enter [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Condition[2]:enter [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Condition[2]:exit [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Action[3]:enter [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Action[3]:exit [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Sequence[1]:exit [success] [1]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Task[0]:exit [success] [1]
[22:26:48][return]SecondAgent#SecondAgent_0_0 sub_task.xml
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->BehaviorTree[-1]:exit [success] [1]
[22:26:48][frame]3
[22:26:48][jump]SecondAgent#SecondAgent_0_0 sub_task.xml
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->BehaviorTree[-1]:enter [success] [2]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Task[0]:enter [success] [2]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Sequence[1]:enter [success] [2]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Condition[2]:enter [success] [2]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Condition[2]:exit [success] [2]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Action[3]:enter [success] [2]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Action[3]:exit [success] [2]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Sequence[1]:exit [success] [2]
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->Task[0]:exit [success] [2]
[22:26:48][return]SecondAgent#SecondAgent_0_0 sub_task.xml
[22:26:48][tick]SecondAgent#SecondAgent_0_0 sub_task.xml->BehaviorTree[-1]:exit [success] [2]

behaviac$$.log
[behaviac][00000][thread 0068]CREATED ON 2020-09-18

[behaviac][00000][thread 0068][22:26:48][INFO]Version: behaviac_vs2015_3.6.39_64_ndebug_NRELEASE
[behaviac][00001][thread 0068][22:26:48][INFO]Config::IsDesktopPlatform true
[behaviac][00002][thread 0068][22:26:48][INFO]Config::IsProfiling false
[behaviac][00003][thread 0068][22:26:48][INFO]Config::IsLogging true
[behaviac][00004][thread 0068][22:26:48][INFO]Config::IsLoggingFlush true
[behaviac][00005][thread 0068][22:26:48][INFO]Config::IsSocketing false
[behaviac][00006][thread 0068][22:26:48][INFO]Config::IsSocketBlocking false
[behaviac][00007][thread 0068][22:26:48][INFO]Config::IsHotReload false
[behaviac][00008][thread 0068][22:26:48][INFO]Config::SocketPort 60636
[behaviac][00009][thread 0068][22:26:48][INFO]'WorkspaceExportPath' is './bt/'

我的export是填非默认路径(到我的工程目录)
上面是产生的两个日志文件
SecondBT断点正常
sub_task断点没有触发

模仿tutorials/tutorial_6写的
cpp代码
void UpdateLoop()
{
LOGI("UpdateLoop\n");

int frames = 0;
behaviac::EBTStatus status = behaviac::BT_RUNNING;

while (status == behaviac::BT_RUNNING)
{
	LOGI("frame %d\n", ++frames);
            behaviac::Workspace::GetInstance()->DebugUpdate();

	status = g_SecondAgent->btexec();

	if(frames == 3)g_SecondAgent->FireEvent("t1", 2);
}

}

@wangkaigit
Copy link

你好,方便加个微信吗,我最近也在用这个工具,大家一起讨论下,15620331232

@ghost
Copy link
Author

ghost commented Sep 19, 2020

你好,方便加个微信吗,我最近也在用这个工具,大家一起讨论下,15620331232

你好
我目前只是接入到自己的项目, 让它能够跑起来, 并且短时间内并不会使用它
我看了你issue我觉得我们学习的深度完全不一样, 起码我没看过源码
所以, 很抱歉我们应该讨论不出什么东西●| ̄|_

@wangkaigit
Copy link

哈哈,好吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant