Using Gael's "minimal" script and trying to add things.
rightPort = "COM7"
i01 = Runtime.createAndStart("i01", "InMoov")
# starting parts
i01.startEar()
i01.startMouth()
#to tweak the default voice
i01.mouth.setGoogleURI("http://thehackettfamily.org/Voice_api/api2.php?voice=Ryan&txt=")
##############
i01.startRightHand(rightPort)
#some mappings left out here
i01.startRightArm(rightPort)
# rest-position arm
i01.rightArm.shoulder.setRest(90)
i01.startHead(rightPort)
i01.head.eyeX.map(60,100,80,100)
i01.head.eyeY.map(50,100,55,95)
I get about this far then it tries to open COM7 again? (only have 1 arduino mega attached)
...
i01_head_rothead = Runtime.getService("i01.head.rothead")
i01_head_neck = Runtime.getService("i01.head.neck")
i01_left = Runtime.getService("i01.left")
connecting to serial device COM7
gnu.io.PortInUseException: COM7
Can't understand why I get a call to i01.left and why it tries to connect COM7 again?
Hi juerg, not sure .. but my
Hi juerg,
not sure .. but my first guess would be ... The "default" Inmoov (from Gael) has 2 Arduinos - 1 Mega & 1 Uno ..
And the head & left arm are connected to the Mega ... the right is connected to the Uno .. you've switched some of this...
I know harland used an uno,
I know harland used an uno, and he told you to try one.
Gael's script is perfect when having it like he has, but for now try hardland his script, and go from there.
That would be my opinion.
adjusting program
Any advice how I could change that in myrobotlab code?
I mean what is a good tool to look into that jar and maybe tweak and rebuild it for my use?
you don t need to rewrite the
you don t need to rewrite the jar, but we have to create a script to make your inmoov right and left part to share the same arduino....the script you wrote starts parts in the standard configuration...
in order to share parts we need to create parts first, change pins and then starts them....give us some time to write a script for you....ok?
Have you created an InMoov
Have you created an InMoov Head and Right Arm ?
Head and right arm
Hi GroG
I assume you mean a printed, motorized and cabled arm and head? If so, yes. I can also use Gael's minimal script to run arm sequences and I have used InMoovHead to check on all head motors and movements.
I have seen that i01.startHead() expects a port parameter that is why I thought I could switch the control to whatever port / Arduino I wanted.
Not too big an issue for me as I can add another Arduino and run head on that.
Anyway - wondered about the code and tried to look into the .jar with Java-Editor - however that gets stuck on opening the .jar. What other program could I try, eclipse?
thanks, Juerg
hm, maybe you just use the
hm, maybe you just use the source code? - it's open source ...