Giter VIP home page Giter VIP logo

malaybaku--qimessagingdotnet's Introduction

QiMessagingDotNet

Copyright 獏(ばく) 2015

1. About/概要

This library is personal translation of qimessaging library by Aldebaran Robotics for .NET Framework.

このライブラリはアルデバラン社がロボットの通信用に整備している"qimessaging"ライブラリを.NET Framework向けに書き直したものです。個人的に製作したものであり、アルデバラン社が公開するもともとのライブラリ(libqi)とは直接関係ありません。

2. Example/使用例

"Hello World" project indicates how to use the library.

"Hello World"プロジェクトが使用方法の例になっています。

using System.Threading.Tasks;
using Baku.QiMessaging;

class Program
{
    static void Main(string[] args)
    {
        string host = "http://pepper1.local";
        Task.Run(async () =>
        {
            using (var session = new QiSession(host))
            {
                var tts = await session.LoadService("ALTextToSpeech");
                await tts.Invoke("setLanguage", "English");
                await tts.Invoke("say", "Hello.");
            }
        }).Wait();
    }
}

A basic workflow is as follows.

  1. set host name by Robot's IP address with prefix "http://", and create QiSession
  2. call "LoadService" function from QiSession instance, and get QiServiceModule
  3. call "Invoke" function from QiServiceModule

基本的な使用手順は以下の通りです。

  1. ロボットのIPアドレスに"http://"をつけたホスト名を指定してセッションを開始
  2. セッションのインスタンスでLoadService関数を呼び、非同期形式でサービス(QiServiceModule)を取得
  3. サービス上で"Invoke"関数を用いてメソッド名と関数引数を指定することで実際の処理を行う。

3. LICENSE/ライセンス

Source code is opened with MIT License as written in "LICENSE.txt". Also see "Third party libraries."

ソースコードはMITライセンス("LICENSE.txt")で公開しています。下の「使用している第三者ライブラリ」も合わせて確認してください。

注: プログラム全体を作動させる場合、私自身が課すMITライセンスに加え、下記の「仕様している第三者ライブラリ」にあるようにMITライセンスとApache 2.0ライセンスの順守が必須となります。

4. Third Party Libraries/使用している第三者ライブラリ

4-1. SocketIoClientDotNet

4-2. EngineIoClientDotNet

4-3. WebSocket4Net

4-4. Newtonsoft.Json

5. Reference/参考

Aldebaran Robotics opens QiMessaging source code in GitHub.

Aldebaran社はQiMessagingライブラリのソースコードをGitHubに公開しています。

本プログラムはjavascript向けのQiMessaging実装である"libqi-js"に近い挙動を行うことを目的としています。

Contact/連絡

malaybaku--qimessagingdotnet's People

Contributors

malaybaku avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.