Class: RobotsManager

RobotsManager

new RobotsManager(values, simulator)

Represents a Robots' Manager (seen from the client side).
Parameters:
Name Type Description
values Object
simulator Simulator The simulator that uses this robots' manager
Author:
  • Loris Tissino (http://loris.tissino.it)
License:
  • MIT
Source:

Methods

addRobot(robot) → {RobotsManager}

Adds a robot to the list of managed robots, after having loaded it's representation source file.
Parameters:
Name Type Description
robot Object An object containing the information about the robot to add
Source:
Returns:
- The robots' manager
Type
RobotsManager

addRobots() → {RobotsManager}

Adds all the robots (from the initial setup) to the list of managed robots.
Source:
Returns:
- The robots' manager
Type
RobotsManager

update() → {RobotsManager}

Makes a POST to the Robots' Manager (server side) to update the data.
Source:
Returns:
- The robots' manager
Type
RobotsManager