After spending some time with the new inmoov 2.0, i got the hands working with voice control, but i'm having trouble getting the arms working
here's the line that it keeps getting stuck on:
leftArm = inMoov.startleftArm(leftArmPort)
here are the errors:
gnu.io.PortInUseException: COM4
org.myrobotlab.serial.SerialDeviceException: port in use COM4
java.lang.NullPointerException
File "<string>", line 20, in <module> (line 20 is the line that i posted above)
java.util.IllegalFormatConversionException: java.util.IllegalFormatConversionException: a != java.lang.String
thank you!
(and also how do i get the jaw servo connected)
Hi JC, thanks for working on
Hi JC,
thanks for working on it.
Step 1 - always get the latest
I see 2 issues
One was a capitilization error startleftArm is now startLeftArm
and there was a formatting error in logging...
both were fixed in the latest build..
head = inMoov.startHead("COM8")
will fire up the head, 2 tracking services, 2 pids, and opencv, and the mouth control ... or at least should.. :)
In the javadoc it
In the javadoc it says startleftArm instead of startLeftArm
is the latter the correct one?
Short answer .. Yes. I
Short answer .. Yes.
I appreciate you trying to use the javadocs... that's great.. but the javadocs can get out of sync with the code (working on rectifying this)....
I might suggest to you something which I use.. Try the WebGUI REST API...
step 1 - (use the latest mrl)
step 2 - in Python - add this to your InMoov script
webgui = Runtime.createAndStart("webgui", "WebGUI")
point a browser to http://localhost:7777 - click REST API - you'll see all active services - if you click on any - they will expand and show you all the methods.
The difference between this and javadoc is this is NEVER out of sync, because it reflectively inspects the code that is running... so there is no possible way to be out of sync.
How did it go?
How did it go?
i got the arm services
i got the arm services working fine just a couple of problems.
setting the limits for the servos doesnt seem to be doing anything because after i set the arm limits, the program keeps on trying to go above or below it and everytime i try to manually move it in the safe range it says 'out of range'
same thing happens with the jaw.
the jaw servo is attached (i think) and the limits are set but it keeps on trying to go out of its range
here is my code:
i am also using two different
i am also using two different types of potentiometers on the biceps
is that okay?
Should be fine, Everyones
Should be fine,
Everyones Servos are slightly different. Ale always has a tendency to find inverted ones.
My intention is to soon create a map function on the servos, so scripts and gestures can be the same,
but the actual values sent to the servo will differ. Arduino sketch libraries have this function.
servo1.map(0, 180, 10, 150)
would be an example of where the input range (0, 180) is too large for the servo to handle correctly, either because of physical or eletrical (potentiometer) differences, and is remapped to a safe/working range of 10 - 150.
also, nothing is coming out
also, nothing is coming out of the speakers when it tries to talk back.
is there any way to solve the 'out of range' problem with the jaw servo?
hmmm.. Speech is working fine
hmmm.. Speech is working fine for me, but I have not posted a new build for a while.. The our of range problem with the Jaw servo I'm looking at now..
is the no sound coming out
is the no sound coming out problem related to the jaw out of range problem?
because the ear recognition and commands work fine, but nothing is coming is making a sound
MouthControl is totally
MouthControl is totally seperate - it should have no influence on the sound generation..
The last no-worky I have from you is 18-Feb-2014 ... and it was about the port in use problem, and a format error ... (don't think that's related either)
can you send me another no worky after you try to get InMoov 2.0 to say something...
I have a pretty large update coming up - would like to see if your problem has already been addressed in it...
log sent
alrighty just sent the no worky
i still says the jaw is moving out of range and it gets the audio files and eveything but it just doesnt run them through the speakers or anything i checked all my sound and stuff.
The mouth control I fixed but
The mouth control I fixed but you have to wait for the next build...
I checked your no-worky - and see that it's at least "trying" to do the right thing.
This means the file (mrl install directory)\audioFile\google\en_gb\audrey\did you say. close hand.mp3 was found - I notice it has en_gb so this looks like a customized google url.
Manually go to the file and just try to play it - does it work then - just double clicking ? Are the 0 bytes ?
yeah i think that may be the
yeah i think that may be the problem...
i can access all of the mp3 files but i cant play them for some reason.
windows media player "encounters a problem" when trying to play those files.
and theyre all around 960~ bytes so im not sure what the problem is
The files are cached in
The files are cached in the audioFile if they are bad files they will be played in silence again and again. I'd recommend moving or deleting that directory and trying again (without modifying google's url)