sg-schemas
v2.2.2
Published
Scheams for SUGOS
Downloads
26
Readme
sg-schemas
Scheams for SUGOS
Installation
$ npm install sg-schemas --save
Schemas
- module_spec.json - Spec of SUGOS-Actor module
- perform_config.json - Configuration of SUGOS action performing
Examples
Example Module Spec
{
"name": "example-my-drone-module",
"version": "1.0.0",
"desc": "Example of module for SUGO-Actor",
"methods": {
"takeOff": {
"desc": "Take off from the land.",
"params": [
{
"name": "attitude",
"type": "string",
"desc": "Attitude to stop"
}
]
},
"goHome": {
"desc": "Go to home position and land on.",
"params": [],
"return": {
"type": "boolean",
"desc": "Succeed or not"
}
}
}
}
Example Perform Config
{
"interface": "bash",
"method": "spawn",
"params": [
"ls",
[
"-la"
],
{
"env": {
"HOME": "/home/hoge"
}
}
]
}
License
This software is released under the Apache-2.0 License.