Jadi, seperti yang kita tahu...Nao ini bole di beri arahan melalui 8 jenis languages..banyak kan😎
So macam mana kita mahu beri command "HelloWorld" kepada Nao Humanoid Robot.
Jom kita explore lebih dalam. semua ini aku dapat dari ALDEBARAN!
C++
Install c++ SDK, CMake and a compiler
#include <alproxies/altexttospeechproxy.h> int main(int argc, char* argv[]) { AL::ALTextToSpeechProxy tts("<IP of your robot>", 9559); tts.say(phraseToSay); return 0; }
Python
Install pynaoqi in your Python installation
from naoqi import ALProxy tts = ALProxy("ALTextToSpeech", "<IP of your robot>", 9559) tts.say("Hello world")
c#
Just add a reference to naoqi-dotnet4.dll
using Aldebaran.Proxies; class Program { static void Main(string[] args) { TextToSpeechProxy tts = new TextToSpeechProxy (<IP of your robot>, 9559); tts.say("Hello World"); } }
F#
Just add a reference to naoqi-dotnet4.dll
let main () = let tts = new Aldebaran.Proxies.TextToSpeechProxy ("10.0.252.218", 9559) tts.say("Hello World from F#") main ()
Java
Install naoqi java package
public class TestTTS { static { System.loadLibrary("JNaoQi"); } public static void main(String[] args) { ALTextToSpeechProxy ttsProxy = new ALTextToSpeechProxy ("<IP of your robot>", 9559); tts.say("hello world"); } }
Matlab
Installer le package naoqi matlab
tts = ALTextToSpeechProxy('<IP of your robot>',9559); tts.insertData('Hello World');
Urbi
Executed on a specific robot with an existing NAOqi Urbi context:
tts.say("Hello World")
No comments:
Post a Comment
Dah datang tu rajin-rajin lah comment okayyy! =D