simspark
v0.0.6-1
Published
Node interface to SimSpark, the simulator used for the RoboCup 3D Soccer Simulation League
Downloads
7
Readme
node-simspark
simple SimSpark stream client
Installation
$ npm install simspark
Usage
basic send/receive usage:
SimSpark = require 'simspark'
sim = new SimSpark "localhost"
sim.on 'connect', ->
sim.send [
["scene", "rsg/agent/nao/nao.rsg"]
["init", ["unum", 1], ["teamname", "BIG"]]
]
sim.on 'data', (msg) ->
t_delta = msg[0][1][1]
console.log "server time: " + t_delta
sim.on 'end', -> console.log "disconnected"
Changelog
0.0.0
- initial version
- basic streaming API