Valetudo/backend/lib/robots/mock/capabilities/MockLocateCapability.js

19 lines
482 B
JavaScript

const LocateCapability = require("../../../core/capabilities/LocateCapability");
const Logger = require("../../../Logger");
/**
* @extends LocateCapability<import("../MockRobot")>
*/
class MockLocateCapability extends LocateCapability {
/**
* @returns {Promise<void>}
*/
async locate() {
// Ring the terminal bell, just for fun
process.stdout.write("\x07");
Logger.info("Locating robot");
}
}
module.exports = MockLocateCapability;