spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
1,499 lines (1,332 loc) • 164 kB
JavaScript
// source: bosdyn/api/manipulation_api.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 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_image_pb = require('../../bosdyn/api/image_pb.js');
goog.object.extend(proto, bosdyn_api_image_pb);
var bosdyn_api_lease_pb = require('../../bosdyn/api/lease_pb.js');
goog.object.extend(proto, bosdyn_api_lease_pb);
var bosdyn_api_robot_state_pb = require('../../bosdyn/api/robot_state_pb.js');
goog.object.extend(proto, bosdyn_api_robot_state_pb);
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
goog.object.extend(proto, google_protobuf_wrappers_pb);
goog.exportSymbol('proto.bosdyn.api.AllowableOrientation', null, global);
goog.exportSymbol('proto.bosdyn.api.AllowableOrientation.ConstraintCase', null, global);
goog.exportSymbol('proto.bosdyn.api.ApiGraspOverride', null, global);
goog.exportSymbol('proto.bosdyn.api.ApiGraspOverride.Override', null, global);
goog.exportSymbol('proto.bosdyn.api.ApiGraspOverrideRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ApiGraspOverrideResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.ApiGraspedCarryStateOverride', null, global);
goog.exportSymbol('proto.bosdyn.api.GraspParams', null, global);
goog.exportSymbol('proto.bosdyn.api.GraspPositionConstraint', null, global);
goog.exportSymbol('proto.bosdyn.api.ManipulationApiFeedbackRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ManipulationApiFeedbackResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.ManipulationApiRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ManipulationApiRequest.ManipulationCmdCase', null, global);
goog.exportSymbol('proto.bosdyn.api.ManipulationApiResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.ManipulationCameraSource', null, global);
goog.exportSymbol('proto.bosdyn.api.ManipulationFeedbackState', null, global);
goog.exportSymbol('proto.bosdyn.api.PickObject', null, global);
goog.exportSymbol('proto.bosdyn.api.PickObjectExecutePlan', null, global);
goog.exportSymbol('proto.bosdyn.api.PickObjectInImage', null, global);
goog.exportSymbol('proto.bosdyn.api.PickObjectRayInWorld', null, global);
goog.exportSymbol('proto.bosdyn.api.RotationWithTolerance', null, global);
goog.exportSymbol('proto.bosdyn.api.SqueezeGrasp', null, global);
goog.exportSymbol('proto.bosdyn.api.VectorAlignmentWithTolerance', null, global);
goog.exportSymbol('proto.bosdyn.api.WalkGazeMode', null, global);
goog.exportSymbol('proto.bosdyn.api.WalkToObjectInImage', null, global);
goog.exportSymbol('proto.bosdyn.api.WalkToObjectRayInWorld', 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.WalkToObjectRayInWorld = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.WalkToObjectRayInWorld, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.WalkToObjectRayInWorld.displayName = 'proto.bosdyn.api.WalkToObjectRayInWorld';
}
/**
* 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.WalkToObjectInImage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.WalkToObjectInImage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.WalkToObjectInImage.displayName = 'proto.bosdyn.api.WalkToObjectInImage';
}
/**
* 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.PickObjectRayInWorld = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.PickObjectRayInWorld, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.PickObjectRayInWorld.displayName = 'proto.bosdyn.api.PickObjectRayInWorld';
}
/**
* 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.PickObjectExecutePlan = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.PickObjectExecutePlan, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.PickObjectExecutePlan.displayName = 'proto.bosdyn.api.PickObjectExecutePlan';
}
/**
* 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.PickObject = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.PickObject, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.PickObject.displayName = 'proto.bosdyn.api.PickObject';
}
/**
* 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.PickObjectInImage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.PickObjectInImage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.PickObjectInImage.displayName = 'proto.bosdyn.api.PickObjectInImage';
}
/**
* 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.GraspParams = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.GraspParams.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.GraspParams, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GraspParams.displayName = 'proto.bosdyn.api.GraspParams';
}
/**
* 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.AllowableOrientation = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.AllowableOrientation.oneofGroups_);
};
goog.inherits(proto.bosdyn.api.AllowableOrientation, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.AllowableOrientation.displayName = 'proto.bosdyn.api.AllowableOrientation';
}
/**
* 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.RotationWithTolerance = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.RotationWithTolerance, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.RotationWithTolerance.displayName = 'proto.bosdyn.api.RotationWithTolerance';
}
/**
* 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.VectorAlignmentWithTolerance = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.VectorAlignmentWithTolerance, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.VectorAlignmentWithTolerance.displayName = 'proto.bosdyn.api.VectorAlignmentWithTolerance';
}
/**
* 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.SqueezeGrasp = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.SqueezeGrasp, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.SqueezeGrasp.displayName = 'proto.bosdyn.api.SqueezeGrasp';
}
/**
* 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.ManipulationApiFeedbackRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ManipulationApiFeedbackRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ManipulationApiFeedbackRequest.displayName = 'proto.bosdyn.api.ManipulationApiFeedbackRequest';
}
/**
* 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.ManipulationApiFeedbackResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ManipulationApiFeedbackResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ManipulationApiFeedbackResponse.displayName = 'proto.bosdyn.api.ManipulationApiFeedbackResponse';
}
/**
* 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.ManipulationApiResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ManipulationApiResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ManipulationApiResponse.displayName = 'proto.bosdyn.api.ManipulationApiResponse';
}
/**
* 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.ManipulationApiRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.ManipulationApiRequest.oneofGroups_);
};
goog.inherits(proto.bosdyn.api.ManipulationApiRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ManipulationApiRequest.displayName = 'proto.bosdyn.api.ManipulationApiRequest';
}
/**
* 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.ApiGraspOverride = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ApiGraspOverride, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ApiGraspOverride.displayName = 'proto.bosdyn.api.ApiGraspOverride';
}
/**
* 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.ApiGraspedCarryStateOverride = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ApiGraspedCarryStateOverride, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ApiGraspedCarryStateOverride.displayName = 'proto.bosdyn.api.ApiGraspedCarryStateOverride';
}
/**
* 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.ApiGraspOverrideRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ApiGraspOverrideRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ApiGraspOverrideRequest.displayName = 'proto.bosdyn.api.ApiGraspOverrideRequest';
}
/**
* 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.ApiGraspOverrideResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ApiGraspOverrideResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ApiGraspOverrideResponse.displayName = 'proto.bosdyn.api.ApiGraspOverrideResponse';
}
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.WalkToObjectRayInWorld.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.WalkToObjectRayInWorld.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.WalkToObjectRayInWorld} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.WalkToObjectRayInWorld.toObject = function(includeInstance, msg) {
var f, obj = {
rayStartRtFrame: (f = msg.getRayStartRtFrame()) && bosdyn_api_geometry_pb.Vec3.toObject(includeInstance, f),
rayEndRtFrame: (f = msg.getRayEndRtFrame()) && bosdyn_api_geometry_pb.Vec3.toObject(includeInstance, f),
frameName: jspb.Message.getFieldWithDefault(msg, 3, ""),
offsetDistance: (f = msg.getOffsetDistance()) && google_protobuf_wrappers_pb.FloatValue.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.WalkToObjectRayInWorld}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.WalkToObjectRayInWorld;
return proto.bosdyn.api.WalkToObjectRayInWorld.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.WalkToObjectRayInWorld} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.WalkToObjectRayInWorld}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_geometry_pb.Vec3;
reader.readMessage(value,bosdyn_api_geometry_pb.Vec3.deserializeBinaryFromReader);
msg.setRayStartRtFrame(value);
break;
case 2:
var value = new bosdyn_api_geometry_pb.Vec3;
reader.readMessage(value,bosdyn_api_geometry_pb.Vec3.deserializeBinaryFromReader);
msg.setRayEndRtFrame(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setFrameName(value);
break;
case 4:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setOffsetDistance(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.WalkToObjectRayInWorld.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.WalkToObjectRayInWorld} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.WalkToObjectRayInWorld.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getRayStartRtFrame();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_geometry_pb.Vec3.serializeBinaryToWriter
);
}
f = message.getRayEndRtFrame();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_geometry_pb.Vec3.serializeBinaryToWriter
);
}
f = message.getFrameName();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getOffsetDistance();
if (f != null) {
writer.writeMessage(
4,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
};
/**
* optional Vec3 ray_start_rt_frame = 1;
* @return {?proto.bosdyn.api.Vec3}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.getRayStartRtFrame = function() {
return /** @type{?proto.bosdyn.api.Vec3} */ (
jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.Vec3, 1));
};
/**
* @param {?proto.bosdyn.api.Vec3|undefined} value
* @return {!proto.bosdyn.api.WalkToObjectRayInWorld} returns this
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.setRayStartRtFrame = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WalkToObjectRayInWorld} returns this
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.clearRayStartRtFrame = function() {
return this.setRayStartRtFrame(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.hasRayStartRtFrame = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Vec3 ray_end_rt_frame = 2;
* @return {?proto.bosdyn.api.Vec3}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.getRayEndRtFrame = function() {
return /** @type{?proto.bosdyn.api.Vec3} */ (
jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.Vec3, 2));
};
/**
* @param {?proto.bosdyn.api.Vec3|undefined} value
* @return {!proto.bosdyn.api.WalkToObjectRayInWorld} returns this
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.setRayEndRtFrame = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WalkToObjectRayInWorld} returns this
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.clearRayEndRtFrame = function() {
return this.setRayEndRtFrame(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.hasRayEndRtFrame = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string frame_name = 3;
* @return {string}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.getFrameName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.WalkToObjectRayInWorld} returns this
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.setFrameName = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional google.protobuf.FloatValue offset_distance = 4;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.getOffsetDistance = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 4));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.WalkToObjectRayInWorld} returns this
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.setOffsetDistance = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WalkToObjectRayInWorld} returns this
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.clearOffsetDistance = function() {
return this.setOffsetDistance(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WalkToObjectRayInWorld.prototype.hasOffsetDistance = function() {
return jspb.Message.getField(this, 4) != 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.WalkToObjectInImage.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.WalkToObjectInImage.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.WalkToObjectInImage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.WalkToObjectInImage.toObject = function(includeInstance, msg) {
var f, obj = {
pixelXy: (f = msg.getPixelXy()) && bosdyn_api_geometry_pb.Vec2.toObject(includeInstance, f),
transformsSnapshotForCamera: (f = msg.getTransformsSnapshotForCamera()) && bosdyn_api_geometry_pb.FrameTreeSnapshot.toObject(includeInstance, f),
frameNameImageSensor: jspb.Message.getFieldWithDefault(msg, 3, ""),
cameraModel: (f = msg.getCameraModel()) && bosdyn_api_image_pb.ImageSource.PinholeModel.toObject(includeInstance, f),
offsetDistance: (f = msg.getOffsetDistance()) && google_protobuf_wrappers_pb.FloatValue.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.WalkToObjectInImage}
*/
proto.bosdyn.api.WalkToObjectInImage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.WalkToObjectInImage;
return proto.bosdyn.api.WalkToObjectInImage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.WalkToObjectInImage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.WalkToObjectInImage}
*/
proto.bosdyn.api.WalkToObjectInImage.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_geometry_pb.Vec2;
reader.readMessage(value,bosdyn_api_geometry_pb.Vec2.deserializeBinaryFromReader);
msg.setPixelXy(value);
break;
case 2:
var value = new bosdyn_api_geometry_pb.FrameTreeSnapshot;
reader.readMessage(value,bosdyn_api_geometry_pb.FrameTreeSnapshot.deserializeBinaryFromReader);
msg.setTransformsSnapshotForCamera(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setFrameNameImageSensor(value);
break;
case 4:
var value = new bosdyn_api_image_pb.ImageSource.PinholeModel;
reader.readMessage(value,bosdyn_api_image_pb.ImageSource.PinholeModel.deserializeBinaryFromReader);
msg.setCameraModel(value);
break;
case 5:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setOffsetDistance(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.WalkToObjectInImage.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.WalkToObjectInImage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.WalkToObjectInImage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPixelXy();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_geometry_pb.Vec2.serializeBinaryToWriter
);
}
f = message.getTransformsSnapshotForCamera();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_geometry_pb.FrameTreeSnapshot.serializeBinaryToWriter
);
}
f = message.getFrameNameImageSensor();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getCameraModel();
if (f != null) {
writer.writeMessage(
4,
f,
bosdyn_api_image_pb.ImageSource.PinholeModel.serializeBinaryToWriter
);
}
f = message.getOffsetDistance();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
};
/**
* optional Vec2 pixel_xy = 1;
* @return {?proto.bosdyn.api.Vec2}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.getPixelXy = function() {
return /** @type{?proto.bosdyn.api.Vec2} */ (
jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.Vec2, 1));
};
/**
* @param {?proto.bosdyn.api.Vec2|undefined} value
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.setPixelXy = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.clearPixelXy = function() {
return this.setPixelXy(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.hasPixelXy = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional FrameTreeSnapshot transforms_snapshot_for_camera = 2;
* @return {?proto.bosdyn.api.FrameTreeSnapshot}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.getTransformsSnapshotForCamera = function() {
return /** @type{?proto.bosdyn.api.FrameTreeSnapshot} */ (
jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.FrameTreeSnapshot, 2));
};
/**
* @param {?proto.bosdyn.api.FrameTreeSnapshot|undefined} value
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.setTransformsSnapshotForCamera = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.clearTransformsSnapshotForCamera = function() {
return this.setTransformsSnapshotForCamera(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.hasTransformsSnapshotForCamera = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string frame_name_image_sensor = 3;
* @return {string}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.getFrameNameImageSensor = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.setFrameNameImageSensor = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional ImageSource.PinholeModel camera_model = 4;
* @return {?proto.bosdyn.api.ImageSource.PinholeModel}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.getCameraModel = function() {
return /** @type{?proto.bosdyn.api.ImageSource.PinholeModel} */ (
jspb.Message.getWrapperField(this, bosdyn_api_image_pb.ImageSource.PinholeModel, 4));
};
/**
* @param {?proto.bosdyn.api.ImageSource.PinholeModel|undefined} value
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.setCameraModel = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.clearCameraModel = function() {
return this.setCameraModel(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.hasCameraModel = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional google.protobuf.FloatValue offset_distance = 5;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.getOffsetDistance = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 5));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.setOffsetDistance = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WalkToObjectInImage} returns this
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.clearOffsetDistance = function() {
return this.setOffsetDistance(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WalkToObjectInImage.prototype.hasOffsetDistance = 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.PickObjectRayInWorld.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.PickObjectRayInWorld.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.PickObjectRayInWorld} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.PickObjectRayInWorld.toObject = function(includeInstance, msg) {
var f, obj = {
rayStartRtFrame: (f = msg.getRayStartRtFrame()) && bosdyn_api_geometry_pb.Vec3.toObject(includeInstance, f),
rayEndRtFrame: (f = msg.getRayEndRtFrame()) && bosdyn_api_geometry_pb.Vec3.toObject(includeInstance, f),
frameName: jspb.Message.getFieldWithDefault(msg, 6, ""),
graspParams: (f = msg.getGraspParams()) && proto.bosdyn.api.GraspParams.toObject(includeInstance, f),
walkGazeMode: jspb.Message.getFieldWithDefault(msg, 4, 0)
};
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.PickObjectRayInWorld}
*/
proto.bosdyn.api.PickObjectRayInWorld.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.PickObjectRayInWorld;
return proto.bosdyn.api.PickObjectRayInWorld.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.PickObjectRayInWorld} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.PickObjectRayInWorld}
*/
proto.bosdyn.api.PickObjectRayInWorld.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_geometry_pb.Vec3;
reader.readMessage(value,bosdyn_api_geometry_pb.Vec3.deserializeBinaryFromReader);
msg.setRayStartRtFrame(value);
break;
case 2:
var value = new bosdyn_api_geometry_pb.Vec3;
reader.readMessage(value,bosdyn_api_geometry_pb.Vec3.deserializeBinaryFromReader);
msg.setRayEndRtFrame(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setFrameName(value);
break;
case 10:
var value = new proto.bosdyn.api.GraspParams;
reader.readMessage(value,proto.bosdyn.api.GraspParams.deserializeBinaryFromReader);
msg.setGraspParams(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.WalkGazeMode} */ (reader.readEnum());
msg.setWalkGazeMode(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.PickObjectRayInWorld.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.PickObjectRayInWorld} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.PickObjectRayInWorld.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getRayStartRtFrame();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_geometry_pb.Vec3.serializeBinaryToWriter
);
}
f = message.getRayEndRtFrame();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_geometry_pb.Vec3.serializeBinaryToWriter
);
}
f = message.getFrameName();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getGraspParams();
if (f != null) {
writer.writeMessage(
10,
f,
proto.bosdyn.api.GraspParams.serializeBinaryToWriter
);
}
f = message.getWalkGazeMode();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* optional Vec3 ray_start_rt_frame = 1;
* @return {?proto.bosdyn.api.Vec3}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.getRayStartRtFrame = function() {
return /** @type{?proto.bosdyn.api.Vec3} */ (
jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.Vec3, 1));
};
/**
* @param {?proto.bosdyn.api.Vec3|undefined} value
* @return {!proto.bosdyn.api.PickObjectRayInWorld} returns this
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.setRayStartRtFrame = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.PickObjectRayInWorld} returns this
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.clearRayStartRtFrame = function() {
return this.setRayStartRtFrame(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.hasRayStartRtFrame = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Vec3 ray_end_rt_frame = 2;
* @return {?proto.bosdyn.api.Vec3}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.getRayEndRtFrame = function() {
return /** @type{?proto.bosdyn.api.Vec3} */ (
jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.Vec3, 2));
};
/**
* @param {?proto.bosdyn.api.Vec3|undefined} value
* @return {!proto.bosdyn.api.PickObjectRayInWorld} returns this
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.setRayEndRtFrame = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.PickObjectRayInWorld} returns this
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.clearRayEndRtFrame = function() {
return this.setRayEndRtFrame(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.hasRayEndRtFrame = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string frame_name = 6;
* @return {string}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.getFrameName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.PickObjectRayInWorld} returns this
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.setFrameName = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional GraspParams grasp_params = 10;
* @return {?proto.bosdyn.api.GraspParams}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.getGraspParams = function() {
return /** @type{?proto.bosdyn.api.GraspParams} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.GraspParams, 10));
};
/**
* @param {?proto.bosdyn.api.GraspParams|undefined} value
* @return {!proto.bosdyn.api.PickObjectRayInWorld} returns this
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.setGraspParams = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.PickObjectRayInWorld} returns this
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.clearGraspParams = function() {
return this.setGraspParams(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.hasGraspParams = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional WalkGazeMode walk_gaze_mode = 4;
* @return {!proto.bosdyn.api.WalkGazeMode}
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.getWalkGazeMode = function() {
return /** @type {!proto.bosdyn.api.WalkGazeMode} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.WalkGazeMode} value
* @return {!proto.bosdyn.api.PickObjectRayInWorld} returns this
*/
proto.bosdyn.api.PickObjectRayInWorld.prototype.setWalkGazeMode = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
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.PickObjectExecutePlan.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.PickObjectExecutePlan.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.PickObjectExecutePlan} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.PickObjectExecutePlan.toObject = function(includeInstance, msg) {
var f, obj = {
};
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.PickObjectExecutePlan}
*/
proto.bosdyn.api.PickObjectExecutePlan.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.PickObjectExecutePlan;
return proto.bosdyn.api.PickObjectExecutePlan.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.PickObjectExecutePlan} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.PickObjectExecutePlan}
*/
proto.bosdyn.api.PickObjectExecutePlan.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.PickObjectExecutePlan.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.PickObjectExecutePlan.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.PickObjectExecutePlan} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.PickObjectExecutePlan.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
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: