enable playing a gesture with priority, clearing the queue #25
Reference in New Issue
Block a user
Delete Branch "feat/force-gesture"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Please first complete the merge request : "feat: implemented forced speech and speech queue" https://git.science.uu.nl/ics/sp/2025/n25b/pepperplus-ri/-/merge_requests/23
Implemented queued gesture system and forced gesture functionality. Pepper's gestures are now queued up in a python queue. When a forced gesture message is received, the current gesture queue is emptied and the forced gesture is enqueued.
To test:
TestMixedGestureinCB(devbranch) with the code below. Also make sure to import and add it in themain.pyfile. (Code can be found below)CB(dev branch) andRI.RItests pass andactuation_receiver.pyis 100% covered.Mock agent code:
assigned to @8464960
Your tests are flaky, sometimes all pass, sometimes these 2 or others fail.
______________________ test_handle_messages_queue_empty _______________________
mocker = <pytest_mock.plugin.MockFixture object at 0x0000000004B14588>
E AssertionError: assert True is False
E + where True = .is_speaking
test\unit\test_actuation_receiver.py:276: AssertionError
_____________________ test_handle_gestures_runtime_error ______________________
mocker = <pytest_mock.plugin.MockFixture object at 0x000000000446A648>
E AssertionError: assert False
E + where False = .called
E + where = .set
E + where = .exit_event
test\unit\test_actuation_receiver.py:592: AssertionError
===================== 2 failed, 88 passed in 2.25 seconds =====================
left review comments
marked the checklist item Create a new mock agent
TestMixedGestureinCB(devbranch) with the code below. Also make sure to import and add it in themain.pyfile. (Code can be found below) as completedmarked the checklist item Run both the
CB(dev branch) andRI. as completedmarked the checklist item Every second, a gesture without priority and every 5 seconds a gesture with priority is added to the queue by the mock agent, observe logs in RI (or better observe at Pepper) to see if the prioritized gesture clears the queue and is then added to the queue. as completed
I cannot observe if a priorty "clears" the cue, i am not getting the info logs for them. This is either a device issue or maybe i messed up in the CB?
left review comments
requested review from @2584433
added 1 commit
eab2481b- chore: fixed flakiness of testsCompare with previous version
Pull request closed