"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RobotArmAPI = void 0;
const integration_base_1 = require("@things-factory/integration-base");
const decorators_1 = require("./decorators");
class RobotArmAPI {
    static registerPlatform(name, apis) {
        RobotArmAPI.platforms[name] = {
            apis
        };
    }
    static getPlatform(name) {
        return RobotArmAPI.platforms[name];
    }
    static getRobotArm(domain, name) {
        return integration_base_1.ConnectionManager.getConnectionInstanceByName(domain, name);
    }
    static reset(domain, robotArmName) { }
    static getStatus(domain, robotArmName) {
        return;
    }
    static getPose(domain, robotArmName) { }
    static getJoints(domain, robotArmName) { }
    static goHome(domain, robotArmName) { }
    static goZero(domain, robotArmName) { }
    static moveTo(domain, robotArmName, { pose }) { }
    static moveToJoints(domain, robotArmName, { joints }) { }
    static moveBy(domain, robotArmName, { pose }) { }
    static moveByNoWait(domain, robotArmName, { pose }) { }
    static startTeachingMode(domain, robotArmName) { }
    static finishTeachingMode(domain, robotArmName) { }
    static setHome(domain, robotArmName, { joints }) { }
}
RobotArmAPI.platforms = {};
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "reset", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "getStatus", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "getPose", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "getJoints", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "goHome", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "goZero", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "moveTo", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "moveToJoints", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "moveBy", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "moveByNoWait", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "startTeachingMode", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "finishTeachingMode", null);
__decorate([
    decorators_1.api,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, Object, Object]),
    __metadata("design:returntype", Object)
], RobotArmAPI, "setHome", null);
exports.RobotArmAPI = RobotArmAPI;
//# sourceMappingURL=index.js.map