-
Notifications
You must be signed in to change notification settings - Fork 79
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
WaveStatus中的SWING_ALL有什么用?同时在State_Trotting.cpp文件中的exit()函数中,为什么要设置_ctrlComp->setAllSwing()? #79
Comments
你好,_ctrlComp->setAllSwing() 这条语句是有作用的,但可能不是很直观,说起来可能有点长。在 FSM::run() 函数中,在_currentState->run();函数前会首先运行两条语句 _ctrlComp->runWaveGen(); |
您好,感谢您的回答,但我还是有一些不理解。 |
听你这么一说确实是的,但我认为这里之所以加上是因为,万一在 别的状态机里没有或者忘了设置,在 State_Trotting 里事先设置好,有一份保险。但从理性上看,确实是没有机会执行。 |
那您这里可以直接去掉也行,应该问题不大 |
我不太明白,在现有的代码及实现的功能中,SWING_ALL这个WaveStatus有什么用,这个应该是代表所有的足端都悬空吧,也许如果之后实现后空翻可能会用到这种状态?现有的代码这个有什么用。
在State_Trotting.cpp文件中的exit()函数的最后一行,代码设置了:_ctrlComp->setAllSwing(),请问这里是为什么?经过我测试,有这一行代码和没有这一行代码其实效果完全一样,而且我认为这一行代码其实是没啥用的。
The text was updated successfully, but these errors were encountered: