mirror of https://github.com/Hypfer/Valetudo.git
27 lines
578 B
JavaScript
27 lines
578 B
JavaScript
const Capability = require("./Capability");
|
|
const NotImplementedError = require("../NotImplementedError");
|
|
|
|
/**
|
|
* Plays some kind of sound, flashes a light etc to find the robot
|
|
*
|
|
* @template {import("../ValetudoRobot")} T
|
|
* @extends Capability<T>
|
|
*/
|
|
class LocateCapability extends Capability {
|
|
/**
|
|
* @abstract
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async locate() {
|
|
throw new NotImplementedError();
|
|
}
|
|
|
|
getType() {
|
|
return LocateCapability.TYPE;
|
|
}
|
|
}
|
|
|
|
LocateCapability.TYPE = "LocateCapability";
|
|
|
|
module.exports = LocateCapability;
|