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 |
- 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 |
Returns:
- The robots' manager
- Type
- RobotsManager
addRobots() → {RobotsManager}
Adds all the robots (from the initial setup) to the list of managed robots.
Returns:
- The robots' manager
- Type
- RobotsManager
update() → {RobotsManager}
Makes a POST to the Robots' Manager (server side) to update the data.
Returns:
- The robots' manager
- Type
- RobotsManager