simspark

Node interface to SimSpark, the simulator used for the RoboCup 3D Soccer Simulation League

node-simspark

simple SimSpark stream client

$ npm install simspark

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"
  • initial version
  • basic streaming API