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

Turn this app into a generic task launcher #14

Open
PeterBowman opened this issue Dec 16, 2023 · 0 comments
Open

Turn this app into a generic task launcher #14

PeterBowman opened this issue Dec 16, 2023 · 0 comments

Comments

@PeterBowman
Copy link
Member

As a follow-up idea to #13, perhaps we could also turn these lines into a sequence of commands to be stored and parsed from text file (.ini):

speak("presentation_01");
motion.doGreet();
awaitMotionCompletion();
motion.doHoming();
awaitSpeechAndMotionCompletion();
yarp::os::SystemClock::delaySystem(0.5);
speak("presentation_02");
motion.doExplanation2();
awaitSpeechAndMotionCompletion();
yarp::os::SystemClock::delaySystem(1.0);
speak("composition_01");
motion.doExplanation1();
awaitSpeechCompletion();
yarp::os::SystemClock::delaySystem(2.0);
speak("composition_02");
awaitMotionCompletion();
yarp::os::SystemClock::delaySystem(1.0);
motion.doExplanation3();
awaitSpeechAndMotionCompletion();
speak("composition_03");
motion.doExplanationHead();
awaitSpeechAndMotionCompletion();
speak("composition_04");
motion.doExplanationRightPC();
awaitSpeechCompletion();
speak("composition_05_01");
awaitSpeechAndMotionCompletion();
speak("composition_05_02");
motion.doExplanationLeftPC();
awaitSpeechAndMotionCompletion();
speak("composition_05_03");
motion.doExplanationInsidePC();
awaitSpeechAndMotionCompletion();
speak("composition_06");
motion.doExplanationHDD();
awaitSpeechAndMotionCompletion();
speak("composition_07");
motion.doExplanation2();
awaitSpeechAndMotionCompletion();
speak("composition_08");
motion.doExplanationSensors();
awaitSpeechAndMotionCompletion();
yarp::os::SystemClock::delaySystem(1.0);
speak("purpose_01");
motion.doExplanation1();
awaitSpeechAndMotionCompletion();
yarp::os::SystemClock::delaySystem(1.0);
speak("purpose_02");
motion.doExplanation4();
awaitSpeechAndMotionCompletion();
yarp::os::SystemClock::delaySystem(2.0);
speak("ending_01");
motion.doHoming();
awaitSpeechAndMotionCompletion();

Such commands would currently span to: perform motion, synthesize voice, await execution and speech, sleep a specified amount of time... This has the potential to become generic enough for any other demos, too, as long as the initial configuration also enables the required flexibility (in that vein, perhaps yarprobotinterface would be of help, see roboticslab-uc3m/yarp-devices#271).

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