UNPKG

spot-sdk-ts

Version:

TypeScript bindings based on protobufs (proto3) provided by Boston Dynamics

1,065 lines 193 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChoreographySequence = exports.ChoreographerDisplayInfo_Color = exports.ChoreographerDisplayInfo = exports.MoveInfo = exports.MoveParams = exports.DownloadRobotStateLogResponse = exports.ChoreographyStateLog = exports.LoggedStateKeyFrame = exports.LoggedFootContacts = exports.LoggedJoints = exports.DownloadRobotStateLogRequest = exports.StopRecordingStateResponse = exports.StopRecordingStateRequest = exports.StartRecordingStateResponse = exports.StartRecordingStateRequest = exports.ExecuteChoreographyResponse = exports.ExecuteChoreographyRequest = exports.UploadAnimatedMoveResponse = exports.UploadAnimatedMoveRequest = exports.UploadChoreographyResponse = exports.UploadChoreographyRequest = exports.ListAllSequencesResponse = exports.ListAllSequencesRequest = exports.ListAllMovesResponse = exports.ListAllMovesRequest = exports.animation_ArmPlaybackToJSON = exports.animation_ArmPlaybackFromJSON = exports.Animation_ArmPlayback = exports.choreographerDisplayInfo_CategoryToJSON = exports.choreographerDisplayInfo_CategoryFromJSON = exports.ChoreographerDisplayInfo_Category = exports.moveInfo_TransitionStateToJSON = exports.moveInfo_TransitionStateFromJSON = exports.MoveInfo_TransitionState = exports.downloadRobotStateLogResponse_StatusToJSON = exports.downloadRobotStateLogResponse_StatusFromJSON = exports.DownloadRobotStateLogResponse_Status = exports.downloadRobotStateLogRequest_LogTypeToJSON = exports.downloadRobotStateLogRequest_LogTypeFromJSON = exports.DownloadRobotStateLogRequest_LogType = exports.startRecordingStateResponse_StatusToJSON = exports.startRecordingStateResponse_StatusFromJSON = exports.StartRecordingStateResponse_Status = exports.executeChoreographyResponse_StatusToJSON = exports.executeChoreographyResponse_StatusFromJSON = exports.ExecuteChoreographyResponse_Status = exports.uploadAnimatedMoveResponse_StatusToJSON = exports.uploadAnimatedMoveResponse_StatusFromJSON = exports.UploadAnimatedMoveResponse_Status = exports.protobufPackage = void 0; exports.LegJointAngles = exports.AnimateSingleLeg = exports.AnimateLegs = exports.AnimateBody = exports.ArmJointAngles = exports.AnimateArm_HandPose = exports.AnimateArm = exports.AnimateGripper = exports.AnimationKeyframe = exports.Animation = exports.ChoreographerSave = void 0; /* eslint-disable */ const timestamp_1 = require("../../../google/protobuf/timestamp"); const long_1 = __importDefault(require("long")); const header_1 = require("../header"); const lease_1 = require("../lease"); const duration_1 = require("../../../google/protobuf/duration"); const geometry_1 = require("../geometry"); const data_chunk_1 = require("../data_chunk"); const choreography_params_1 = require("./choreography_params"); const minimal_1 = __importDefault(require("protobufjs/minimal")); const wrappers_1 = require("../../../google/protobuf/wrappers"); exports.protobufPackage = "bosdyn.api.spot"; var UploadAnimatedMoveResponse_Status; (function (UploadAnimatedMoveResponse_Status) { /** STATUS_UNKNOWN - Do not use. */ UploadAnimatedMoveResponse_Status[UploadAnimatedMoveResponse_Status["STATUS_UNKNOWN"] = 0] = "STATUS_UNKNOWN"; /** STATUS_OK - Uploading + parsing the animated move succeeded. */ UploadAnimatedMoveResponse_Status[UploadAnimatedMoveResponse_Status["STATUS_OK"] = 1] = "STATUS_OK"; /** STATUS_ANIMATION_VALIDATION_FAILED - The animated move is considered invalid, see the warnings. */ UploadAnimatedMoveResponse_Status[UploadAnimatedMoveResponse_Status["STATUS_ANIMATION_VALIDATION_FAILED"] = 2] = "STATUS_ANIMATION_VALIDATION_FAILED"; UploadAnimatedMoveResponse_Status[UploadAnimatedMoveResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(UploadAnimatedMoveResponse_Status = exports.UploadAnimatedMoveResponse_Status || (exports.UploadAnimatedMoveResponse_Status = {})); function uploadAnimatedMoveResponse_StatusFromJSON(object) { switch (object) { case 0: case "STATUS_UNKNOWN": return UploadAnimatedMoveResponse_Status.STATUS_UNKNOWN; case 1: case "STATUS_OK": return UploadAnimatedMoveResponse_Status.STATUS_OK; case 2: case "STATUS_ANIMATION_VALIDATION_FAILED": return UploadAnimatedMoveResponse_Status.STATUS_ANIMATION_VALIDATION_FAILED; case -1: case "UNRECOGNIZED": default: return UploadAnimatedMoveResponse_Status.UNRECOGNIZED; } } exports.uploadAnimatedMoveResponse_StatusFromJSON = uploadAnimatedMoveResponse_StatusFromJSON; function uploadAnimatedMoveResponse_StatusToJSON(object) { switch (object) { case UploadAnimatedMoveResponse_Status.STATUS_UNKNOWN: return "STATUS_UNKNOWN"; case UploadAnimatedMoveResponse_Status.STATUS_OK: return "STATUS_OK"; case UploadAnimatedMoveResponse_Status.STATUS_ANIMATION_VALIDATION_FAILED: return "STATUS_ANIMATION_VALIDATION_FAILED"; case UploadAnimatedMoveResponse_Status.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } exports.uploadAnimatedMoveResponse_StatusToJSON = uploadAnimatedMoveResponse_StatusToJSON; var ExecuteChoreographyResponse_Status; (function (ExecuteChoreographyResponse_Status) { ExecuteChoreographyResponse_Status[ExecuteChoreographyResponse_Status["STATUS_UNKNOWN"] = 0] = "STATUS_UNKNOWN"; ExecuteChoreographyResponse_Status[ExecuteChoreographyResponse_Status["STATUS_OK"] = 1] = "STATUS_OK"; ExecuteChoreographyResponse_Status[ExecuteChoreographyResponse_Status["STATUS_INVALID_UPLOADED_CHOREOGRAPHY"] = 2] = "STATUS_INVALID_UPLOADED_CHOREOGRAPHY"; ExecuteChoreographyResponse_Status[ExecuteChoreographyResponse_Status["STATUS_ROBOT_COMMAND_ISSUES"] = 3] = "STATUS_ROBOT_COMMAND_ISSUES"; ExecuteChoreographyResponse_Status[ExecuteChoreographyResponse_Status["STATUS_LEASE_ERROR"] = 4] = "STATUS_LEASE_ERROR"; ExecuteChoreographyResponse_Status[ExecuteChoreographyResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ExecuteChoreographyResponse_Status = exports.ExecuteChoreographyResponse_Status || (exports.ExecuteChoreographyResponse_Status = {})); function executeChoreographyResponse_StatusFromJSON(object) { switch (object) { case 0: case "STATUS_UNKNOWN": return ExecuteChoreographyResponse_Status.STATUS_UNKNOWN; case 1: case "STATUS_OK": return ExecuteChoreographyResponse_Status.STATUS_OK; case 2: case "STATUS_INVALID_UPLOADED_CHOREOGRAPHY": return ExecuteChoreographyResponse_Status.STATUS_INVALID_UPLOADED_CHOREOGRAPHY; case 3: case "STATUS_ROBOT_COMMAND_ISSUES": return ExecuteChoreographyResponse_Status.STATUS_ROBOT_COMMAND_ISSUES; case 4: case "STATUS_LEASE_ERROR": return ExecuteChoreographyResponse_Status.STATUS_LEASE_ERROR; case -1: case "UNRECOGNIZED": default: return ExecuteChoreographyResponse_Status.UNRECOGNIZED; } } exports.executeChoreographyResponse_StatusFromJSON = executeChoreographyResponse_StatusFromJSON; function executeChoreographyResponse_StatusToJSON(object) { switch (object) { case ExecuteChoreographyResponse_Status.STATUS_UNKNOWN: return "STATUS_UNKNOWN"; case ExecuteChoreographyResponse_Status.STATUS_OK: return "STATUS_OK"; case ExecuteChoreographyResponse_Status.STATUS_INVALID_UPLOADED_CHOREOGRAPHY: return "STATUS_INVALID_UPLOADED_CHOREOGRAPHY"; case ExecuteChoreographyResponse_Status.STATUS_ROBOT_COMMAND_ISSUES: return "STATUS_ROBOT_COMMAND_ISSUES"; case ExecuteChoreographyResponse_Status.STATUS_LEASE_ERROR: return "STATUS_LEASE_ERROR"; case ExecuteChoreographyResponse_Status.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } exports.executeChoreographyResponse_StatusToJSON = executeChoreographyResponse_StatusToJSON; /** The status for the start recording request. */ var StartRecordingStateResponse_Status; (function (StartRecordingStateResponse_Status) { /** STATUS_UNKNOWN - Status unknown; do not use. */ StartRecordingStateResponse_Status[StartRecordingStateResponse_Status["STATUS_UNKNOWN"] = 0] = "STATUS_UNKNOWN"; /** * STATUS_OK - The request succeeded and choreography has either started, or continued with an extended * duration based on if a session_id was provided. */ StartRecordingStateResponse_Status[StartRecordingStateResponse_Status["STATUS_OK"] = 1] = "STATUS_OK"; /** * STATUS_UNKNOWN_RECORDING_SESSION_ID - The provided recording_session_id is unknown: it must either be 0 (start a new recording log) * or it can match the current recording session id returned by the most recent start recording request. */ StartRecordingStateResponse_Status[StartRecordingStateResponse_Status["STATUS_UNKNOWN_RECORDING_SESSION_ID"] = 2] = "STATUS_UNKNOWN_RECORDING_SESSION_ID"; /** * STATUS_RECORDING_BUFFER_FULL - The Choreography Service's internal buffer is filled. It will record for a maximum of 5 minutes. It * will stop recording, but save the recorded data until */ StartRecordingStateResponse_Status[StartRecordingStateResponse_Status["STATUS_RECORDING_BUFFER_FULL"] = 3] = "STATUS_RECORDING_BUFFER_FULL"; StartRecordingStateResponse_Status[StartRecordingStateResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(StartRecordingStateResponse_Status = exports.StartRecordingStateResponse_Status || (exports.StartRecordingStateResponse_Status = {})); function startRecordingStateResponse_StatusFromJSON(object) { switch (object) { case 0: case "STATUS_UNKNOWN": return StartRecordingStateResponse_Status.STATUS_UNKNOWN; case 1: case "STATUS_OK": return StartRecordingStateResponse_Status.STATUS_OK; case 2: case "STATUS_UNKNOWN_RECORDING_SESSION_ID": return StartRecordingStateResponse_Status.STATUS_UNKNOWN_RECORDING_SESSION_ID; case 3: case "STATUS_RECORDING_BUFFER_FULL": return StartRecordingStateResponse_Status.STATUS_RECORDING_BUFFER_FULL; case -1: case "UNRECOGNIZED": default: return StartRecordingStateResponse_Status.UNRECOGNIZED; } } exports.startRecordingStateResponse_StatusFromJSON = startRecordingStateResponse_StatusFromJSON; function startRecordingStateResponse_StatusToJSON(object) { switch (object) { case StartRecordingStateResponse_Status.STATUS_UNKNOWN: return "STATUS_UNKNOWN"; case StartRecordingStateResponse_Status.STATUS_OK: return "STATUS_OK"; case StartRecordingStateResponse_Status.STATUS_UNKNOWN_RECORDING_SESSION_ID: return "STATUS_UNKNOWN_RECORDING_SESSION_ID"; case StartRecordingStateResponse_Status.STATUS_RECORDING_BUFFER_FULL: return "STATUS_RECORDING_BUFFER_FULL"; case StartRecordingStateResponse_Status.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } exports.startRecordingStateResponse_StatusToJSON = startRecordingStateResponse_StatusToJSON; var DownloadRobotStateLogRequest_LogType; (function (DownloadRobotStateLogRequest_LogType) { /** LOG_TYPE_UNKNOWN - Unknown. Do not use. */ DownloadRobotStateLogRequest_LogType[DownloadRobotStateLogRequest_LogType["LOG_TYPE_UNKNOWN"] = 0] = "LOG_TYPE_UNKNOWN"; /** * LOG_TYPE_MANUAL - The robot state information recorded from the time of the manual start RPC (StartRecordingState) * to either {the time of the manual stop RPC (StopRecordingState), the time of the download logs RPC, * or the time of the internal service's buffer filling up}. */ DownloadRobotStateLogRequest_LogType[DownloadRobotStateLogRequest_LogType["LOG_TYPE_MANUAL"] = 1] = "LOG_TYPE_MANUAL"; /** * LOG_TYPE_LAST_CHOREOGRAPHY - The robot will automatically record robot state information for the entire duration of an executing * choreography in addition to any manual logging. This log type will download this information for the * last completed choreography. */ DownloadRobotStateLogRequest_LogType[DownloadRobotStateLogRequest_LogType["LOG_TYPE_LAST_CHOREOGRAPHY"] = 2] = "LOG_TYPE_LAST_CHOREOGRAPHY"; DownloadRobotStateLogRequest_LogType[DownloadRobotStateLogRequest_LogType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(DownloadRobotStateLogRequest_LogType = exports.DownloadRobotStateLogRequest_LogType || (exports.DownloadRobotStateLogRequest_LogType = {})); function downloadRobotStateLogRequest_LogTypeFromJSON(object) { switch (object) { case 0: case "LOG_TYPE_UNKNOWN": return DownloadRobotStateLogRequest_LogType.LOG_TYPE_UNKNOWN; case 1: case "LOG_TYPE_MANUAL": return DownloadRobotStateLogRequest_LogType.LOG_TYPE_MANUAL; case 2: case "LOG_TYPE_LAST_CHOREOGRAPHY": return DownloadRobotStateLogRequest_LogType.LOG_TYPE_LAST_CHOREOGRAPHY; case -1: case "UNRECOGNIZED": default: return DownloadRobotStateLogRequest_LogType.UNRECOGNIZED; } } exports.downloadRobotStateLogRequest_LogTypeFromJSON = downloadRobotStateLogRequest_LogTypeFromJSON; function downloadRobotStateLogRequest_LogTypeToJSON(object) { switch (object) { case DownloadRobotStateLogRequest_LogType.LOG_TYPE_UNKNOWN: return "LOG_TYPE_UNKNOWN"; case DownloadRobotStateLogRequest_LogType.LOG_TYPE_MANUAL: return "LOG_TYPE_MANUAL"; case DownloadRobotStateLogRequest_LogType.LOG_TYPE_LAST_CHOREOGRAPHY: return "LOG_TYPE_LAST_CHOREOGRAPHY"; case DownloadRobotStateLogRequest_LogType.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } exports.downloadRobotStateLogRequest_LogTypeToJSON = downloadRobotStateLogRequest_LogTypeToJSON; var DownloadRobotStateLogResponse_Status; (function (DownloadRobotStateLogResponse_Status) { /** STATUS_UNKNOWN - Status unknown. Do not use. */ DownloadRobotStateLogResponse_Status[DownloadRobotStateLogResponse_Status["STATUS_UNKNOWN"] = 0] = "STATUS_UNKNOWN"; /** STATUS_OK - The log data downloaded successfully and is complete. */ DownloadRobotStateLogResponse_Status[DownloadRobotStateLogResponse_Status["STATUS_OK"] = 1] = "STATUS_OK"; /** STATUS_NO_RECORDED_INFORMATION - Error where there is no robot state information logged in the choreography service. */ DownloadRobotStateLogResponse_Status[DownloadRobotStateLogResponse_Status["STATUS_NO_RECORDED_INFORMATION"] = 2] = "STATUS_NO_RECORDED_INFORMATION"; /** * STATUS_INCOMPLETE_DATA - Error where the complete duration of the recorded session caused the service's recording * buffer to fill up. When full, the robot will stop recording but preserve whatever was * recorded until that point. The robot has an internal maximum recording time of 5 minutes. * The data streamed in this response will go from the start time until the time the buffer * was filled. */ DownloadRobotStateLogResponse_Status[DownloadRobotStateLogResponse_Status["STATUS_INCOMPLETE_DATA"] = 3] = "STATUS_INCOMPLETE_DATA"; DownloadRobotStateLogResponse_Status[DownloadRobotStateLogResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(DownloadRobotStateLogResponse_Status = exports.DownloadRobotStateLogResponse_Status || (exports.DownloadRobotStateLogResponse_Status = {})); function downloadRobotStateLogResponse_StatusFromJSON(object) { switch (object) { case 0: case "STATUS_UNKNOWN": return DownloadRobotStateLogResponse_Status.STATUS_UNKNOWN; case 1: case "STATUS_OK": return DownloadRobotStateLogResponse_Status.STATUS_OK; case 2: case "STATUS_NO_RECORDED_INFORMATION": return DownloadRobotStateLogResponse_Status.STATUS_NO_RECORDED_INFORMATION; case 3: case "STATUS_INCOMPLETE_DATA": return DownloadRobotStateLogResponse_Status.STATUS_INCOMPLETE_DATA; case -1: case "UNRECOGNIZED": default: return DownloadRobotStateLogResponse_Status.UNRECOGNIZED; } } exports.downloadRobotStateLogResponse_StatusFromJSON = downloadRobotStateLogResponse_StatusFromJSON; function downloadRobotStateLogResponse_StatusToJSON(object) { switch (object) { case DownloadRobotStateLogResponse_Status.STATUS_UNKNOWN: return "STATUS_UNKNOWN"; case DownloadRobotStateLogResponse_Status.STATUS_OK: return "STATUS_OK"; case DownloadRobotStateLogResponse_Status.STATUS_NO_RECORDED_INFORMATION: return "STATUS_NO_RECORDED_INFORMATION"; case DownloadRobotStateLogResponse_Status.STATUS_INCOMPLETE_DATA: return "STATUS_INCOMPLETE_DATA"; case DownloadRobotStateLogResponse_Status.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } exports.downloadRobotStateLogResponse_StatusToJSON = downloadRobotStateLogResponse_StatusToJSON; /** The state that the robot is in at the start or end of a move. */ var MoveInfo_TransitionState; (function (MoveInfo_TransitionState) { /** TRANSITION_STATE_UNKNOWN - Unknown or unset state. */ MoveInfo_TransitionState[MoveInfo_TransitionState["TRANSITION_STATE_UNKNOWN"] = 0] = "TRANSITION_STATE_UNKNOWN"; /** TRANSITION_STATE_STAND - The robot is in a normal (standing) state. */ MoveInfo_TransitionState[MoveInfo_TransitionState["TRANSITION_STATE_STAND"] = 1] = "TRANSITION_STATE_STAND"; /** TRANSITION_STATE_KNEEL - The robot is kneeling down. */ MoveInfo_TransitionState[MoveInfo_TransitionState["TRANSITION_STATE_KNEEL"] = 2] = "TRANSITION_STATE_KNEEL"; /** TRANSITION_STATE_SIT - The robot is sitting. */ MoveInfo_TransitionState[MoveInfo_TransitionState["TRANSITION_STATE_SIT"] = 3] = "TRANSITION_STATE_SIT"; /** TRANSITION_STATE_SPRAWL - The robot requires a self-right. */ MoveInfo_TransitionState[MoveInfo_TransitionState["TRANSITION_STATE_SPRAWL"] = 4] = "TRANSITION_STATE_SPRAWL"; MoveInfo_TransitionState[MoveInfo_TransitionState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(MoveInfo_TransitionState = exports.MoveInfo_TransitionState || (exports.MoveInfo_TransitionState = {})); function moveInfo_TransitionStateFromJSON(object) { switch (object) { case 0: case "TRANSITION_STATE_UNKNOWN": return MoveInfo_TransitionState.TRANSITION_STATE_UNKNOWN; case 1: case "TRANSITION_STATE_STAND": return MoveInfo_TransitionState.TRANSITION_STATE_STAND; case 2: case "TRANSITION_STATE_KNEEL": return MoveInfo_TransitionState.TRANSITION_STATE_KNEEL; case 3: case "TRANSITION_STATE_SIT": return MoveInfo_TransitionState.TRANSITION_STATE_SIT; case 4: case "TRANSITION_STATE_SPRAWL": return MoveInfo_TransitionState.TRANSITION_STATE_SPRAWL; case -1: case "UNRECOGNIZED": default: return MoveInfo_TransitionState.UNRECOGNIZED; } } exports.moveInfo_TransitionStateFromJSON = moveInfo_TransitionStateFromJSON; function moveInfo_TransitionStateToJSON(object) { switch (object) { case MoveInfo_TransitionState.TRANSITION_STATE_UNKNOWN: return "TRANSITION_STATE_UNKNOWN"; case MoveInfo_TransitionState.TRANSITION_STATE_STAND: return "TRANSITION_STATE_STAND"; case MoveInfo_TransitionState.TRANSITION_STATE_KNEEL: return "TRANSITION_STATE_KNEEL"; case MoveInfo_TransitionState.TRANSITION_STATE_SIT: return "TRANSITION_STATE_SIT"; case MoveInfo_TransitionState.TRANSITION_STATE_SPRAWL: return "TRANSITION_STATE_SPRAWL"; case MoveInfo_TransitionState.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } exports.moveInfo_TransitionStateToJSON = moveInfo_TransitionStateToJSON; /** * Move Category affects the grouping in the choreographer list view, as well as the color it's * displayed with. */ var ChoreographerDisplayInfo_Category; (function (ChoreographerDisplayInfo_Category) { ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_UNKNOWN"] = 0] = "CATEGORY_UNKNOWN"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_BODY"] = 1] = "CATEGORY_BODY"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_STEP"] = 2] = "CATEGORY_STEP"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_DYNAMIC"] = 3] = "CATEGORY_DYNAMIC"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_TRANSITION"] = 4] = "CATEGORY_TRANSITION"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_KNEEL"] = 5] = "CATEGORY_KNEEL"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_ARM"] = 6] = "CATEGORY_ARM"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_ANIMATION"] = 7] = "CATEGORY_ANIMATION"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_MPC"] = 8] = "CATEGORY_MPC"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_LIGHTS"] = 9] = "CATEGORY_LIGHTS"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["CATEGORY_ANNOTATIONS"] = 10] = "CATEGORY_ANNOTATIONS"; ChoreographerDisplayInfo_Category[ChoreographerDisplayInfo_Category["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ChoreographerDisplayInfo_Category = exports.ChoreographerDisplayInfo_Category || (exports.ChoreographerDisplayInfo_Category = {})); function choreographerDisplayInfo_CategoryFromJSON(object) { switch (object) { case 0: case "CATEGORY_UNKNOWN": return ChoreographerDisplayInfo_Category.CATEGORY_UNKNOWN; case 1: case "CATEGORY_BODY": return ChoreographerDisplayInfo_Category.CATEGORY_BODY; case 2: case "CATEGORY_STEP": return ChoreographerDisplayInfo_Category.CATEGORY_STEP; case 3: case "CATEGORY_DYNAMIC": return ChoreographerDisplayInfo_Category.CATEGORY_DYNAMIC; case 4: case "CATEGORY_TRANSITION": return ChoreographerDisplayInfo_Category.CATEGORY_TRANSITION; case 5: case "CATEGORY_KNEEL": return ChoreographerDisplayInfo_Category.CATEGORY_KNEEL; case 6: case "CATEGORY_ARM": return ChoreographerDisplayInfo_Category.CATEGORY_ARM; case 7: case "CATEGORY_ANIMATION": return ChoreographerDisplayInfo_Category.CATEGORY_ANIMATION; case 8: case "CATEGORY_MPC": return ChoreographerDisplayInfo_Category.CATEGORY_MPC; case 9: case "CATEGORY_LIGHTS": return ChoreographerDisplayInfo_Category.CATEGORY_LIGHTS; case 10: case "CATEGORY_ANNOTATIONS": return ChoreographerDisplayInfo_Category.CATEGORY_ANNOTATIONS; case -1: case "UNRECOGNIZED": default: return ChoreographerDisplayInfo_Category.UNRECOGNIZED; } } exports.choreographerDisplayInfo_CategoryFromJSON = choreographerDisplayInfo_CategoryFromJSON; function choreographerDisplayInfo_CategoryToJSON(object) { switch (object) { case ChoreographerDisplayInfo_Category.CATEGORY_UNKNOWN: return "CATEGORY_UNKNOWN"; case ChoreographerDisplayInfo_Category.CATEGORY_BODY: return "CATEGORY_BODY"; case ChoreographerDisplayInfo_Category.CATEGORY_STEP: return "CATEGORY_STEP"; case ChoreographerDisplayInfo_Category.CATEGORY_DYNAMIC: return "CATEGORY_DYNAMIC"; case ChoreographerDisplayInfo_Category.CATEGORY_TRANSITION: return "CATEGORY_TRANSITION"; case ChoreographerDisplayInfo_Category.CATEGORY_KNEEL: return "CATEGORY_KNEEL"; case ChoreographerDisplayInfo_Category.CATEGORY_ARM: return "CATEGORY_ARM"; case ChoreographerDisplayInfo_Category.CATEGORY_ANIMATION: return "CATEGORY_ANIMATION"; case ChoreographerDisplayInfo_Category.CATEGORY_MPC: return "CATEGORY_MPC"; case ChoreographerDisplayInfo_Category.CATEGORY_LIGHTS: return "CATEGORY_LIGHTS"; case ChoreographerDisplayInfo_Category.CATEGORY_ANNOTATIONS: return "CATEGORY_ANNOTATIONS"; case ChoreographerDisplayInfo_Category.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } exports.choreographerDisplayInfo_CategoryToJSON = choreographerDisplayInfo_CategoryToJSON; /** Mode for hand trajectory playback */ var Animation_ArmPlayback; (function (Animation_ArmPlayback) { /** * ARM_PLAYBACK_DEFAULT - Playback as specified. Arm animations specified with joint angles playback in jointspace * and arm animations specified as hand poses playback in workspace. */ Animation_ArmPlayback[Animation_ArmPlayback["ARM_PLAYBACK_DEFAULT"] = 0] = "ARM_PLAYBACK_DEFAULT"; /** ARM_PLAYBACK_JOINTSPACE - Playback in jointspace. Arm animation will be most consistent relative to the body */ Animation_ArmPlayback[Animation_ArmPlayback["ARM_PLAYBACK_JOINTSPACE"] = 1] = "ARM_PLAYBACK_JOINTSPACE"; /** * ARM_PLAYBACK_WORKSPACE - Playback in workspace. Hand pose animation will be most consistent relative to the * current footprint. Reference frame is animation frame. */ Animation_ArmPlayback[Animation_ArmPlayback["ARM_PLAYBACK_WORKSPACE"] = 2] = "ARM_PLAYBACK_WORKSPACE"; /** * ARM_PLAYBACK_WORKSPACE_DANCE_FRAME - Playback in workspace with poses relative to the dance frame. hand pose animation will be * most consistent relative to a fixed point in the world. */ Animation_ArmPlayback[Animation_ArmPlayback["ARM_PLAYBACK_WORKSPACE_DANCE_FRAME"] = 3] = "ARM_PLAYBACK_WORKSPACE_DANCE_FRAME"; Animation_ArmPlayback[Animation_ArmPlayback["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Animation_ArmPlayback = exports.Animation_ArmPlayback || (exports.Animation_ArmPlayback = {})); function animation_ArmPlaybackFromJSON(object) { switch (object) { case 0: case "ARM_PLAYBACK_DEFAULT": return Animation_ArmPlayback.ARM_PLAYBACK_DEFAULT; case 1: case "ARM_PLAYBACK_JOINTSPACE": return Animation_ArmPlayback.ARM_PLAYBACK_JOINTSPACE; case 2: case "ARM_PLAYBACK_WORKSPACE": return Animation_ArmPlayback.ARM_PLAYBACK_WORKSPACE; case 3: case "ARM_PLAYBACK_WORKSPACE_DANCE_FRAME": return Animation_ArmPlayback.ARM_PLAYBACK_WORKSPACE_DANCE_FRAME; case -1: case "UNRECOGNIZED": default: return Animation_ArmPlayback.UNRECOGNIZED; } } exports.animation_ArmPlaybackFromJSON = animation_ArmPlaybackFromJSON; function animation_ArmPlaybackToJSON(object) { switch (object) { case Animation_ArmPlayback.ARM_PLAYBACK_DEFAULT: return "ARM_PLAYBACK_DEFAULT"; case Animation_ArmPlayback.ARM_PLAYBACK_JOINTSPACE: return "ARM_PLAYBACK_JOINTSPACE"; case Animation_ArmPlayback.ARM_PLAYBACK_WORKSPACE: return "ARM_PLAYBACK_WORKSPACE"; case Animation_ArmPlayback.ARM_PLAYBACK_WORKSPACE_DANCE_FRAME: return "ARM_PLAYBACK_WORKSPACE_DANCE_FRAME"; case Animation_ArmPlayback.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } exports.animation_ArmPlaybackToJSON = animation_ArmPlaybackToJSON; function createBaseListAllMovesRequest() { return { header: undefined }; } exports.ListAllMovesRequest = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.RequestHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseListAllMovesRequest(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.header = header_1.RequestHeader.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { return { header: isSet(object.header) ? header_1.RequestHeader.fromJSON(object.header) : undefined, }; }, toJSON(message) { const obj = {}; message.header !== undefined && (obj.header = message.header ? header_1.RequestHeader.toJSON(message.header) : undefined); return obj; }, fromPartial(object) { const message = createBaseListAllMovesRequest(); message.header = object.header !== undefined && object.header !== null ? header_1.RequestHeader.fromPartial(object.header) : undefined; return message; }, }; function createBaseListAllMovesResponse() { return { header: undefined, moves: [], moveParamConfig: "" }; } exports.ListAllMovesResponse = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.ResponseHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } for (const v of message.moves) { exports.MoveInfo.encode(v, writer.uint32(18).fork()).ldelim(); } if (message.moveParamConfig !== "") { writer.uint32(26).string(message.moveParamConfig); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseListAllMovesResponse(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.header = header_1.ResponseHeader.decode(reader, reader.uint32()); break; case 2: message.moves.push(exports.MoveInfo.decode(reader, reader.uint32())); break; case 3: message.moveParamConfig = reader.string(); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { return { header: isSet(object.header) ? header_1.ResponseHeader.fromJSON(object.header) : undefined, moves: Array.isArray(object?.moves) ? object.moves.map((e) => exports.MoveInfo.fromJSON(e)) : [], moveParamConfig: isSet(object.moveParamConfig) ? String(object.moveParamConfig) : "", }; }, toJSON(message) { const obj = {}; message.header !== undefined && (obj.header = message.header ? header_1.ResponseHeader.toJSON(message.header) : undefined); if (message.moves) { obj.moves = message.moves.map((e) => e ? exports.MoveInfo.toJSON(e) : undefined); } else { obj.moves = []; } message.moveParamConfig !== undefined && (obj.moveParamConfig = message.moveParamConfig); return obj; }, fromPartial(object) { const message = createBaseListAllMovesResponse(); message.header = object.header !== undefined && object.header !== null ? header_1.ResponseHeader.fromPartial(object.header) : undefined; message.moves = object.moves?.map((e) => exports.MoveInfo.fromPartial(e)) || []; message.moveParamConfig = object.moveParamConfig ?? ""; return message; }, }; function createBaseListAllSequencesRequest() { return { header: undefined }; } exports.ListAllSequencesRequest = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.RequestHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseListAllSequencesRequest(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.header = header_1.RequestHeader.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { return { header: isSet(object.header) ? header_1.RequestHeader.fromJSON(object.header) : undefined, }; }, toJSON(message) { const obj = {}; message.header !== undefined && (obj.header = message.header ? header_1.RequestHeader.toJSON(message.header) : undefined); return obj; }, fromPartial(object) { const message = createBaseListAllSequencesRequest(); message.header = object.header !== undefined && object.header !== null ? header_1.RequestHeader.fromPartial(object.header) : undefined; return message; }, }; function createBaseListAllSequencesResponse() { return { header: undefined, knownSequences: [] }; } exports.ListAllSequencesResponse = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.ResponseHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } for (const v of message.knownSequences) { writer.uint32(18).string(v); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseListAllSequencesResponse(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.header = header_1.ResponseHeader.decode(reader, reader.uint32()); break; case 2: message.knownSequences.push(reader.string()); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { return { header: isSet(object.header) ? header_1.ResponseHeader.fromJSON(object.header) : undefined, knownSequences: Array.isArray(object?.knownSequences) ? object.knownSequences.map((e) => String(e)) : [], }; }, toJSON(message) { const obj = {}; message.header !== undefined && (obj.header = message.header ? header_1.ResponseHeader.toJSON(message.header) : undefined); if (message.knownSequences) { obj.knownSequences = message.knownSequences.map((e) => e); } else { obj.knownSequences = []; } return obj; }, fromPartial(object) { const message = createBaseListAllSequencesResponse(); message.header = object.header !== undefined && object.header !== null ? header_1.ResponseHeader.fromPartial(object.header) : undefined; message.knownSequences = object.knownSequences?.map((e) => e) || []; return message; }, }; function createBaseUploadChoreographyRequest() { return { header: undefined, choreographySequence: undefined, nonStrictParsing: false, }; } exports.UploadChoreographyRequest = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.RequestHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } if (message.choreographySequence !== undefined) { exports.ChoreographySequence.encode(message.choreographySequence, writer.uint32(18).fork()).ldelim(); } if (message.nonStrictParsing === true) { writer.uint32(24).bool(message.nonStrictParsing); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUploadChoreographyRequest(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.header = header_1.RequestHeader.decode(reader, reader.uint32()); break; case 2: message.choreographySequence = exports.ChoreographySequence.decode(reader, reader.uint32()); break; case 3: message.nonStrictParsing = reader.bool(); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { return { header: isSet(object.header) ? header_1.RequestHeader.fromJSON(object.header) : undefined, choreographySequence: isSet(object.choreographySequence) ? exports.ChoreographySequence.fromJSON(object.choreographySequence) : undefined, nonStrictParsing: isSet(object.nonStrictParsing) ? Boolean(object.nonStrictParsing) : false, }; }, toJSON(message) { const obj = {}; message.header !== undefined && (obj.header = message.header ? header_1.RequestHeader.toJSON(message.header) : undefined); message.choreographySequence !== undefined && (obj.choreographySequence = message.choreographySequence ? exports.ChoreographySequence.toJSON(message.choreographySequence) : undefined); message.nonStrictParsing !== undefined && (obj.nonStrictParsing = message.nonStrictParsing); return obj; }, fromPartial(object) { const message = createBaseUploadChoreographyRequest(); message.header = object.header !== undefined && object.header !== null ? header_1.RequestHeader.fromPartial(object.header) : undefined; message.choreographySequence = object.choreographySequence !== undefined && object.choreographySequence !== null ? exports.ChoreographySequence.fromPartial(object.choreographySequence) : undefined; message.nonStrictParsing = object.nonStrictParsing ?? false; return message; }, }; function createBaseUploadChoreographyResponse() { return { header: undefined, warnings: [] }; } exports.UploadChoreographyResponse = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.ResponseHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } for (const v of message.warnings) { writer.uint32(26).string(v); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUploadChoreographyResponse(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.header = header_1.ResponseHeader.decode(reader, reader.uint32()); break; case 3: message.warnings.push(reader.string()); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { return { header: isSet(object.header) ? header_1.ResponseHeader.fromJSON(object.header) : undefined, warnings: Array.isArray(object?.warnings) ? object.warnings.map((e) => String(e)) : [], }; }, toJSON(message) { const obj = {}; message.header !== undefined && (obj.header = message.header ? header_1.ResponseHeader.toJSON(message.header) : undefined); if (message.warnings) { obj.warnings = message.warnings.map((e) => e); } else { obj.warnings = []; } return obj; }, fromPartial(object) { const message = createBaseUploadChoreographyResponse(); message.header = object.header !== undefined && object.header !== null ? header_1.ResponseHeader.fromPartial(object.header) : undefined; message.warnings = object.warnings?.map((e) => e) || []; return message; }, }; function createBaseUploadAnimatedMoveRequest() { return { header: undefined, animatedMoveGeneratedId: undefined, animatedMove: undefined, }; } exports.UploadAnimatedMoveRequest = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.RequestHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } if (message.animatedMoveGeneratedId !== undefined) { wrappers_1.StringValue.encode({ value: message.animatedMoveGeneratedId }, writer.uint32(26).fork()).ldelim(); } if (message.animatedMove !== undefined) { exports.Animation.encode(message.animatedMove, writer.uint32(18).fork()).ldelim(); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUploadAnimatedMoveRequest(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.header = header_1.RequestHeader.decode(reader, reader.uint32()); break; case 3: message.animatedMoveGeneratedId = wrappers_1.StringValue.decode(reader, reader.uint32()).value; break; case 2: message.animatedMove = exports.Animation.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { return { header: isSet(object.header) ? header_1.RequestHeader.fromJSON(object.header) : undefined, animatedMoveGeneratedId: isSet(object.animatedMoveGeneratedId) ? String(object.animatedMoveGeneratedId) : undefined, animatedMove: isSet(object.animatedMove) ? exports.Animation.fromJSON(object.animatedMove) : undefined, }; }, toJSON(message) { const obj = {}; message.header !== undefined && (obj.header = message.header ? header_1.RequestHeader.toJSON(message.header) : undefined); message.animatedMoveGeneratedId !== undefined && (obj.animatedMoveGeneratedId = message.animatedMoveGeneratedId); message.animatedMove !== undefined && (obj.animatedMove = message.animatedMove ? exports.Animation.toJSON(message.animatedMove) : undefined); return obj; }, fromPartial(object) { const message = createBaseUploadAnimatedMoveRequest(); message.header = object.header !== undefined && object.header !== null ? header_1.RequestHeader.fromPartial(object.header) : undefined; message.animatedMoveGeneratedId = object.animatedMoveGeneratedId ?? undefined; message.animatedMove = object.animatedMove !== undefined && object.animatedMove !== null ? exports.Animation.fromPartial(object.animatedMove) : undefined; return message; }, }; function createBaseUploadAnimatedMoveResponse() { return { header: undefined, status: 0, warnings: [] }; } exports.UploadAnimatedMoveResponse = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.ResponseHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } if (message.status !== 0) { writer.uint32(16).int32(message.status); } for (const v of message.warnings) { writer.uint32(26).string(v); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUploadAnimatedMoveResponse(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.header = header_1.ResponseHeader.decode(reader, reader.uint32()); break; case 2: message.status = reader.int32(); break; case 3: message.warnings.push(reader.string()); break; default: reader.skipType(tag & 7); break; } } return message; }, fromJSON(object) { return { header: isSet(object.header) ? header_1.ResponseHeader.fromJSON(object.header) : undefined, status: isSet(object.status) ? uploadAnimatedMoveResponse_StatusFromJSON(object.status) : 0, warnings: Array.isArray(object?.warnings) ? object.warnings.map((e) => String(e)) : [], }; }, toJSON(message) { const obj = {}; message.header !== undefined && (obj.header = message.header ? header_1.ResponseHeader.toJSON(message.header) : undefined); message.status !== undefined && (obj.status = uploadAnimatedMoveResponse_StatusToJSON(message.status)); if (message.warnings) { obj.warnings = message.warnings.map((e) => e); } else { obj.warnings = []; } return obj; }, fromPartial(object) { const message = createBaseUploadAnimatedMoveResponse(); message.header = object.header !== undefined && object.header !== null ? header_1.ResponseHeader.fromPartial(object.header) : undefined; message.status = object.status ?? 0; message.warnings = object.warnings?.map((e) => e) || []; return message; }, }; function createBaseExecuteChoreographyRequest() { return { header: undefined, choreographySequenceName: "", startTime: undefined, choreographyStartingSlice: 0, lease: undefined, }; } exports.ExecuteChoreographyRequest = { encode(message, writer = minimal_1.default.Writer.create()) { if (message.header !== undefined) { header_1.RequestHeader.encode(message.header, writer.uint32(10).fork()).ldelim(); } if (message.choreographySequenceName !== "") { writer.uint32(18).string(message.choreographySequenceName); } if (message.startTime