OK Grog, lets do this! ; )

You sayeth and it is so [[InMoov2.wkinne.py]]

wkinne

10 years 8 months ago

when i fired up left arm it broke the bicep shaft with no warning or time to stop it. maybe my pot in in wrong or backwords or just limits set bad?
 

repaired shaft, reinstalled, restarted MRL, face came up fine, reset jaw limits again, restarted left arm, bicep spun and spun never stoping until timeout. I did not reinsert shaft in base so it spun in air

wkinne

10 years 8 months ago

note to self:

GroGstep 3 - (with hand on power cord) press the execute button in Python

GroGstep 2 - copy and paste script to Python tab

GroGstep 1 start fresh mrl

 

leftArm = i01.startLeftArm("COM6")

i01.startMouthControl("COM6")

 

 i01.head.jaw.setRest(40)
GroGi01.head.jaw.setMinMax(10,50)
all this you can do with just 2 services .. in fact you can detach from the jaw and re-attach to a different pin (perhaps that troublesome bicep)
wkinneso i can do that with any pin any servo?
GroGnow you can move the little slider thing to where you thing it is a good value, you can move it slowly and see where the min and max should be .. you can tell also if it needs to be inverted
GroGset the controller to be the arduino and the pin make it the (jaw) pin then press attach ... BEHOLD YOU HAVE MANUAL CONTROL OF THE JAW
GroGgo to its tab (notice its not a bajillion tabs - and you can actually find it)
GroGcreate a single servo .. call it something imaginative like "servo"
GroGnow you have control of the Arduino (no other distractions) ... life is good
GroGstart mrl & start an Arduino (just right click and call it arduino) - connect it to port COM6

#file : InMoov2.Tracking.min.py

headPort="COM6"
i01 = Runtime.createAndStart("i01", "InMoov")
i01.startMouth()
tracker = i01.startHeadTracking(headPort)
tracker.startLKTracking()

 

i01.headTracking.xpid.setPID(15.0,5.0,0.1)

i01.headTracking.ypid.setPID(20.0,5.0,0.1

 

 

i01.mouth.setGoogleURI("http://thehackettfamily.org/Voice_api/api2.php?voice=Ryan&txt=")

 

 

 

GroG

10 years 8 months ago

Ya I need to do a how to take control of any Servo video ... its a good diagnostic technique .. can save many magic blue smoke from disappearing ...

wkinne

10 years 8 months ago

right hand on right arduino (com5 for me) - left hand on left arduino(com6 for me)

"Analog In" pins 2 through 6

thumb pin 2

index pin 3

majeure pin 4

ringfinger pin 5

pinky pin 6