Constructor
new ThreeWheelDistanceSensingRobotVirtualizer()
- License:
- MIT
- Source:
Methods
addCommands() → {ThreeWheelDistanceSensingRobotController}
Adds commands.
Returns:
- The controller
addVirtualPen() → {ThreeWheelDistanceSensingRobotController}
Adds a virtual pen.
Returns:
- The controller
createPins() → {ThreeWheelDistanceSensingRobotController}
Creates the pins needed.
Returns:
- The controller
disableInfraredReader() → {ThreeWheelDistanceSensingRobotController}
Disables the infrared reader.
Returns:
- The controller
enableInfraredReader() → {ThreeWheelDistanceSensingRobotController}
Enables the infrared reader.
Returns:
- The controller
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 |
togglePen() → {ThreeWheelDistanceSensingRobotController}
Toggles the virtual pen.
Returns:
- The controller
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 |