rocon_protocols_web_fetch

eskim
js
rocon_protocols_web_fetch JS library on npm Download rocon_protocols_web_fetch JS library

fetch lib for rocon_protocols_web

Version 0.0.4 License BSD
rocon_protocols_web_fetch has no homepage
rocon_protocols_web_fetch JS library on GitHub
rocon_protocols_web_fetch JS library on npm
Download rocon_protocols_web_fetch JS library

Rocon Protocols Web Fetch

Install

> npm install rocon_protocols_web_fetch

Requirements

아래의 두 명령이 실행가능하게 ROS 환경이 설정되어 있어야 합니다. ROS환경 설정을 위해서는 http://wiki.ros.org/ROS/Installation 참고하시면 됩니다.

  • rosmsg list
  • rosrun rocon_protocols_web_scripts convert_msg_spec_to_json.py [type]

Run

Require

var Fetch = require('rocon_protocols_web_fetch'),
  Message = Fetch.Message,
  HicApp = Fetch.HicApp,
  RoconApp = Fetch.RoconApp;

Fetch

Fetch message
  Message(function(e, message_types){
    // message_types : array of ros msg types

  });
Fetch HicApp
HicApp(list_url, function(e, hic_apps){
  // hic_apps : list of hic_apps
});
  • list_url : the url for hic apps list yaml
Fetch RoconApp
RoconApp(list_url, function(e, rocon_apps){
  // rocon_apps : list of rocon_apps
});
  • list_url : the url for rocon apps list yaml