Home > marl > world > robotsgw > robotsgw_reset.m

robotsgw_reset

PURPOSE ^

Resets the robotsgw to its initial state and reports this state

SYNOPSIS ^

function [gw, stateviews] = robotsgw_reset(gw, restype)

DESCRIPTION ^

Resets the robotsgw to its initial state and reports this state
  [GW, STATEVIEWS] = robotsgw_RESET(GW, [RESTYPE])
  Resets the robotsgw to its initial state, after a trial has ended.
  Returns the state of the world as viewed by all the agents within.
  All agents will see the true state of the robotsgw.

  Parameters:
   GW          - the robotsgw
   RESTYPE     - (optional) the reset type, 0 soft, 1 hard. Default 0.
  Returns:
   GW          - the reset robotsgw
   STATEVIEWS  - the state views, one agent view per column


  See also robotsgw, robotsgw_advance

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 04-Aug-2010 16:55:08 by m2html © 2005