text: var dispatcher = require('../dispatcher');
  var EventEmitter = require('events').EventEmitter;
  var assign = require('object-assign');
  var socket = require('../socket');
  
  var initialPosition = require('../../../robot/config').initialPosition;
  var data = {
  	x: initialPosition.x,
  	y: initialPosition.y,
  	heading: 0
  };
  
  var all = [];
  
  var EstimatedPositionStore = assign({}, EventEmitter.prototype, {
  	data: data,
  	getAll: function() {
  		return all;
  	}
  });
  
  socket.on('estimatedPosition:update', function(newData) {
  	EstimatedPositionStore.data = newData;
  	all.push(newData);
  	EstimatedPositionStore.emit('change');
  });
  /*socket.on('pose:update', function(newData) {
  	EstimatedPositionStore.data = newData.location;
  	all.push(newData);
  	EstimatedPositionStore.emit('change');
  });*/
  
  module.exports = EstimatedPositionStore;
  