spot-sdk-ts
Version:
TypeScript bindings based on protobufs (proto3) provided by Boston Dynamics
808 lines • 215 kB
JavaScript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetLocalizationResponse_SuspectedAmbiguity = exports.SetLocalizationResponse = exports.SensorCompatibilityStatus = exports.SetLocalizationRequest = exports.downloadEdgeSnapshotResponse_StatusToJSON = exports.downloadEdgeSnapshotResponse_StatusFromJSON = exports.DownloadEdgeSnapshotResponse_Status = exports.downloadWaypointSnapshotResponse_StatusToJSON = exports.downloadWaypointSnapshotResponse_StatusFromJSON = exports.DownloadWaypointSnapshotResponse_Status = exports.uploadWaypointSnapshotResponse_StatusToJSON = exports.uploadWaypointSnapshotResponse_StatusFromJSON = exports.UploadWaypointSnapshotResponse_Status = exports.uploadGraphResponse_StatusToJSON = exports.uploadGraphResponse_StatusFromJSON = exports.UploadGraphResponse_Status = exports.clearGraphResponse_StatusToJSON = exports.clearGraphResponse_StatusFromJSON = exports.ClearGraphResponse_Status = exports.navigationFeedbackResponse_StatusToJSON = exports.navigationFeedbackResponse_StatusFromJSON = exports.NavigationFeedbackResponse_Status = exports.navigateToAnchorResponse_StatusToJSON = exports.navigateToAnchorResponse_StatusFromJSON = exports.NavigateToAnchorResponse_Status = exports.navigateRouteResponse_StatusToJSON = exports.navigateRouteResponse_StatusFromJSON = exports.NavigateRouteResponse_Status = exports.routeFollowingParams_RouteBlockedBehaviorToJSON = exports.routeFollowingParams_RouteBlockedBehaviorFromJSON = exports.RouteFollowingParams_RouteBlockedBehavior = exports.routeFollowingParams_ResumeBehaviorToJSON = exports.routeFollowingParams_ResumeBehaviorFromJSON = exports.RouteFollowingParams_ResumeBehavior = exports.routeFollowingParams_StartRouteBehaviorToJSON = exports.routeFollowingParams_StartRouteBehaviorFromJSON = exports.RouteFollowingParams_StartRouteBehavior = exports.navigateToResponse_StatusToJSON = exports.navigateToResponse_StatusFromJSON = exports.NavigateToResponse_Status = exports.travelParams_FeatureQualityToleranceToJSON = exports.travelParams_FeatureQualityToleranceFromJSON = exports.TravelParams_FeatureQualityTolerance = exports.setLocalizationResponse_StatusToJSON = exports.setLocalizationResponse_StatusFromJSON = exports.SetLocalizationResponse_Status = exports.setLocalizationRequest_FiducialInitToJSON = exports.setLocalizationRequest_FiducialInitFromJSON = exports.SetLocalizationRequest_FiducialInit = exports.protobufPackage = void 0;
exports.DownloadEdgeSnapshotResponse = exports.DownloadEdgeSnapshotRequest = exports.DownloadWaypointSnapshotResponse = exports.DownloadWaypointSnapshotRequest = exports.UploadEdgeSnapshotResponse = exports.UploadEdgeSnapshotRequest = exports.UploadWaypointSnapshotResponse = exports.UploadWaypointSnapshotRequest = exports.DownloadGraphResponse = exports.DownloadGraphRequest = exports.UploadGraphResponse = exports.UploadGraphRequest = exports.ClearGraphResponse = exports.ClearGraphRequest = exports.GetLocalizationStateResponse = exports.LostDetectorState = exports.RemotePointCloudStatus = exports.GetLocalizationStateRequest = exports.NavigationFeedbackResponse = exports.NavigationFeedbackRequest = exports.NavigateToAnchorResponse = exports.NavigateToAnchorRequest = exports.NavigateRouteResponse = exports.NavigateRouteRequest = exports.RouteFollowingParams = exports.NavigateToResponse = exports.NavigateToRequest = exports.TravelParams = exports.RouteGenParams = void 0;
/* eslint-disable */
const basic_command_1 = require("../basic_command");
const license_1 = require("../license");
const timestamp_1 = require("../../../google/protobuf/timestamp");
const header_1 = require("../header");
const nav_1 = require("./nav");
const geometry_1 = require("../geometry");
const lease_1 = require("../lease");
const robot_state_1 = require("../robot_state");
const map_1 = require("./map");
const data_chunk_1 = require("../data_chunk");
const minimal_1 = __importDefault(require("protobufjs/minimal"));
exports.protobufPackage = "bosdyn.api.graph_nav";
var SetLocalizationRequest_FiducialInit;
(function (SetLocalizationRequest_FiducialInit) {
/** FIDUCIAL_INIT_UNKNOWN - It is a programming error to use this one. */
SetLocalizationRequest_FiducialInit[SetLocalizationRequest_FiducialInit["FIDUCIAL_INIT_UNKNOWN"] = 0] = "FIDUCIAL_INIT_UNKNOWN";
/** FIDUCIAL_INIT_NO_FIDUCIAL - Ignore fiducials during initialization. */
SetLocalizationRequest_FiducialInit[SetLocalizationRequest_FiducialInit["FIDUCIAL_INIT_NO_FIDUCIAL"] = 1] = "FIDUCIAL_INIT_NO_FIDUCIAL";
/** FIDUCIAL_INIT_NEAREST - Localize to the nearest fiducial in any waypoint. */
SetLocalizationRequest_FiducialInit[SetLocalizationRequest_FiducialInit["FIDUCIAL_INIT_NEAREST"] = 2] = "FIDUCIAL_INIT_NEAREST";
/** FIDUCIAL_INIT_NEAREST_AT_TARGET - Localize to nearest fiducial at the target waypoint (from initial_guess). */
SetLocalizationRequest_FiducialInit[SetLocalizationRequest_FiducialInit["FIDUCIAL_INIT_NEAREST_AT_TARGET"] = 3] = "FIDUCIAL_INIT_NEAREST_AT_TARGET";
/** FIDUCIAL_INIT_SPECIFIC - Localize to the given fiducial at the target waypoint (from initial_guess) if it exists, or any waypoint otherwise. */
SetLocalizationRequest_FiducialInit[SetLocalizationRequest_FiducialInit["FIDUCIAL_INIT_SPECIFIC"] = 4] = "FIDUCIAL_INIT_SPECIFIC";
SetLocalizationRequest_FiducialInit[SetLocalizationRequest_FiducialInit["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(SetLocalizationRequest_FiducialInit = exports.SetLocalizationRequest_FiducialInit || (exports.SetLocalizationRequest_FiducialInit = {}));
function setLocalizationRequest_FiducialInitFromJSON(object) {
switch (object) {
case 0:
case "FIDUCIAL_INIT_UNKNOWN":
return SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_UNKNOWN;
case 1:
case "FIDUCIAL_INIT_NO_FIDUCIAL":
return SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_NO_FIDUCIAL;
case 2:
case "FIDUCIAL_INIT_NEAREST":
return SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_NEAREST;
case 3:
case "FIDUCIAL_INIT_NEAREST_AT_TARGET":
return SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_NEAREST_AT_TARGET;
case 4:
case "FIDUCIAL_INIT_SPECIFIC":
return SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_SPECIFIC;
case -1:
case "UNRECOGNIZED":
default:
return SetLocalizationRequest_FiducialInit.UNRECOGNIZED;
}
}
exports.setLocalizationRequest_FiducialInitFromJSON = setLocalizationRequest_FiducialInitFromJSON;
function setLocalizationRequest_FiducialInitToJSON(object) {
switch (object) {
case SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_UNKNOWN:
return "FIDUCIAL_INIT_UNKNOWN";
case SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_NO_FIDUCIAL:
return "FIDUCIAL_INIT_NO_FIDUCIAL";
case SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_NEAREST:
return "FIDUCIAL_INIT_NEAREST";
case SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_NEAREST_AT_TARGET:
return "FIDUCIAL_INIT_NEAREST_AT_TARGET";
case SetLocalizationRequest_FiducialInit.FIDUCIAL_INIT_SPECIFIC:
return "FIDUCIAL_INIT_SPECIFIC";
case SetLocalizationRequest_FiducialInit.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.setLocalizationRequest_FiducialInitToJSON = setLocalizationRequest_FiducialInitToJSON;
var SetLocalizationResponse_Status;
(function (SetLocalizationResponse_Status) {
/** STATUS_UNKNOWN - The status is unknown/unset. */
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_UNKNOWN"] = 0] = "STATUS_UNKNOWN";
/** STATUS_OK - Localization success. */
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_OK"] = 1] = "STATUS_OK";
/** STATUS_ROBOT_IMPAIRED - Robot is experiencing a condition that prevents localization. */
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_ROBOT_IMPAIRED"] = 2] = "STATUS_ROBOT_IMPAIRED";
/**
* STATUS_UNKNOWN_WAYPOINT - The given waypoint is unknown by the system.
* This could be due to a client error, or because the graph was changed out from under the
* client.
*/
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_UNKNOWN_WAYPOINT"] = 3] = "STATUS_UNKNOWN_WAYPOINT";
/** STATUS_ABORTED - Localization was aborted, likely because of a new request. */
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_ABORTED"] = 4] = "STATUS_ABORTED";
/**
* STATUS_FAILED - Failed to localize for some other reason; see the error_report for details.
* This is often because the initial guess was incorrect.
*/
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_FAILED"] = 5] = "STATUS_FAILED";
/**
* STATUS_FIDUCIAL_TOO_FAR_AWAY - Failed to localize because the fiducial requested by 'use_fiducial_id' was too far away from
* the robot.
*/
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_FIDUCIAL_TOO_FAR_AWAY"] = 6] = "STATUS_FIDUCIAL_TOO_FAR_AWAY";
/**
* STATUS_FIDUCIAL_TOO_OLD - Failed to localize because the fiducial requested by 'use_fiducial_id' had a detection time that was too
* far in the past.
*/
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_FIDUCIAL_TOO_OLD"] = 7] = "STATUS_FIDUCIAL_TOO_OLD";
/**
* STATUS_NO_MATCHING_FIDUCIAL - Failed to localize because the fiducial requested by 'use_fiducial_id' did not exist in the map at
* the required location.
*/
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_NO_MATCHING_FIDUCIAL"] = 8] = "STATUS_NO_MATCHING_FIDUCIAL";
/**
* STATUS_FIDUCIAL_POSE_UNCERTAIN - Failed to localize because the fiducial requested by 'use_fiducial_id' had an unreliable
* pose estimation, either in the current detection of that fiducial, or in detections that
* were saved in the map. Note that when using FIDUCIAL_INIT_SPECIFIC, fiducial detections at
* the target waypoint will be used so long as they are not uncertain -- otherwise, detections
* at adjacent waypoints may be used. If there exists no uncertain detection of the fiducial
* near the target waypoint in the map, the service returns this status.
*/
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_FIDUCIAL_POSE_UNCERTAIN"] = 9] = "STATUS_FIDUCIAL_POSE_UNCERTAIN";
/**
* STATUS_INCOMPATIBLE_SENSORS - The localization could not be set, because the map was recorded using a different sensor
* setup than the robot currently has onboard. See SensorStatus for more details.
*/
SetLocalizationResponse_Status[SetLocalizationResponse_Status["STATUS_INCOMPATIBLE_SENSORS"] = 10] = "STATUS_INCOMPATIBLE_SENSORS";
SetLocalizationResponse_Status[SetLocalizationResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(SetLocalizationResponse_Status = exports.SetLocalizationResponse_Status || (exports.SetLocalizationResponse_Status = {}));
function setLocalizationResponse_StatusFromJSON(object) {
switch (object) {
case 0:
case "STATUS_UNKNOWN":
return SetLocalizationResponse_Status.STATUS_UNKNOWN;
case 1:
case "STATUS_OK":
return SetLocalizationResponse_Status.STATUS_OK;
case 2:
case "STATUS_ROBOT_IMPAIRED":
return SetLocalizationResponse_Status.STATUS_ROBOT_IMPAIRED;
case 3:
case "STATUS_UNKNOWN_WAYPOINT":
return SetLocalizationResponse_Status.STATUS_UNKNOWN_WAYPOINT;
case 4:
case "STATUS_ABORTED":
return SetLocalizationResponse_Status.STATUS_ABORTED;
case 5:
case "STATUS_FAILED":
return SetLocalizationResponse_Status.STATUS_FAILED;
case 6:
case "STATUS_FIDUCIAL_TOO_FAR_AWAY":
return SetLocalizationResponse_Status.STATUS_FIDUCIAL_TOO_FAR_AWAY;
case 7:
case "STATUS_FIDUCIAL_TOO_OLD":
return SetLocalizationResponse_Status.STATUS_FIDUCIAL_TOO_OLD;
case 8:
case "STATUS_NO_MATCHING_FIDUCIAL":
return SetLocalizationResponse_Status.STATUS_NO_MATCHING_FIDUCIAL;
case 9:
case "STATUS_FIDUCIAL_POSE_UNCERTAIN":
return SetLocalizationResponse_Status.STATUS_FIDUCIAL_POSE_UNCERTAIN;
case 10:
case "STATUS_INCOMPATIBLE_SENSORS":
return SetLocalizationResponse_Status.STATUS_INCOMPATIBLE_SENSORS;
case -1:
case "UNRECOGNIZED":
default:
return SetLocalizationResponse_Status.UNRECOGNIZED;
}
}
exports.setLocalizationResponse_StatusFromJSON = setLocalizationResponse_StatusFromJSON;
function setLocalizationResponse_StatusToJSON(object) {
switch (object) {
case SetLocalizationResponse_Status.STATUS_UNKNOWN:
return "STATUS_UNKNOWN";
case SetLocalizationResponse_Status.STATUS_OK:
return "STATUS_OK";
case SetLocalizationResponse_Status.STATUS_ROBOT_IMPAIRED:
return "STATUS_ROBOT_IMPAIRED";
case SetLocalizationResponse_Status.STATUS_UNKNOWN_WAYPOINT:
return "STATUS_UNKNOWN_WAYPOINT";
case SetLocalizationResponse_Status.STATUS_ABORTED:
return "STATUS_ABORTED";
case SetLocalizationResponse_Status.STATUS_FAILED:
return "STATUS_FAILED";
case SetLocalizationResponse_Status.STATUS_FIDUCIAL_TOO_FAR_AWAY:
return "STATUS_FIDUCIAL_TOO_FAR_AWAY";
case SetLocalizationResponse_Status.STATUS_FIDUCIAL_TOO_OLD:
return "STATUS_FIDUCIAL_TOO_OLD";
case SetLocalizationResponse_Status.STATUS_NO_MATCHING_FIDUCIAL:
return "STATUS_NO_MATCHING_FIDUCIAL";
case SetLocalizationResponse_Status.STATUS_FIDUCIAL_POSE_UNCERTAIN:
return "STATUS_FIDUCIAL_POSE_UNCERTAIN";
case SetLocalizationResponse_Status.STATUS_INCOMPATIBLE_SENSORS:
return "STATUS_INCOMPATIBLE_SENSORS";
case SetLocalizationResponse_Status.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.setLocalizationResponse_StatusToJSON = setLocalizationResponse_StatusToJSON;
/** Indicates whether robot will navigate through areas with poor quality features */
var TravelParams_FeatureQualityTolerance;
(function (TravelParams_FeatureQualityTolerance) {
/** TOLERANCE_UNKNOWN - Unknown value */
TravelParams_FeatureQualityTolerance[TravelParams_FeatureQualityTolerance["TOLERANCE_UNKNOWN"] = 0] = "TOLERANCE_UNKNOWN";
/** TOLERANCE_DEFAULT - Navigate through default number of waypoints with poor quality features */
TravelParams_FeatureQualityTolerance[TravelParams_FeatureQualityTolerance["TOLERANCE_DEFAULT"] = 1] = "TOLERANCE_DEFAULT";
/** TOLERANCE_IGNORE_POOR_FEATURE_QUALITY - Navigate through unlimited number of waypoints with poor quality features */
TravelParams_FeatureQualityTolerance[TravelParams_FeatureQualityTolerance["TOLERANCE_IGNORE_POOR_FEATURE_QUALITY"] = 2] = "TOLERANCE_IGNORE_POOR_FEATURE_QUALITY";
TravelParams_FeatureQualityTolerance[TravelParams_FeatureQualityTolerance["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(TravelParams_FeatureQualityTolerance = exports.TravelParams_FeatureQualityTolerance || (exports.TravelParams_FeatureQualityTolerance = {}));
function travelParams_FeatureQualityToleranceFromJSON(object) {
switch (object) {
case 0:
case "TOLERANCE_UNKNOWN":
return TravelParams_FeatureQualityTolerance.TOLERANCE_UNKNOWN;
case 1:
case "TOLERANCE_DEFAULT":
return TravelParams_FeatureQualityTolerance.TOLERANCE_DEFAULT;
case 2:
case "TOLERANCE_IGNORE_POOR_FEATURE_QUALITY":
return TravelParams_FeatureQualityTolerance.TOLERANCE_IGNORE_POOR_FEATURE_QUALITY;
case -1:
case "UNRECOGNIZED":
default:
return TravelParams_FeatureQualityTolerance.UNRECOGNIZED;
}
}
exports.travelParams_FeatureQualityToleranceFromJSON = travelParams_FeatureQualityToleranceFromJSON;
function travelParams_FeatureQualityToleranceToJSON(object) {
switch (object) {
case TravelParams_FeatureQualityTolerance.TOLERANCE_UNKNOWN:
return "TOLERANCE_UNKNOWN";
case TravelParams_FeatureQualityTolerance.TOLERANCE_DEFAULT:
return "TOLERANCE_DEFAULT";
case TravelParams_FeatureQualityTolerance.TOLERANCE_IGNORE_POOR_FEATURE_QUALITY:
return "TOLERANCE_IGNORE_POOR_FEATURE_QUALITY";
case TravelParams_FeatureQualityTolerance.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.travelParams_FeatureQualityToleranceToJSON = travelParams_FeatureQualityToleranceToJSON;
var NavigateToResponse_Status;
(function (NavigateToResponse_Status) {
/** STATUS_UNKNOWN - An unknown / unexpected error occurred. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_UNKNOWN"] = 0] = "STATUS_UNKNOWN";
/** STATUS_OK - Request was accepted. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_OK"] = 1] = "STATUS_OK";
/** STATUS_NO_TIMESYNC - [Time error] Client has not done timesync with robot. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_NO_TIMESYNC"] = 2] = "STATUS_NO_TIMESYNC";
/** STATUS_EXPIRED - [Time error] The command was received after its end time had already passed. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_EXPIRED"] = 3] = "STATUS_EXPIRED";
/** STATUS_TOO_DISTANT - [Time error]The command end time was too far in the future. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_TOO_DISTANT"] = 4] = "STATUS_TOO_DISTANT";
/**
* STATUS_ROBOT_IMPAIRED - [Robot State Error] Cannot navigate a route if the robot has a critical
* perception fault, or behavior fault, or LIDAR not working.
*/
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_ROBOT_IMPAIRED"] = 5] = "STATUS_ROBOT_IMPAIRED";
/** STATUS_RECORDING - [Robot State Error] Cannot navigate a route while recording a map. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_RECORDING"] = 6] = "STATUS_RECORDING";
/** STATUS_UNKNOWN_WAYPOINT - [Route Error] One or more of the waypoints specified weren't in the map. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_UNKNOWN_WAYPOINT"] = 7] = "STATUS_UNKNOWN_WAYPOINT";
/** STATUS_NO_PATH - [Route Error] There is no path to the specified waypoint. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_NO_PATH"] = 8] = "STATUS_NO_PATH";
/** STATUS_FEATURE_DESERT - [Route Error] Route contained too many waypoints with low-quality features. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_FEATURE_DESERT"] = 10] = "STATUS_FEATURE_DESERT";
/** STATUS_LOST - [Route Error] Happens when you try to issue a navigate to while the robot is lost. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_LOST"] = 11] = "STATUS_LOST";
/** STATUS_NOT_LOCALIZED_TO_MAP - [Route Error] Happens when the current localization doesn't refer to any waypoint in the map (possibly uninitialized localization). */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_NOT_LOCALIZED_TO_MAP"] = 13] = "STATUS_NOT_LOCALIZED_TO_MAP";
/** STATUS_COULD_NOT_UPDATE_ROUTE - [Wrestling error] Happens when graph nav refuses to follow the route you specified. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_COULD_NOT_UPDATE_ROUTE"] = 12] = "STATUS_COULD_NOT_UPDATE_ROUTE";
/**
* STATUS_STUCK - [Route Error] Happens when you try to issue a navigate to while the robot is stuck. Navigate to a different
* waypoint, or clear the route and try again.
*/
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_STUCK"] = 14] = "STATUS_STUCK";
/** STATUS_UNRECOGNIZED_COMMAND - [Request Error] Happens when you try to continue a command that was either expired, or had an unrecognized id. */
NavigateToResponse_Status[NavigateToResponse_Status["STATUS_UNRECOGNIZED_COMMAND"] = 15] = "STATUS_UNRECOGNIZED_COMMAND";
NavigateToResponse_Status[NavigateToResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(NavigateToResponse_Status = exports.NavigateToResponse_Status || (exports.NavigateToResponse_Status = {}));
function navigateToResponse_StatusFromJSON(object) {
switch (object) {
case 0:
case "STATUS_UNKNOWN":
return NavigateToResponse_Status.STATUS_UNKNOWN;
case 1:
case "STATUS_OK":
return NavigateToResponse_Status.STATUS_OK;
case 2:
case "STATUS_NO_TIMESYNC":
return NavigateToResponse_Status.STATUS_NO_TIMESYNC;
case 3:
case "STATUS_EXPIRED":
return NavigateToResponse_Status.STATUS_EXPIRED;
case 4:
case "STATUS_TOO_DISTANT":
return NavigateToResponse_Status.STATUS_TOO_DISTANT;
case 5:
case "STATUS_ROBOT_IMPAIRED":
return NavigateToResponse_Status.STATUS_ROBOT_IMPAIRED;
case 6:
case "STATUS_RECORDING":
return NavigateToResponse_Status.STATUS_RECORDING;
case 7:
case "STATUS_UNKNOWN_WAYPOINT":
return NavigateToResponse_Status.STATUS_UNKNOWN_WAYPOINT;
case 8:
case "STATUS_NO_PATH":
return NavigateToResponse_Status.STATUS_NO_PATH;
case 10:
case "STATUS_FEATURE_DESERT":
return NavigateToResponse_Status.STATUS_FEATURE_DESERT;
case 11:
case "STATUS_LOST":
return NavigateToResponse_Status.STATUS_LOST;
case 13:
case "STATUS_NOT_LOCALIZED_TO_MAP":
return NavigateToResponse_Status.STATUS_NOT_LOCALIZED_TO_MAP;
case 12:
case "STATUS_COULD_NOT_UPDATE_ROUTE":
return NavigateToResponse_Status.STATUS_COULD_NOT_UPDATE_ROUTE;
case 14:
case "STATUS_STUCK":
return NavigateToResponse_Status.STATUS_STUCK;
case 15:
case "STATUS_UNRECOGNIZED_COMMAND":
return NavigateToResponse_Status.STATUS_UNRECOGNIZED_COMMAND;
case -1:
case "UNRECOGNIZED":
default:
return NavigateToResponse_Status.UNRECOGNIZED;
}
}
exports.navigateToResponse_StatusFromJSON = navigateToResponse_StatusFromJSON;
function navigateToResponse_StatusToJSON(object) {
switch (object) {
case NavigateToResponse_Status.STATUS_UNKNOWN:
return "STATUS_UNKNOWN";
case NavigateToResponse_Status.STATUS_OK:
return "STATUS_OK";
case NavigateToResponse_Status.STATUS_NO_TIMESYNC:
return "STATUS_NO_TIMESYNC";
case NavigateToResponse_Status.STATUS_EXPIRED:
return "STATUS_EXPIRED";
case NavigateToResponse_Status.STATUS_TOO_DISTANT:
return "STATUS_TOO_DISTANT";
case NavigateToResponse_Status.STATUS_ROBOT_IMPAIRED:
return "STATUS_ROBOT_IMPAIRED";
case NavigateToResponse_Status.STATUS_RECORDING:
return "STATUS_RECORDING";
case NavigateToResponse_Status.STATUS_UNKNOWN_WAYPOINT:
return "STATUS_UNKNOWN_WAYPOINT";
case NavigateToResponse_Status.STATUS_NO_PATH:
return "STATUS_NO_PATH";
case NavigateToResponse_Status.STATUS_FEATURE_DESERT:
return "STATUS_FEATURE_DESERT";
case NavigateToResponse_Status.STATUS_LOST:
return "STATUS_LOST";
case NavigateToResponse_Status.STATUS_NOT_LOCALIZED_TO_MAP:
return "STATUS_NOT_LOCALIZED_TO_MAP";
case NavigateToResponse_Status.STATUS_COULD_NOT_UPDATE_ROUTE:
return "STATUS_COULD_NOT_UPDATE_ROUTE";
case NavigateToResponse_Status.STATUS_STUCK:
return "STATUS_STUCK";
case NavigateToResponse_Status.STATUS_UNRECOGNIZED_COMMAND:
return "STATUS_UNRECOGNIZED_COMMAND";
case NavigateToResponse_Status.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.navigateToResponse_StatusToJSON = navigateToResponse_StatusToJSON;
/**
* This setting applies when a new NavigateRoute command is issued (different route or
* final-waypoint-offset), and command_id indicates a new command.
*/
var RouteFollowingParams_StartRouteBehavior;
(function (RouteFollowingParams_StartRouteBehavior) {
/** START_UNKNOWN - The mode is unset. */
RouteFollowingParams_StartRouteBehavior[RouteFollowingParams_StartRouteBehavior["START_UNKNOWN"] = 0] = "START_UNKNOWN";
/**
* START_GOTO_START - The robot will find the shortest path to the start of the route, possibly using
* edges that are not in the route. After going to the start, the robot will follow the
* route.
*/
RouteFollowingParams_StartRouteBehavior[RouteFollowingParams_StartRouteBehavior["START_GOTO_START"] = 1] = "START_GOTO_START";
/**
* START_GOTO_ROUTE - The robot will find the shortest path to any point on the route, and go to the point
* that gives that shortest path. Then, the robot will follow the rest of the route from
* that point.
* If multiple points on the route are similarly close to the robot, the robot will
* prefer the earliest on the route.
* This is the default.
*/
RouteFollowingParams_StartRouteBehavior[RouteFollowingParams_StartRouteBehavior["START_GOTO_ROUTE"] = 2] = "START_GOTO_ROUTE";
/** START_FAIL_WHEN_NOT_ON_ROUTE - The robot will fail the command with status STATUS_NOT_LOCALIZED_TO_ROUTE. */
RouteFollowingParams_StartRouteBehavior[RouteFollowingParams_StartRouteBehavior["START_FAIL_WHEN_NOT_ON_ROUTE"] = 3] = "START_FAIL_WHEN_NOT_ON_ROUTE";
RouteFollowingParams_StartRouteBehavior[RouteFollowingParams_StartRouteBehavior["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(RouteFollowingParams_StartRouteBehavior = exports.RouteFollowingParams_StartRouteBehavior || (exports.RouteFollowingParams_StartRouteBehavior = {}));
function routeFollowingParams_StartRouteBehaviorFromJSON(object) {
switch (object) {
case 0:
case "START_UNKNOWN":
return RouteFollowingParams_StartRouteBehavior.START_UNKNOWN;
case 1:
case "START_GOTO_START":
return RouteFollowingParams_StartRouteBehavior.START_GOTO_START;
case 2:
case "START_GOTO_ROUTE":
return RouteFollowingParams_StartRouteBehavior.START_GOTO_ROUTE;
case 3:
case "START_FAIL_WHEN_NOT_ON_ROUTE":
return RouteFollowingParams_StartRouteBehavior.START_FAIL_WHEN_NOT_ON_ROUTE;
case -1:
case "UNRECOGNIZED":
default:
return RouteFollowingParams_StartRouteBehavior.UNRECOGNIZED;
}
}
exports.routeFollowingParams_StartRouteBehaviorFromJSON = routeFollowingParams_StartRouteBehaviorFromJSON;
function routeFollowingParams_StartRouteBehaviorToJSON(object) {
switch (object) {
case RouteFollowingParams_StartRouteBehavior.START_UNKNOWN:
return "START_UNKNOWN";
case RouteFollowingParams_StartRouteBehavior.START_GOTO_START:
return "START_GOTO_START";
case RouteFollowingParams_StartRouteBehavior.START_GOTO_ROUTE:
return "START_GOTO_ROUTE";
case RouteFollowingParams_StartRouteBehavior.START_FAIL_WHEN_NOT_ON_ROUTE:
return "START_FAIL_WHEN_NOT_ON_ROUTE";
case RouteFollowingParams_StartRouteBehavior.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.routeFollowingParams_StartRouteBehaviorToJSON = routeFollowingParams_StartRouteBehaviorToJSON;
/**
* This setting applies when a NavigateRoute command is issued with the same route and
* final-waypoint-offset. It is not necessary that command_id indicate the same command.
* The expected waypoint is the last waypoint that GraphNav was autonomously navigating to.
*/
var RouteFollowingParams_ResumeBehavior;
(function (RouteFollowingParams_ResumeBehavior) {
/** RESUME_UNKNOWN - The mode is unset. */
RouteFollowingParams_ResumeBehavior[RouteFollowingParams_ResumeBehavior["RESUME_UNKNOWN"] = 0] = "RESUME_UNKNOWN";
/**
* RESUME_RETURN_TO_UNFINISHED_ROUTE - The robot will find the shortest path to any point on the route after the
* furthest-along traversed edge, and go to the point that gives that shortest path.
* Then, the robot will follow the rest of the route from that point.
* This is the default.
*/
RouteFollowingParams_ResumeBehavior[RouteFollowingParams_ResumeBehavior["RESUME_RETURN_TO_UNFINISHED_ROUTE"] = 1] = "RESUME_RETURN_TO_UNFINISHED_ROUTE";
/** RESUME_FAIL_WHEN_NOT_ON_ROUTE - The robot will fail the command with status STATUS_NOT_LOCALIZED_TO_ROUTE. */
RouteFollowingParams_ResumeBehavior[RouteFollowingParams_ResumeBehavior["RESUME_FAIL_WHEN_NOT_ON_ROUTE"] = 2] = "RESUME_FAIL_WHEN_NOT_ON_ROUTE";
RouteFollowingParams_ResumeBehavior[RouteFollowingParams_ResumeBehavior["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(RouteFollowingParams_ResumeBehavior = exports.RouteFollowingParams_ResumeBehavior || (exports.RouteFollowingParams_ResumeBehavior = {}));
function routeFollowingParams_ResumeBehaviorFromJSON(object) {
switch (object) {
case 0:
case "RESUME_UNKNOWN":
return RouteFollowingParams_ResumeBehavior.RESUME_UNKNOWN;
case 1:
case "RESUME_RETURN_TO_UNFINISHED_ROUTE":
return RouteFollowingParams_ResumeBehavior.RESUME_RETURN_TO_UNFINISHED_ROUTE;
case 2:
case "RESUME_FAIL_WHEN_NOT_ON_ROUTE":
return RouteFollowingParams_ResumeBehavior.RESUME_FAIL_WHEN_NOT_ON_ROUTE;
case -1:
case "UNRECOGNIZED":
default:
return RouteFollowingParams_ResumeBehavior.UNRECOGNIZED;
}
}
exports.routeFollowingParams_ResumeBehaviorFromJSON = routeFollowingParams_ResumeBehaviorFromJSON;
function routeFollowingParams_ResumeBehaviorToJSON(object) {
switch (object) {
case RouteFollowingParams_ResumeBehavior.RESUME_UNKNOWN:
return "RESUME_UNKNOWN";
case RouteFollowingParams_ResumeBehavior.RESUME_RETURN_TO_UNFINISHED_ROUTE:
return "RESUME_RETURN_TO_UNFINISHED_ROUTE";
case RouteFollowingParams_ResumeBehavior.RESUME_FAIL_WHEN_NOT_ON_ROUTE:
return "RESUME_FAIL_WHEN_NOT_ON_ROUTE";
case RouteFollowingParams_ResumeBehavior.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.routeFollowingParams_ResumeBehaviorToJSON = routeFollowingParams_ResumeBehaviorToJSON;
/** This setting applies when the robot discovers that the route is blocked. */
var RouteFollowingParams_RouteBlockedBehavior;
(function (RouteFollowingParams_RouteBlockedBehavior) {
/** ROUTE_BLOCKED_UNKNOWN - The mode is unset. */
RouteFollowingParams_RouteBlockedBehavior[RouteFollowingParams_RouteBlockedBehavior["ROUTE_BLOCKED_UNKNOWN"] = 0] = "ROUTE_BLOCKED_UNKNOWN";
/**
* ROUTE_BLOCKED_REROUTE - The robot will find the shortest path to any point after the furthest-along blockage,
* and after the furthest-along traversed edge, and go to the point that gives that
* shortest path. Then, the robot will follow the rest of the route from that point.
* If multiple points on the route are similarly close to the robot, the robot will
* prefer the earliest on the route.
* This is the default.
*/
RouteFollowingParams_RouteBlockedBehavior[RouteFollowingParams_RouteBlockedBehavior["ROUTE_BLOCKED_REROUTE"] = 1] = "ROUTE_BLOCKED_REROUTE";
/** ROUTE_BLOCKED_FAIL - The robot will fail the command with status STATUS_STUCK; */
RouteFollowingParams_RouteBlockedBehavior[RouteFollowingParams_RouteBlockedBehavior["ROUTE_BLOCKED_FAIL"] = 2] = "ROUTE_BLOCKED_FAIL";
RouteFollowingParams_RouteBlockedBehavior[RouteFollowingParams_RouteBlockedBehavior["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(RouteFollowingParams_RouteBlockedBehavior = exports.RouteFollowingParams_RouteBlockedBehavior || (exports.RouteFollowingParams_RouteBlockedBehavior = {}));
function routeFollowingParams_RouteBlockedBehaviorFromJSON(object) {
switch (object) {
case 0:
case "ROUTE_BLOCKED_UNKNOWN":
return RouteFollowingParams_RouteBlockedBehavior.ROUTE_BLOCKED_UNKNOWN;
case 1:
case "ROUTE_BLOCKED_REROUTE":
return RouteFollowingParams_RouteBlockedBehavior.ROUTE_BLOCKED_REROUTE;
case 2:
case "ROUTE_BLOCKED_FAIL":
return RouteFollowingParams_RouteBlockedBehavior.ROUTE_BLOCKED_FAIL;
case -1:
case "UNRECOGNIZED":
default:
return RouteFollowingParams_RouteBlockedBehavior.UNRECOGNIZED;
}
}
exports.routeFollowingParams_RouteBlockedBehaviorFromJSON = routeFollowingParams_RouteBlockedBehaviorFromJSON;
function routeFollowingParams_RouteBlockedBehaviorToJSON(object) {
switch (object) {
case RouteFollowingParams_RouteBlockedBehavior.ROUTE_BLOCKED_UNKNOWN:
return "ROUTE_BLOCKED_UNKNOWN";
case RouteFollowingParams_RouteBlockedBehavior.ROUTE_BLOCKED_REROUTE:
return "ROUTE_BLOCKED_REROUTE";
case RouteFollowingParams_RouteBlockedBehavior.ROUTE_BLOCKED_FAIL:
return "ROUTE_BLOCKED_FAIL";
case RouteFollowingParams_RouteBlockedBehavior.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.routeFollowingParams_RouteBlockedBehaviorToJSON = routeFollowingParams_RouteBlockedBehaviorToJSON;
var NavigateRouteResponse_Status;
(function (NavigateRouteResponse_Status) {
/** STATUS_UNKNOWN - An unknown / unexpected error occurred. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_UNKNOWN"] = 0] = "STATUS_UNKNOWN";
/** STATUS_OK - Request was accepted. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_OK"] = 1] = "STATUS_OK";
/** STATUS_NO_TIMESYNC - [Time Error] Client has not done timesync with robot. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_NO_TIMESYNC"] = 2] = "STATUS_NO_TIMESYNC";
/** STATUS_EXPIRED - [Time Error] The command was received after its end time had already passed. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_EXPIRED"] = 3] = "STATUS_EXPIRED";
/** STATUS_TOO_DISTANT - [Time Error] The command end time was too far in the future. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_TOO_DISTANT"] = 4] = "STATUS_TOO_DISTANT";
/**
* STATUS_ROBOT_IMPAIRED - [Robot State Error] Cannot navigate a route if the robot has a crtical
* perception fault, or behavior fault, or LIDAR not working.
*/
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_ROBOT_IMPAIRED"] = 5] = "STATUS_ROBOT_IMPAIRED";
/** STATUS_RECORDING - [Robot State Error] Cannot navigate a route while recording a map. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_RECORDING"] = 6] = "STATUS_RECORDING";
/** STATUS_UNKNOWN_ROUTE_ELEMENTS - [Route Error] One or more waypoints/edges are not in the map. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_UNKNOWN_ROUTE_ELEMENTS"] = 8] = "STATUS_UNKNOWN_ROUTE_ELEMENTS";
/** STATUS_INVALID_EDGE - [Route Error] One or more edges do not connect to expected waypoints. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_INVALID_EDGE"] = 9] = "STATUS_INVALID_EDGE";
/** STATUS_NO_PATH - [Route Error] There is no path to the specified route. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_NO_PATH"] = 20] = "STATUS_NO_PATH";
/** STATUS_CONSTRAINT_FAULT - [Route Error] Route contained a constraint fault. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_CONSTRAINT_FAULT"] = 11] = "STATUS_CONSTRAINT_FAULT";
/** STATUS_FEATURE_DESERT - [Route Error] Route contained too many waypoints with low-quality features. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_FEATURE_DESERT"] = 13] = "STATUS_FEATURE_DESERT";
/** STATUS_LOST - [Route Error] Happens when you try to issue a navigate route while the robot is lost. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_LOST"] = 14] = "STATUS_LOST";
/**
* STATUS_NOT_LOCALIZED_TO_ROUTE - [Route Error] Happens when the current localization doesn't refer to any waypoint
* in the route (possibly uninitialized localization).
*/
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_NOT_LOCALIZED_TO_ROUTE"] = 16] = "STATUS_NOT_LOCALIZED_TO_ROUTE";
/** STATUS_NOT_LOCALIZED_TO_MAP - [Route Error] Happens when the current localization doesn't refer to any waypoint in the map (possibly uninitialized localization). */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_NOT_LOCALIZED_TO_MAP"] = 19] = "STATUS_NOT_LOCALIZED_TO_MAP";
/** STATUS_COULD_NOT_UPDATE_ROUTE - [Wrestling Errors] Happens when graph nav refuses to follow the route you specified. Try saying please? */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_COULD_NOT_UPDATE_ROUTE"] = 15] = "STATUS_COULD_NOT_UPDATE_ROUTE";
/**
* STATUS_STUCK - [Route Error] Happens when you try to issue a navigate to while the robot is stuck. Navigate a different
* route, or clear the route and try again.
*/
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_STUCK"] = 17] = "STATUS_STUCK";
/** STATUS_UNRECOGNIZED_COMMAND - [Request Error] Happens when you try to continue a command that was either expired, or had an unrecognized id. */
NavigateRouteResponse_Status[NavigateRouteResponse_Status["STATUS_UNRECOGNIZED_COMMAND"] = 18] = "STATUS_UNRECOGNIZED_COMMAND";
NavigateRouteResponse_Status[NavigateRouteResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(NavigateRouteResponse_Status = exports.NavigateRouteResponse_Status || (exports.NavigateRouteResponse_Status = {}));
function navigateRouteResponse_StatusFromJSON(object) {
switch (object) {
case 0:
case "STATUS_UNKNOWN":
return NavigateRouteResponse_Status.STATUS_UNKNOWN;
case 1:
case "STATUS_OK":
return NavigateRouteResponse_Status.STATUS_OK;
case 2:
case "STATUS_NO_TIMESYNC":
return NavigateRouteResponse_Status.STATUS_NO_TIMESYNC;
case 3:
case "STATUS_EXPIRED":
return NavigateRouteResponse_Status.STATUS_EXPIRED;
case 4:
case "STATUS_TOO_DISTANT":
return NavigateRouteResponse_Status.STATUS_TOO_DISTANT;
case 5:
case "STATUS_ROBOT_IMPAIRED":
return NavigateRouteResponse_Status.STATUS_ROBOT_IMPAIRED;
case 6:
case "STATUS_RECORDING":
return NavigateRouteResponse_Status.STATUS_RECORDING;
case 8:
case "STATUS_UNKNOWN_ROUTE_ELEMENTS":
return NavigateRouteResponse_Status.STATUS_UNKNOWN_ROUTE_ELEMENTS;
case 9:
case "STATUS_INVALID_EDGE":
return NavigateRouteResponse_Status.STATUS_INVALID_EDGE;
case 20:
case "STATUS_NO_PATH":
return NavigateRouteResponse_Status.STATUS_NO_PATH;
case 11:
case "STATUS_CONSTRAINT_FAULT":
return NavigateRouteResponse_Status.STATUS_CONSTRAINT_FAULT;
case 13:
case "STATUS_FEATURE_DESERT":
return NavigateRouteResponse_Status.STATUS_FEATURE_DESERT;
case 14:
case "STATUS_LOST":
return NavigateRouteResponse_Status.STATUS_LOST;
case 16:
case "STATUS_NOT_LOCALIZED_TO_ROUTE":
return NavigateRouteResponse_Status.STATUS_NOT_LOCALIZED_TO_ROUTE;
case 19:
case "STATUS_NOT_LOCALIZED_TO_MAP":
return NavigateRouteResponse_Status.STATUS_NOT_LOCALIZED_TO_MAP;
case 15:
case "STATUS_COULD_NOT_UPDATE_ROUTE":
return NavigateRouteResponse_Status.STATUS_COULD_NOT_UPDATE_ROUTE;
case 17:
case "STATUS_STUCK":
return NavigateRouteResponse_Status.STATUS_STUCK;
case 18:
case "STATUS_UNRECOGNIZED_COMMAND":
return NavigateRouteResponse_Status.STATUS_UNRECOGNIZED_COMMAND;
case -1:
case "UNRECOGNIZED":
default:
return NavigateRouteResponse_Status.UNRECOGNIZED;
}
}
exports.navigateRouteResponse_StatusFromJSON = navigateRouteResponse_StatusFromJSON;
function navigateRouteResponse_StatusToJSON(object) {
switch (object) {
case NavigateRouteResponse_Status.STATUS_UNKNOWN:
return "STATUS_UNKNOWN";
case NavigateRouteResponse_Status.STATUS_OK:
return "STATUS_OK";
case NavigateRouteResponse_Status.STATUS_NO_TIMESYNC:
return "STATUS_NO_TIMESYNC";
case NavigateRouteResponse_Status.STATUS_EXPIRED:
return "STATUS_EXPIRED";
case NavigateRouteResponse_Status.STATUS_TOO_DISTANT:
return "STATUS_TOO_DISTANT";
case NavigateRouteResponse_Status.STATUS_ROBOT_IMPAIRED:
return "STATUS_ROBOT_IMPAIRED";
case NavigateRouteResponse_Status.STATUS_RECORDING:
return "STATUS_RECORDING";
case NavigateRouteResponse_Status.STATUS_UNKNOWN_ROUTE_ELEMENTS:
return "STATUS_UNKNOWN_ROUTE_ELEMENTS";
case NavigateRouteResponse_Status.STATUS_INVALID_EDGE:
return "STATUS_INVALID_EDGE";
case NavigateRouteResponse_Status.STATUS_NO_PATH:
return "STATUS_NO_PATH";
case NavigateRouteResponse_Status.STATUS_CONSTRAINT_FAULT:
return "STATUS_CONSTRAINT_FAULT";
case NavigateRouteResponse_Status.STATUS_FEATURE_DESERT:
return "STATUS_FEATURE_DESERT";
case NavigateRouteResponse_Status.STATUS_LOST:
return "STATUS_LOST";
case NavigateRouteResponse_Status.STATUS_NOT_LOCALIZED_TO_ROUTE:
return "STATUS_NOT_LOCALIZED_TO_ROUTE";
case NavigateRouteResponse_Status.STATUS_NOT_LOCALIZED_TO_MAP:
return "STATUS_NOT_LOCALIZED_TO_MAP";
case NavigateRouteResponse_Status.STATUS_COULD_NOT_UPDATE_ROUTE:
return "STATUS_COULD_NOT_UPDATE_ROUTE";
case NavigateRouteResponse_Status.STATUS_STUCK:
return "STATUS_STUCK";
case NavigateRouteResponse_Status.STATUS_UNRECOGNIZED_COMMAND:
return "STATUS_UNRECOGNIZED_COMMAND";
case NavigateRouteResponse_Status.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.navigateRouteResponse_StatusToJSON = navigateRouteResponse_StatusToJSON;
var NavigateToAnchorResponse_Status;
(function (NavigateToAnchorResponse_Status) {
/** STATUS_UNKNOWN - An unknown / unexpected error occurred. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_UNKNOWN"] = 0] = "STATUS_UNKNOWN";
/** STATUS_OK - Request was accepted. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_OK"] = 1] = "STATUS_OK";
/** STATUS_NO_TIMESYNC - [Time error] Client has not done timesync with robot. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_NO_TIMESYNC"] = 2] = "STATUS_NO_TIMESYNC";
/** STATUS_EXPIRED - [Time error] The command was received after its end time had already passed. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_EXPIRED"] = 3] = "STATUS_EXPIRED";
/** STATUS_TOO_DISTANT - [Time error]The command end time was too far in the future. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_TOO_DISTANT"] = 4] = "STATUS_TOO_DISTANT";
/**
* STATUS_ROBOT_IMPAIRED - [Robot State Error] Cannot navigate a route if the robot has a critical
* perception fault, or behavior fault, or LIDAR not working.
*/
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_ROBOT_IMPAIRED"] = 5] = "STATUS_ROBOT_IMPAIRED";
/** STATUS_RECORDING - [Robot State Error] Cannot navigate a route while recording a map. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_RECORDING"] = 6] = "STATUS_RECORDING";
/** STATUS_NO_ANCHORING - [Route Error] There is no anchoring. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_NO_ANCHORING"] = 7] = "STATUS_NO_ANCHORING";
/**
* STATUS_NO_PATH - [Route Error] There is no path to a waypoint near the specified goal.
* If any waypoints were found (but no path), the error_waypoint_ids field
* will be filled.
*/
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_NO_PATH"] = 8] = "STATUS_NO_PATH";
/** STATUS_FEATURE_DESERT - [Route Error] Route contained too many waypoints with low-quality features. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_FEATURE_DESERT"] = 10] = "STATUS_FEATURE_DESERT";
/** STATUS_LOST - [Route Error] Happens when you try to issue a navigate to while the robot is lost. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_LOST"] = 11] = "STATUS_LOST";
/** STATUS_NOT_LOCALIZED_TO_MAP - [Route Error] Happens when the current localization doesn't refer to any waypoint in the map (possibly uninitialized localization). */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_NOT_LOCALIZED_TO_MAP"] = 13] = "STATUS_NOT_LOCALIZED_TO_MAP";
/** STATUS_COULD_NOT_UPDATE_ROUTE - [Wrestling error] Happens when graph nav refuses to follow the route you specified. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_COULD_NOT_UPDATE_ROUTE"] = 12] = "STATUS_COULD_NOT_UPDATE_ROUTE";
/**
* STATUS_STUCK - [Route Error] Happens when you try to issue a navigate to while the robot is stuck. Navigate to a different
* waypoint, or clear the route and try again.
*/
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_STUCK"] = 14] = "STATUS_STUCK";
/** STATUS_UNRECOGNIZED_COMMAND - [Request Error] Happens when you try to continue a command that was either expired, or had an unrecognized id. */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_UNRECOGNIZED_COMMAND"] = 15] = "STATUS_UNRECOGNIZED_COMMAND";
/** STATUS_INVALID_POSE - [Route Error] The pose is invalid, or known to be unachievable (upside-down, etc). */
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["STATUS_INVALID_POSE"] = 16] = "STATUS_INVALID_POSE";
NavigateToAnchorResponse_Status[NavigateToAnchorResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(NavigateToAnchorResponse_Status = exports.NavigateToAnchorResponse_Status || (exports.NavigateToAnchorResponse_Status = {}));
function navigateToAnchorResponse_StatusFromJSON(object) {
switch (object) {
case 0:
case "STATUS_UNKNOWN":
return NavigateToAnchorResponse_Status.STATUS_UNKNOWN;
case 1:
case "STATUS_OK":
return NavigateToAnchorResponse_Status.STATUS_OK;
case 2:
case "STATUS_NO_TIMESYNC":
return NavigateToAnchorResponse_Status.STATUS_NO_TIMESYNC;
case 3:
case "STATUS_EXPIRED":
return NavigateToAnchorResponse_Status.STATUS_EXPIRED;
case 4:
case "STATUS_TOO_DISTANT":
return NavigateToAnchorResponse_Status.STATUS_TOO_DISTANT;
case 5:
case "STATUS_ROBOT_IMPAIRED":
return NavigateToAnchorResponse_Status.STATUS_ROBOT_IMPAIRED;
case 6:
case "STATUS_RECORDING":
return NavigateToAnchorResponse_Status.STATUS_RECORDING;
case 7:
case "STATUS_NO_ANCHORING":
return NavigateToAnchorResponse_Status.STATUS_NO_ANCHORING;
case 8:
case "STATUS_NO_PATH":
return NavigateToAnchorResponse_Status.STATUS_NO_PATH;
case 10:
case "STATUS_FEATURE_DESERT":
return NavigateToAnchorResponse_Status.STATUS_FEATURE_DESERT;
case 11:
case "STATUS_LOST":
return NavigateToAnchorResponse_Status.STATUS_LOST;
case 13:
case "STATUS_NOT_LOCALIZED_TO_MAP":
return NavigateToAnchorResponse_Status.STATUS_NOT_LOCALIZED_TO_MAP;
case 12:
case "STATUS_COULD_NOT_UPDATE_ROUTE":
return NavigateToAnchorResponse_Status.STATUS_COULD_NOT_UPDATE_ROUTE;
case 14:
case "STATUS_STUCK":
return NavigateToAnchorResponse_Status.STATUS_STUCK;
case 15:
case "STATUS_UNRECOGNIZED_COMMAND":
return NavigateToAnchorResponse_Status.STATUS_UNRECOGNIZED_COMMAND;
case 16:
case "STATUS_INVALID_POSE":
return NavigateToAnchorResponse_Status.STATUS_INVALID_POSE;
case -1:
case "UNRECOGNIZED":
default:
return NavigateToAnchorResponse_Status.UNRECOGNIZED;
}
}
exports.navigateToAnchorResponse_StatusFromJSON = navigateToAnchorResponse_StatusFromJSON;
function navigateToAnchorResponse_StatusToJSON(object) {
switch (object) {
case NavigateToAnchorResponse_Status.STATUS_UNKNOWN:
return "STATUS_UNKNOWN";
case NavigateToAnchorResponse_Status.STATUS_OK:
return "STATUS_OK";
case NavigateToAnchorResponse_Status.STATUS_NO_TIMESYNC:
return "STATUS_NO_TIMESYNC"