initial commit
This commit is contained in:
2
node_modules/jibo-tools/lib/robots/index-robot-via-motion-service.js
generated
vendored
Executable file
2
node_modules/jibo-tools/lib/robots/index-robot-via-motion-service.js
generated
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";var o=require("ws"),e=[{position:0,velocity:0,enabled:!0},{position:0,velocity:0,enabled:!0},{position:0,velocity:0,enabled:!0}],n={start:function(n){var t=n+":9191",i=new o("ws://"+t);i.on("open",function(){try{i.send(JSON.stringify(e)),setInterval(function(){process.exit()},1e3)}catch(o){console.log("Error sending to motion service: "+o),process.exit(1)}}),i.on("error",function(){console.log("Couldn't connect to motion service"),process.exit(1)})}};n.start(process.argv[2]);
|
||||
Reference in New Issue
Block a user