Jadi, seperti yang kita tahu...Nao ini bole di beri arahan melalui 8 jenis languages..banyak kan =)
Apa yang Addin mau tunjukkan di sini adalah bagaimana kita mahu beri command "HelloWorld" kepada Nao Humanoid Robot.
Jadi, jom kita lihat dan explore lebih dalam. semua ini addin dapat info 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