Class: ThreeWheelDistanceSensingRobotVirtualizer

ThreeWheelDistanceSensingRobotVirtualizer

Mixin providing methods for the virtualization of a robot's application controller.

Constructor

new ThreeWheelDistanceSensingRobotVirtualizer()

Author:
  • Loris Tissino (http://loris.tissino.it)
License:
  • MIT
Source:

Methods

addCommands() → {ThreeWheelDistanceSensingRobotController}

Adds commands.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

addVirtualPen() → {ThreeWheelDistanceSensingRobotController}

Adds a virtual pen.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

createPins() → {ThreeWheelDistanceSensingRobotController}

Creates the pins needed.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

disableInfraredReader() → {ThreeWheelDistanceSensingRobotController}

Disables the infrared reader.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

enableInfraredReader() → {ThreeWheelDistanceSensingRobotController}

Enables the infrared reader.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

exec(command, parameters, originalResponse)

Execs a command.
Parameters:
Name Type Description
command string The command
parameters Object The parameters of the command
originalResponse http.ServerResponse The response to use for the reply
Source:

togglePen() → {ThreeWheelDistanceSensingRobotController}

Toggles the virtual pen.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

update(values)

Updates the robot with the information coming from the robot's manager.
Parameters:
Name Type Description
values Object The parameters of the command
Source: