#10549
lecagnois
Participant

Oui c’est la dernière mouture de Anthony .
Pour le fichier AIML
il faut le mettre dans le répertoire :
../InMoov/chatbot/bots/fr/aiml
la se trouve tous les fichiers du bots
tu peux modifier un aiml existant , mais je te conseil d’en créer un.

(attention depuis la dernière version des fichiers csv , dans le répertoire … aimlif sont générés automatiquement et peuvent modifier ton fichier aiml) .
par précaution avant de lancer Inmoov vide le dossier aimlif
(Une moulinette va générer le fichier csv de ton nouveau fichier aiml)

Après ton programme python
il faut le mettre dans
../InMoov/custom/tonfichier.py

Il te faudra modifier le fichier InMoov_custom.py
# — coding: utf-8 —
# #############################################################################
# YOUR INMOOV CUSTOM
# Here you can add your own commands to play and test with inmoov
# If you udpate the whole script, don’t worry, those commands are safe
# ##############################################################################

#sample
# play a neopixel animation while the robot speaking
#PlayNeopixelAnimation(“Flash Random”, 255, 255, 255, 1)
# talk something
#talkBlocking(“she’s a replicant, isn’t she?”)
# stop neopixel
#StopNeopixelAnimation()
execfile(RuningFolder+’custom/tonfichier.py’)
# arret des servos
i01.detach()

Voila j’espère que cela va t’aider !….

  • This reply was modified 6 years ago by lecagnois.