fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.6k stars 149 forks source link

build plan action support #524

Closed alok760 closed 5 years ago

alok760 commented 5 years ago

Fixes #521

Checklist

Test Passing

Short description of what this resolves:

Implement an action scheduler which schedules planned actions [wip]

alok760 commented 5 years ago

Still working on this The plan is as follow -

alok760 commented 5 years ago

@norbusan please review

norbusan commented 5 years ago

What happens if a planned action is triggered right when the speaker is in the busy state, or recognizing state?

alok760 commented 5 years ago

@norbusan The planned action interrupts the current action and gets executed. So if some other action is being executed in the busy state, it'll stop executing and the planned action will execute. This is not the ideal way for its working. but is ok for now, maybe in future, we can implement a priority queue for the busy state? what do you suggest?

norbusan commented 5 years ago

Merged, thanks