UNPKG

spot-sdk-js

Version:

Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.

1,282 lines (1,160 loc) 211 kB
// source: bosdyn/api/graph_nav/map_processing.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); goog.object.extend(proto, google_protobuf_wrappers_pb); var bosdyn_api_geometry_pb = require('../../../bosdyn/api/geometry_pb.js'); goog.object.extend(proto, bosdyn_api_geometry_pb); var bosdyn_api_header_pb = require('../../../bosdyn/api/header_pb.js'); goog.object.extend(proto, bosdyn_api_header_pb); var bosdyn_api_graph_nav_map_pb = require('../../../bosdyn/api/graph_nav/map_pb.js'); goog.object.extend(proto, bosdyn_api_graph_nav_map_pb); goog.exportSymbol('proto.bosdyn.api.graph_nav.AnchorHintUncertainty', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.AnchorHintUncertainty.UncertaintyCase', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.AnchoringHint', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.PoseBounds', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessAnchoringRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.MeasurementParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.OptimizerParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.Weights', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessAnchoringResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessAnchoringResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessTopologyRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessTopologyRequest.CollisionCheckingParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessTopologyResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ProcessTopologyResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.WaypointAnchorHint', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.WorldObjectAnchorHint', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessTopologyRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.displayName = 'proto.bosdyn.api.graph_nav.ProcessTopologyRequest'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.displayName = 'proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.displayName = 'proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.displayName = 'proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.CollisionCheckingParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessTopologyRequest.CollisionCheckingParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.CollisionCheckingParams.displayName = 'proto.bosdyn.api.graph_nav.ProcessTopologyRequest.CollisionCheckingParams'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params.displayName = 'proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessTopologyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.ProcessTopologyResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessTopologyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessTopologyResponse.displayName = 'proto.bosdyn.api.graph_nav.ProcessTopologyResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.PoseBounds = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.PoseBounds, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.PoseBounds.displayName = 'proto.bosdyn.api.graph_nav.PoseBounds'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.AnchorHintUncertainty = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.graph_nav.AnchorHintUncertainty.oneofGroups_); }; goog.inherits(proto.bosdyn.api.graph_nav.AnchorHintUncertainty, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.AnchorHintUncertainty.displayName = 'proto.bosdyn.api.graph_nav.AnchorHintUncertainty'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.WaypointAnchorHint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.WaypointAnchorHint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.WaypointAnchorHint.displayName = 'proto.bosdyn.api.graph_nav.WaypointAnchorHint'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.WorldObjectAnchorHint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.WorldObjectAnchorHint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.WorldObjectAnchorHint.displayName = 'proto.bosdyn.api.graph_nav.WorldObjectAnchorHint'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.AnchoringHint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.AnchoringHint.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.AnchoringHint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.AnchoringHint.displayName = 'proto.bosdyn.api.graph_nav.AnchoringHint'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessAnchoringRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.displayName = 'proto.bosdyn.api.graph_nav.ProcessAnchoringRequest'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.displayName = 'proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.OptimizerParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.OptimizerParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.OptimizerParams.displayName = 'proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.OptimizerParams'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.MeasurementParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.MeasurementParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.MeasurementParams.displayName = 'proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.MeasurementParams'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.Weights = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.Weights, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.Weights.displayName = 'proto.bosdyn.api.graph_nav.ProcessAnchoringRequest.Params.Weights'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.bosdyn.api.graph_nav.ProcessAnchoringResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.ProcessAnchoringResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ProcessAnchoringResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ProcessAnchoringResponse.displayName = 'proto.bosdyn.api.graph_nav.ProcessAnchoringResponse'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.ProcessTopologyRequest.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.toObject = function(includeInstance, msg) { var f, obj = { header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f), params: (f = msg.getParams()) && proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params.toObject(includeInstance, f), modifyMapOnServer: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.ProcessTopologyRequest; return proto.bosdyn.api.graph_nav.ProcessTopologyRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new bosdyn_api_header_pb.RequestHeader; reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader); msg.setHeader(value); break; case 2: var value = new proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params; reader.readMessage(value,proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params.deserializeBinaryFromReader); msg.setParams(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setModifyMapOnServer(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.ProcessTopologyRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeader(); if (f != null) { writer.writeMessage( 1, f, bosdyn_api_header_pb.RequestHeader.serializeBinaryToWriter ); } f = message.getParams(); if (f != null) { writer.writeMessage( 2, f, proto.bosdyn.api.graph_nav.ProcessTopologyRequest.Params.serializeBinaryToWriter ); } f = message.getModifyMapOnServer(); if (f) { writer.writeBool( 3, f ); } }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.toObject = function(includeInstance, msg) { var f, obj = { icpIters: (f = msg.getIcpIters()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f), maxPointMatchDistance: (f = msg.getMaxPointMatchDistance()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams; return proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_wrappers_pb.Int32Value; reader.readMessage(value,google_protobuf_wrappers_pb.Int32Value.deserializeBinaryFromReader); msg.setIcpIters(value); break; case 2: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMaxPointMatchDistance(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getIcpIters(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_wrappers_pb.Int32Value.serializeBinaryToWriter ); } f = message.getMaxPointMatchDistance(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } }; /** * optional google.protobuf.Int32Value icp_iters = 1; * @return {?proto.google.protobuf.Int32Value} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.getIcpIters = function() { return /** @type{?proto.google.protobuf.Int32Value} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int32Value, 1)); }; /** * @param {?proto.google.protobuf.Int32Value|undefined} value * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.setIcpIters = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.clearIcpIters = function() { return this.setIcpIters(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.hasIcpIters = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional google.protobuf.DoubleValue max_point_match_distance = 2; * @return {?proto.google.protobuf.DoubleValue} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.getMaxPointMatchDistance = function() { return /** @type{?proto.google.protobuf.DoubleValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.DoubleValue, 2)); }; /** * @param {?proto.google.protobuf.DoubleValue|undefined} value * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.setMaxPointMatchDistance = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.clearMaxPointMatchDistance = function() { return this.setMaxPointMatchDistance(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.ICPParams.prototype.hasMaxPointMatchDistance = function() { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.toObject = function(includeInstance, msg) { var f, obj = { maxLoopClosurePathLength: (f = msg.getMaxLoopClosurePathLength()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f), minLoopClosurePathLength: (f = msg.getMinLoopClosurePathLength()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f), maxLoopClosureHeightChange: (f = msg.getMaxLoopClosureHeightChange()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f), maxLoopClosureEdgeLength: (f = msg.getMaxLoopClosureEdgeLength()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f), numExtraLoopClosureIterations: (f = msg.getNumExtraLoopClosureIterations()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams; return proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMaxLoopClosurePathLength(value); break; case 2: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMinLoopClosurePathLength(value); break; case 3: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMaxLoopClosureHeightChange(value); break; case 4: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMaxLoopClosureEdgeLength(value); break; case 5: var value = new google_protobuf_wrappers_pb.Int32Value; reader.readMessage(value,google_protobuf_wrappers_pb.Int32Value.deserializeBinaryFromReader); msg.setNumExtraLoopClosureIterations(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMaxLoopClosurePathLength(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } f = message.getMinLoopClosurePathLength(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } f = message.getMaxLoopClosureHeightChange(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } f = message.getMaxLoopClosureEdgeLength(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } f = message.getNumExtraLoopClosureIterations(); if (f != null) { writer.writeMessage( 5, f, google_protobuf_wrappers_pb.Int32Value.serializeBinaryToWriter ); } }; /** * optional google.protobuf.DoubleValue max_loop_closure_path_length = 1; * @return {?proto.google.protobuf.DoubleValue} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.getMaxLoopClosurePathLength = function() { return /** @type{?proto.google.protobuf.DoubleValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.DoubleValue, 1)); }; /** * @param {?proto.google.protobuf.DoubleValue|undefined} value * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.setMaxLoopClosurePathLength = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.clearMaxLoopClosurePathLength = function() { return this.setMaxLoopClosurePathLength(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.hasMaxLoopClosurePathLength = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional google.protobuf.DoubleValue min_loop_closure_path_length = 2; * @return {?proto.google.protobuf.DoubleValue} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.getMinLoopClosurePathLength = function() { return /** @type{?proto.google.protobuf.DoubleValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.DoubleValue, 2)); }; /** * @param {?proto.google.protobuf.DoubleValue|undefined} value * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.setMinLoopClosurePathLength = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.clearMinLoopClosurePathLength = function() { return this.setMinLoopClosurePathLength(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.hasMinLoopClosurePathLength = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.protobuf.DoubleValue max_loop_closure_height_change = 3; * @return {?proto.google.protobuf.DoubleValue} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.getMaxLoopClosureHeightChange = function() { return /** @type{?proto.google.protobuf.DoubleValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.DoubleValue, 3)); }; /** * @param {?proto.google.protobuf.DoubleValue|undefined} value * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.setMaxLoopClosureHeightChange = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.clearMaxLoopClosureHeightChange = function() { return this.setMaxLoopClosureHeightChange(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.hasMaxLoopClosureHeightChange = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional google.protobuf.DoubleValue max_loop_closure_edge_length = 4; * @return {?proto.google.protobuf.DoubleValue} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.getMaxLoopClosureEdgeLength = function() { return /** @type{?proto.google.protobuf.DoubleValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.DoubleValue, 4)); }; /** * @param {?proto.google.protobuf.DoubleValue|undefined} value * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.setMaxLoopClosureEdgeLength = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.clearMaxLoopClosureEdgeLength = function() { return this.setMaxLoopClosureEdgeLength(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.hasMaxLoopClosureEdgeLength = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional google.protobuf.Int32Value num_extra_loop_closure_iterations = 5; * @return {?proto.google.protobuf.Int32Value} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.getNumExtraLoopClosureIterations = function() { return /** @type{?proto.google.protobuf.Int32Value} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int32Value, 5)); }; /** * @param {?proto.google.protobuf.Int32Value|undefined} value * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.setNumExtraLoopClosureIterations = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams} returns this */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.clearNumExtraLoopClosureIterations = function() { return this.setNumExtraLoopClosureIterations(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.OdometryLoopClosureParams.prototype.hasNumExtraLoopClosureIterations = function() { return jspb.Message.getField(this, 5) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.toObject = function(includeInstance, msg) { var f, obj = { minLoopClosurePathLength: (f = msg.getMinLoopClosurePathLength()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f), maxLoopClosureEdgeLength: (f = msg.getMaxLoopClosureEdgeLength()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f), maxFiducialDistance: (f = msg.getMaxFiducialDistance()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f), maxLoopClosureHeightChange: (f = msg.getMaxLoopClosureHeightChange()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams; return proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMinLoopClosurePathLength(value); break; case 2: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMaxLoopClosureEdgeLength(value); break; case 3: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMaxFiducialDistance(value); break; case 4: var value = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setMaxLoopClosureHeightChange(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMinLoopClosurePathLength(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } f = message.getMaxLoopClosureEdgeLength(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } f = message.getMaxFiducialDistance(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } f = message.getMaxLoopClosureHeightChange(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter ); } }; /** * optional google.protobuf.DoubleValue min_loop_closure_path_length = 1; * @return {?proto.google.protobuf.DoubleValue} */ proto.bosdyn.api.graph_nav.ProcessTopologyRequest.FiducialLoopClosureParams.prototype.getMinLoopClosurePathLength = function(