new guy

any help for a newbie

i can get the servo control to work but hit a brick wall when i try to attach to Python....says it doesnt recognize attacharduino...thanks in advance

GroG's picture

Hello bwjustice1 and

Hello bwjustice1 and Welcome.

Please send a NoWorky ! ... noWorky you ask what is that ?

You can read about a noWorky here ...

And this is how to do a noWorky in pictoral form !

GroG's picture

You did it !   You sent a

You did it !   You sent a NoWorky....

There are good things and bad things.

Good Things

You're using version 1.0.99 ... Yay .. this is good

Bad Things

  1. Python error :(
    
    AttributeError: 'org.myrobotlab.service.InMoov' object has no attribute 'attachArduino'

    Here is your script


#file : home/bwjustice1/InMoov.1.py edit raw
inMoov = Runtime.createAndStart("inMoov", "InMoov")
rightSerialPort = "COM8"
cameraIndex = 1
 
# attach an arduino to InMoov
# possible board types include uno atmega168 atmega328p atmega2560 atmega1280 atmega32u4
# the MRLComm.ino sketch must be loaded into the Arduino for MyRobotLab control !
# set COM number according to the com of your Arduino board
inMoov.attachArduino("right","uno", rightSerialPort)
 

# attach the right hand
inMoov.attachHand("right")

# system check
inMoov.systemCheck()

# listen for these key words
# to get voice to work - you must be attached to the internet for
# at least the first time
ear = inMoov.getEar()
ear.addCommand("rest", inMoov.getName(), "rest")
ear.addCommand("open hand", inMoov.getName(), "handOpen", "right")
ear.addCommand("close hand", inMoov.getName(), "handClose", "right")
ear.addCommand("capture gesture", inMoov.getName(), "captureGesture")
ear.addCommand("manual", ear.getName(), "lockOutAllGrammarExcept", "voice control")
ear.addCommand("voice control", ear.getName(), "clearLock")
ear.addComfirmations("yes","correct","yeah","ya") 
ear.addNegations("no","wrong","nope","nah")
 
ear.startListening()

Where did you get it?  attachArduino is not a method

if you want to start the right hand do this..
i01.startRightHand("COM?")

You can get a list of all the methods available in a service by going to the gui tab and pressing the in circle

Additionally there should be javadocs on every service page... 
In this case you'd be looking for http://myrobotlab.org/service/InMoov
T
op left hand corner a link says javadoc ...
InMoov's Javadoc goes here - https://rawgit.com/MyRobotLab/myrobotlab/master/javadoc/org/myrobotlab/service/InMoov.html 

Typically the service page gives you relevant information about the service and sometimes working Python scripts.

I also noticed one of your Arduinos is operating with an old version of MRLComm.ino 

You have another Arduino called ardyuno ?

 

bwjustice1's picture

thanks

still getting "InMoov obect has no attibute attacharduino"

any ideas?????

thanks brian

bwjustice1's picture

wow

ok--making progress

ive got her to talk---still trying to get her to listen

the attacharduino script i got off google--its the same script Gael is using in his finger starter tutorial

and ihae just one arduino connected---the ardyuno was just a goof up

made the most progress by loading InMoov2.ful.py

any advice on the listening part would b apprciated---trying to do it myself but sometimes i get suck!lol

GroG's picture

Here is Gael's script library

Here is Gael's script library .. maybe use this?

http://myrobotlab.org/users/hairygael 

hairygael's picture

Mmmh strange script

Mmmh strange script indeed.

It really doesn't look like one of my scripts though.

Can you give me the link on the finger tutorial where you found it, I certainly need to know where that is coming from.

I just checked on the finger starter tutorial and on thingiverse and I haven't seen such scripts.

It looks more like a script of Markus.

Light me up.

Here is the minimal script on my site:

https://github.com/MyRobotLab/pyrobotlab/blob/9eb96ed1d094b23f5bfbce843251f81d225b3e8b/toSort/InMoov2.minimal.py

And this is the InMoov2.full3 script:

https://github.com/MyRobotLab/pyrobotlab/blob/master/home/hairygael/InMoov2.full3.byGael.Langevin.1.py

Gael

bwjustice1's picture

thanks guys its working

thanks guys

its working now---its very chatty and dosent listen well--will this improve or is thir some typeof fine tuning still to do? every one in a while it dos what i say!lol

the script i was using is inmoov.min.py google code---it comes up as MRL and looks like the one that Gael is using in the finger box tutorial---the link on the tutorial doesnt work but if you look at the one in the vid---thats it

thanks again guys

OH YEA! is there a place to donate--- believe yu guys deserve it!

 

GroG's picture

Longer utterances usually are

Longer utterances usually are more accurate than smaller ones.  Ambient noise will cause problems, the quaility of your microphone will make a difference.  If you can mute when your not talking it helps.

Donate button here (myrobotlab.org) is on the left .. scroll down.  Donate button @ InMoov.fr is on the right.

Glad you got it working ! ;)