In this example, when calling rockOn(), the servos move to the stated positions and then, inmoov says "Rock on".
How do I have inmoov say "rock on" while the servos are moving to position? IS there a way to execute Parallel?
def rockOn():
leftThumb.moveTo(180)
leftIndex.moveTo(0)
leftMiddle.moveTo(180)
leftRing.moveTo(180)
leftPinky.moveTo(0)
talk ("rock on")
Hello tdp378 and
Hello tdp378 and Welcome,
talk("rock on") must be part of your script - and within this method which is not shown, I'm guessing their is something like..
what you could possibly do is :
sleep(0.5) # a delay 'might' be necessary depending on the latency of the audio playing a cached file
The thing I am trying to
The thing I am trying to figure out is having the voice speak while movements are taking place. Currently, it says rock on before the servo moves. I want it to say rock on during the servo moves. If that makes sense. It executes in steps I guess.
Step 1. Say rock on
Step 2. Move servos
I am trying to get it to combine step 1 and 2 to execute simultaneously. This is not a good example because the speaking text is very short. What if I wanted inmoov to speak a paragraph. Basically I would not be able to have him move while he is talking correct?
Incorrect , my sample should
Incorrect ,
my sample should be valid.
MyRobotLab - is massively multi-threaded.
It's just usually people want to block the execution thread until speaking is done.
InMoov primarily uses speakBlocking("some text - like Let's Rock") - this stops execution until the speech is finished.
But the Speech synthesis regular 'speak' command will not block - meaning you can do anything else you want with that same thread - like move servos, motors etc .. 'simultaneously'
I see the error of my ways!
I see the error of my ways! Thank you!
The mouth control service does not seem to work recently that's why I just put the talk method in my script. Now I see that that method has to complete before the movement is made. Is there any reason why the mouth control service would be erring out?
We Can Help !!! Send a No
We Can Help !!!
Send a No Worky !!
Sent no worky
I started the keyboard service and assigned keys to a couple of methods. The methods work and the speeh says the words but the mouth does not move
below is my entire script
Hi Tdp, I looked at your sent
Hi Tdp,
I looked at your sent noWorky - I don't see your Arduinos responding - check for zombies
- http://myrobotlab.org/content/helpful-myrobotlab-tips-and-tricks-0#zombie
If no zombies, then did you go through a more simple tutorial yet - of how you need to load MRLComm.ino through the Arduino IDE ?
https://www.youtube.com/watch?v=AJasOtkCbro
Ok, I think i have the
Ok, I think i have the communication problem fixed. I send another no worky However, the jaw still will not move while speaking. Everything else appears to be working properly. The hand moves correctly and the voice speaks the correct phrase. I can move all sliders and the servos respond in tune.
I am at a loss. Am I missing something in my code for the mouth control service? If I put the below method in my script and invoke talk("yada yada yada") the mouth moves correctly but not with the mouthControl service.