"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.moveToJoints = void 0;
const util_1 = require("./util");
async function moveToJoints({ client }, { joints }) {
    const { j1, j2, j3, j4, j5, j6 } = joints;
    await client.jointMoveTo([j1, j2, j3, j4, j5, j6]);
    await (0, util_1.waitForState)(client, status => !status.isBusy);
    return true;
}
exports.moveToJoints = moveToJoints;
//# sourceMappingURL=move-to-joints.js.map