"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const integration_base_1 = require("@things-factory/integration-base");
const util_1 = require("./util");
async function CheckCubeRegion(step, { logger, data }) {
    var { params: { accessor, cubeFirstPos, cubeSecondPos } } = step;
    var position = (0, util_1.getPositionFromAccessor)('accessor', accessor, data, logger);
    (0, util_1.checkValidPose)('accessor', position);
    console.log(position);
    return {
        data: true
    };
}
CheckCubeRegion.parameterSpec = [
    {
        type: 'scenario-step-input',
        label: 'accessor',
        name: 'accessor'
    },
    {
        type: 'pose',
        label: 'cube-first-position',
        name: 'cubeFirstPos'
    },
    {
        type: 'pose',
        label: 'cube-second-position',
        name: 'cubeSecondPos'
    }
];
CheckCubeRegion.connectorFree = true;
CheckCubeRegion.help = 'robotics/task/check-cube-region';
integration_base_1.TaskRegistry.registerTaskHandler('check-cube-region', CheckCubeRegion);
//# sourceMappingURL=check-cube-region.js.map