UNPKG

spot-sdk-js

Version:

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

1,363 lines (1,253 loc) 253 kB
// source: bosdyn/api/arm_command.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_basic_command_pb = require('../../bosdyn/api/basic_command_pb.js'); goog.object.extend(proto, bosdyn_api_basic_command_pb); var bosdyn_api_geometry_pb = require('../../bosdyn/api/geometry_pb.js'); goog.object.extend(proto, bosdyn_api_geometry_pb); var bosdyn_api_trajectory_pb = require('../../bosdyn/api/trajectory_pb.js'); goog.object.extend(proto, bosdyn_api_trajectory_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); goog.object.extend(proto, google_protobuf_wrappers_pb); var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); goog.object.extend(proto, google_protobuf_duration_pb); goog.exportSymbol('proto.bosdyn.api.ArmCartesianCommand', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCartesianCommand.Feedback', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCartesianCommand.Feedback.Status', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCartesianCommand.Request', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCartesianCommand.Request.AxisMode', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCartesianCommand.Request.JointConfigurationCase', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCommand', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCommand.Feedback', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCommand.Feedback.FeedbackCase', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCommand.Request', null, global); goog.exportSymbol('proto.bosdyn.api.ArmCommand.Request.CommandCase', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointMoveCommand', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointMoveCommand.Feedback', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointMoveCommand.Feedback.PlannerStatus', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointMoveCommand.Feedback.Status', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointMoveCommand.Request', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointPosition', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointTrajectory', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointTrajectoryPoint', null, global); goog.exportSymbol('proto.bosdyn.api.ArmJointVelocity', null, global); goog.exportSymbol('proto.bosdyn.api.ArmParams', null, global); goog.exportSymbol('proto.bosdyn.api.ArmStopCommand', null, global); goog.exportSymbol('proto.bosdyn.api.ArmStopCommand.Feedback', null, global); goog.exportSymbol('proto.bosdyn.api.ArmStopCommand.Request', null, global); goog.exportSymbol('proto.bosdyn.api.ArmVelocityCommand', null, global); goog.exportSymbol('proto.bosdyn.api.ArmVelocityCommand.CartesianVelocity', null, global); goog.exportSymbol('proto.bosdyn.api.ArmVelocityCommand.CylindricalVelocity', null, global); goog.exportSymbol('proto.bosdyn.api.ArmVelocityCommand.Feedback', null, global); goog.exportSymbol('proto.bosdyn.api.ArmVelocityCommand.Request', null, global); goog.exportSymbol('proto.bosdyn.api.ArmVelocityCommand.Request.CommandCase', null, global); goog.exportSymbol('proto.bosdyn.api.GazeCommand', null, global); goog.exportSymbol('proto.bosdyn.api.GazeCommand.Feedback', null, global); goog.exportSymbol('proto.bosdyn.api.GazeCommand.Feedback.Status', null, global); goog.exportSymbol('proto.bosdyn.api.GazeCommand.Request', null, global); goog.exportSymbol('proto.bosdyn.api.NamedArmPositionsCommand', null, global); goog.exportSymbol('proto.bosdyn.api.NamedArmPositionsCommand.Feedback', null, global); goog.exportSymbol('proto.bosdyn.api.NamedArmPositionsCommand.Feedback.Status', null, global); goog.exportSymbol('proto.bosdyn.api.NamedArmPositionsCommand.Positions', null, global); goog.exportSymbol('proto.bosdyn.api.NamedArmPositionsCommand.Request', 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.ArmCommand = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmCommand, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmCommand.displayName = 'proto.bosdyn.api.ArmCommand'; } /** * 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.ArmCommand.Request = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.ArmCommand.Request.oneofGroups_); }; goog.inherits(proto.bosdyn.api.ArmCommand.Request, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmCommand.Request.displayName = 'proto.bosdyn.api.ArmCommand.Request'; } /** * 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.ArmCommand.Feedback = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.ArmCommand.Feedback.oneofGroups_); }; goog.inherits(proto.bosdyn.api.ArmCommand.Feedback, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmCommand.Feedback.displayName = 'proto.bosdyn.api.ArmCommand.Feedback'; } /** * 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.ArmParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmParams.displayName = 'proto.bosdyn.api.ArmParams'; } /** * 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.ArmVelocityCommand = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmVelocityCommand, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmVelocityCommand.displayName = 'proto.bosdyn.api.ArmVelocityCommand'; } /** * 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.ArmVelocityCommand.CylindricalVelocity = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmVelocityCommand.CylindricalVelocity, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmVelocityCommand.CylindricalVelocity.displayName = 'proto.bosdyn.api.ArmVelocityCommand.CylindricalVelocity'; } /** * 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.ArmVelocityCommand.CartesianVelocity = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmVelocityCommand.CartesianVelocity, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmVelocityCommand.CartesianVelocity.displayName = 'proto.bosdyn.api.ArmVelocityCommand.CartesianVelocity'; } /** * 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.ArmVelocityCommand.Request = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.ArmVelocityCommand.Request.oneofGroups_); }; goog.inherits(proto.bosdyn.api.ArmVelocityCommand.Request, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmVelocityCommand.Request.displayName = 'proto.bosdyn.api.ArmVelocityCommand.Request'; } /** * 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.ArmVelocityCommand.Feedback = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmVelocityCommand.Feedback, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmVelocityCommand.Feedback.displayName = 'proto.bosdyn.api.ArmVelocityCommand.Feedback'; } /** * 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.NamedArmPositionsCommand = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.NamedArmPositionsCommand, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.NamedArmPositionsCommand.displayName = 'proto.bosdyn.api.NamedArmPositionsCommand'; } /** * 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.NamedArmPositionsCommand.Request = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.NamedArmPositionsCommand.Request, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.NamedArmPositionsCommand.Request.displayName = 'proto.bosdyn.api.NamedArmPositionsCommand.Request'; } /** * 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.NamedArmPositionsCommand.Feedback = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.NamedArmPositionsCommand.Feedback, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.NamedArmPositionsCommand.Feedback.displayName = 'proto.bosdyn.api.NamedArmPositionsCommand.Feedback'; } /** * 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.ArmCartesianCommand = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmCartesianCommand, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmCartesianCommand.displayName = 'proto.bosdyn.api.ArmCartesianCommand'; } /** * 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.ArmCartesianCommand.Request = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.ArmCartesianCommand.Request.oneofGroups_); }; goog.inherits(proto.bosdyn.api.ArmCartesianCommand.Request, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmCartesianCommand.Request.displayName = 'proto.bosdyn.api.ArmCartesianCommand.Request'; } /** * 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.ArmCartesianCommand.Feedback = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmCartesianCommand.Feedback, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmCartesianCommand.Feedback.displayName = 'proto.bosdyn.api.ArmCartesianCommand.Feedback'; } /** * 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.ArmJointMoveCommand = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmJointMoveCommand, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmJointMoveCommand.displayName = 'proto.bosdyn.api.ArmJointMoveCommand'; } /** * 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.ArmJointMoveCommand.Request = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmJointMoveCommand.Request, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmJointMoveCommand.Request.displayName = 'proto.bosdyn.api.ArmJointMoveCommand.Request'; } /** * 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.ArmJointMoveCommand.Feedback = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ArmJointMoveCommand.Feedback.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.ArmJointMoveCommand.Feedback, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmJointMoveCommand.Feedback.displayName = 'proto.bosdyn.api.ArmJointMoveCommand.Feedback'; } /** * 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.ArmJointPosition = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmJointPosition, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmJointPosition.displayName = 'proto.bosdyn.api.ArmJointPosition'; } /** * 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.ArmJointVelocity = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmJointVelocity, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmJointVelocity.displayName = 'proto.bosdyn.api.ArmJointVelocity'; } /** * 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.ArmJointTrajectoryPoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmJointTrajectoryPoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmJointTrajectoryPoint.displayName = 'proto.bosdyn.api.ArmJointTrajectoryPoint'; } /** * 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.ArmJointTrajectory = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ArmJointTrajectory.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.ArmJointTrajectory, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmJointTrajectory.displayName = 'proto.bosdyn.api.ArmJointTrajectory'; } /** * 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.GazeCommand = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.GazeCommand, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.GazeCommand.displayName = 'proto.bosdyn.api.GazeCommand'; } /** * 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.GazeCommand.Request = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.GazeCommand.Request, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.GazeCommand.Request.displayName = 'proto.bosdyn.api.GazeCommand.Request'; } /** * 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.GazeCommand.Feedback = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.GazeCommand.Feedback, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.GazeCommand.Feedback.displayName = 'proto.bosdyn.api.GazeCommand.Feedback'; } /** * 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.ArmStopCommand = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmStopCommand, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmStopCommand.displayName = 'proto.bosdyn.api.ArmStopCommand'; } /** * 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.ArmStopCommand.Request = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmStopCommand.Request, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmStopCommand.Request.displayName = 'proto.bosdyn.api.ArmStopCommand.Request'; } /** * 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.ArmStopCommand.Feedback = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ArmStopCommand.Feedback, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ArmStopCommand.Feedback.displayName = 'proto.bosdyn.api.ArmStopCommand.Feedback'; } 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.ArmCommand.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.ArmCommand.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.ArmCommand} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.ArmCommand.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.ArmCommand} */ proto.bosdyn.api.ArmCommand.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.ArmCommand; return proto.bosdyn.api.ArmCommand.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.ArmCommand} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.ArmCommand} */ proto.bosdyn.api.ArmCommand.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.ArmCommand.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.ArmCommand.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.ArmCommand} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.ArmCommand.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.bosdyn.api.ArmCommand.Request.oneofGroups_ = [[3,4,5,6,8,9,10]]; /** * @enum {number} */ proto.bosdyn.api.ArmCommand.Request.CommandCase = { COMMAND_NOT_SET: 0, ARM_CARTESIAN_COMMAND: 3, ARM_JOINT_MOVE_COMMAND: 4, NAMED_ARM_POSITION_COMMAND: 5, ARM_VELOCITY_COMMAND: 6, ARM_GAZE_COMMAND: 8, ARM_STOP_COMMAND: 9, ARM_DRAG_COMMAND: 10 }; /** * @return {proto.bosdyn.api.ArmCommand.Request.CommandCase} */ proto.bosdyn.api.ArmCommand.Request.prototype.getCommandCase = function() { return /** @type {proto.bosdyn.api.ArmCommand.Request.CommandCase} */(jspb.Message.computeOneofCase(this, proto.bosdyn.api.ArmCommand.Request.oneofGroups_[0])); }; 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.ArmCommand.Request.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.ArmCommand.Request.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.ArmCommand.Request} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.ArmCommand.Request.toObject = function(includeInstance, msg) { var f, obj = { armCartesianCommand: (f = msg.getArmCartesianCommand()) && proto.bosdyn.api.ArmCartesianCommand.Request.toObject(includeInstance, f), armJointMoveCommand: (f = msg.getArmJointMoveCommand()) && proto.bosdyn.api.ArmJointMoveCommand.Request.toObject(includeInstance, f), namedArmPositionCommand: (f = msg.getNamedArmPositionCommand()) && proto.bosdyn.api.NamedArmPositionsCommand.Request.toObject(includeInstance, f), armVelocityCommand: (f = msg.getArmVelocityCommand()) && proto.bosdyn.api.ArmVelocityCommand.Request.toObject(includeInstance, f), armGazeCommand: (f = msg.getArmGazeCommand()) && proto.bosdyn.api.GazeCommand.Request.toObject(includeInstance, f), armStopCommand: (f = msg.getArmStopCommand()) && proto.bosdyn.api.ArmStopCommand.Request.toObject(includeInstance, f), armDragCommand: (f = msg.getArmDragCommand()) && bosdyn_api_basic_command_pb.ArmDragCommand.Request.toObject(includeInstance, f), params: (f = msg.getParams()) && proto.bosdyn.api.ArmParams.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.ArmCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.ArmCommand.Request; return proto.bosdyn.api.ArmCommand.Request.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.ArmCommand.Request} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.ArmCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 3: var value = new proto.bosdyn.api.ArmCartesianCommand.Request; reader.readMessage(value,proto.bosdyn.api.ArmCartesianCommand.Request.deserializeBinaryFromReader); msg.setArmCartesianCommand(value); break; case 4: var value = new proto.bosdyn.api.ArmJointMoveCommand.Request; reader.readMessage(value,proto.bosdyn.api.ArmJointMoveCommand.Request.deserializeBinaryFromReader); msg.setArmJointMoveCommand(value); break; case 5: var value = new proto.bosdyn.api.NamedArmPositionsCommand.Request; reader.readMessage(value,proto.bosdyn.api.NamedArmPositionsCommand.Request.deserializeBinaryFromReader); msg.setNamedArmPositionCommand(value); break; case 6: var value = new proto.bosdyn.api.ArmVelocityCommand.Request; reader.readMessage(value,proto.bosdyn.api.ArmVelocityCommand.Request.deserializeBinaryFromReader); msg.setArmVelocityCommand(value); break; case 8: var value = new proto.bosdyn.api.GazeCommand.Request; reader.readMessage(value,proto.bosdyn.api.GazeCommand.Request.deserializeBinaryFromReader); msg.setArmGazeCommand(value); break; case 9: var value = new proto.bosdyn.api.ArmStopCommand.Request; reader.readMessage(value,proto.bosdyn.api.ArmStopCommand.Request.deserializeBinaryFromReader); msg.setArmStopCommand(value); break; case 10: var value = new bosdyn_api_basic_command_pb.ArmDragCommand.Request; reader.readMessage(value,bosdyn_api_basic_command_pb.ArmDragCommand.Request.deserializeBinaryFromReader); msg.setArmDragCommand(value); break; case 11: var value = new proto.bosdyn.api.ArmParams; reader.readMessage(value,proto.bosdyn.api.ArmParams.deserializeBinaryFromReader); msg.setParams(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.ArmCommand.Request.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.ArmCommand.Request.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.ArmCommand.Request} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.ArmCommand.Request.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getArmCartesianCommand(); if (f != null) { writer.writeMessage( 3, f, proto.bosdyn.api.ArmCartesianCommand.Request.serializeBinaryToWriter ); } f = message.getArmJointMoveCommand(); if (f != null) { writer.writeMessage( 4, f, proto.bosdyn.api.ArmJointMoveCommand.Request.serializeBinaryToWriter ); } f = message.getNamedArmPositionCommand(); if (f != null) { writer.writeMessage( 5, f, proto.bosdyn.api.NamedArmPositionsCommand.Request.serializeBinaryToWriter ); } f = message.getArmVelocityCommand(); if (f != null) { writer.writeMessage( 6, f, proto.bosdyn.api.ArmVelocityCommand.Request.serializeBinaryToWriter ); } f = message.getArmGazeCommand(); if (f != null) { writer.writeMessage( 8, f, proto.bosdyn.api.GazeCommand.Request.serializeBinaryToWriter ); } f = message.getArmStopCommand(); if (f != null) { writer.writeMessage( 9, f, proto.bosdyn.api.ArmStopCommand.Request.serializeBinaryToWriter ); } f = message.getArmDragCommand(); if (f != null) { writer.writeMessage( 10, f, bosdyn_api_basic_command_pb.ArmDragCommand.Request.serializeBinaryToWriter ); } f = message.getParams(); if (f != null) { writer.writeMessage( 11, f, proto.bosdyn.api.ArmParams.serializeBinaryToWriter ); } }; /** * optional ArmCartesianCommand.Request arm_cartesian_command = 3; * @return {?proto.bosdyn.api.ArmCartesianCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.prototype.getArmCartesianCommand = function() { return /** @type{?proto.bosdyn.api.ArmCartesianCommand.Request} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.ArmCartesianCommand.Request, 3)); }; /** * @param {?proto.bosdyn.api.ArmCartesianCommand.Request|undefined} value * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.setArmCartesianCommand = function(value) { return jspb.Message.setOneofWrapperField(this, 3, proto.bosdyn.api.ArmCommand.Request.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.clearArmCartesianCommand = function() { return this.setArmCartesianCommand(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.ArmCommand.Request.prototype.hasArmCartesianCommand = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional ArmJointMoveCommand.Request arm_joint_move_command = 4; * @return {?proto.bosdyn.api.ArmJointMoveCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.prototype.getArmJointMoveCommand = function() { return /** @type{?proto.bosdyn.api.ArmJointMoveCommand.Request} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.ArmJointMoveCommand.Request, 4)); }; /** * @param {?proto.bosdyn.api.ArmJointMoveCommand.Request|undefined} value * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.setArmJointMoveCommand = function(value) { return jspb.Message.setOneofWrapperField(this, 4, proto.bosdyn.api.ArmCommand.Request.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.clearArmJointMoveCommand = function() { return this.setArmJointMoveCommand(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.ArmCommand.Request.prototype.hasArmJointMoveCommand = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional NamedArmPositionsCommand.Request named_arm_position_command = 5; * @return {?proto.bosdyn.api.NamedArmPositionsCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.prototype.getNamedArmPositionCommand = function() { return /** @type{?proto.bosdyn.api.NamedArmPositionsCommand.Request} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.NamedArmPositionsCommand.Request, 5)); }; /** * @param {?proto.bosdyn.api.NamedArmPositionsCommand.Request|undefined} value * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.setNamedArmPositionCommand = function(value) { return jspb.Message.setOneofWrapperField(this, 5, proto.bosdyn.api.ArmCommand.Request.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.clearNamedArmPositionCommand = function() { return this.setNamedArmPositionCommand(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.ArmCommand.Request.prototype.hasNamedArmPositionCommand = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional ArmVelocityCommand.Request arm_velocity_command = 6; * @return {?proto.bosdyn.api.ArmVelocityCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.prototype.getArmVelocityCommand = function() { return /** @type{?proto.bosdyn.api.ArmVelocityCommand.Request} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.ArmVelocityCommand.Request, 6)); }; /** * @param {?proto.bosdyn.api.ArmVelocityCommand.Request|undefined} value * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.setArmVelocityCommand = function(value) { return jspb.Message.setOneofWrapperField(this, 6, proto.bosdyn.api.ArmCommand.Request.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.clearArmVelocityCommand = function() { return this.setArmVelocityCommand(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.ArmCommand.Request.prototype.hasArmVelocityCommand = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional GazeCommand.Request arm_gaze_command = 8; * @return {?proto.bosdyn.api.GazeCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.prototype.getArmGazeCommand = function() { return /** @type{?proto.bosdyn.api.GazeCommand.Request} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.GazeCommand.Request, 8)); }; /** * @param {?proto.bosdyn.api.GazeCommand.Request|undefined} value * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.setArmGazeCommand = function(value) { return jspb.Message.setOneofWrapperField(this, 8, proto.bosdyn.api.ArmCommand.Request.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.clearArmGazeCommand = function() { return this.setArmGazeCommand(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.ArmCommand.Request.prototype.hasArmGazeCommand = function() { return jspb.Message.getField(this, 8) != null; }; /** * optional ArmStopCommand.Request arm_stop_command = 9; * @return {?proto.bosdyn.api.ArmStopCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.prototype.getArmStopCommand = function() { return /** @type{?proto.bosdyn.api.ArmStopCommand.Request} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.ArmStopCommand.Request, 9)); }; /** * @param {?proto.bosdyn.api.ArmStopCommand.Request|undefined} value * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.setArmStopCommand = function(value) { return jspb.Message.setOneofWrapperField(this, 9, proto.bosdyn.api.ArmCommand.Request.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.clearArmStopCommand = function() { return this.setArmStopCommand(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.ArmCommand.Request.prototype.hasArmStopCommand = function() { return jspb.Message.getField(this, 9) != null; }; /** * optional ArmDragCommand.Request arm_drag_command = 10; * @return {?proto.bosdyn.api.ArmDragCommand.Request} */ proto.bosdyn.api.ArmCommand.Request.prototype.getArmDragCommand = function() { return /** @type{?proto.bosdyn.api.ArmDragCommand.Request} */ ( jspb.Message.getWrapperField(this, bosdyn_api_basic_command_pb.ArmDragCommand.Request, 10)); }; /** * @param {?proto.bosdyn.api.ArmDragCommand.Request|undefined} value * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.setArmDragCommand = function(value) { return jspb.Message.setOneofWrapperField(this, 10, proto.bosdyn.api.ArmCommand.Request.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.clearArmDragCommand = function() { return this.setArmDragCommand(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.ArmCommand.Request.prototype.hasArmDragCommand = function() { return jspb.Message.getField(this, 10) != null; }; /** * optional ArmParams params = 11; * @return {?proto.bosdyn.api.ArmParams} */ proto.bosdyn.api.ArmCommand.Request.prototype.getParams = function() { return /** @type{?proto.bosdyn.api.ArmParams} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.ArmParams, 11)); }; /** * @param {?proto.bosdyn.api.ArmParams|undefined} value * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.setParams = function(value) { return jspb.Message.setWrapperField(this, 11, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.ArmCommand.Request} returns this */ proto.bosdyn.api.ArmCommand.Request.prototype.clearParams = function() { return this.setParams(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.ArmCommand.Request.prototype.hasParams = function() { return jspb.Message.getField(this, 11) != null; }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.bosdyn.api.ArmCommand.Feedback.oneofGroups_ = [[3,4,5,6,8,9,10]]; /** * @enum {number} */ proto.bosdyn.api.ArmCommand.Feedback.FeedbackCase = { FEEDBACK_NOT_SET: 0, ARM_CARTESIAN_FEEDBACK: 3, ARM_JOINT_MOVE_FEEDBACK: 4, NAMED_ARM_POSITION_FEEDBACK: 5, ARM_VELOCITY_FEEDBACK: 6, ARM_GAZE_FEEDBACK: 8, ARM_STOP_FEEDBACK: 9, ARM_DRAG_FEEDBACK: 10 }; /** * @return {proto.bosdyn.api.ArmCommand.Feedback.FeedbackCase} */ proto.bosdyn.api.ArmCommand.Feedback.prototype.getFeedbackCase = function() { return /** @type {proto.bosdyn.api.ArmCommand.Feedback.FeedbackCase} */(jspb.Message.computeOneofCase(this, proto.bosdyn.api.ArmCommand.Feedback.oneofGroups_[0])); }; 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.ArmCommand.Feedback.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.ArmCommand.Feedback.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.ArmCommand.Feedback} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.ArmCommand.Feedback.toObject = function(includeInstance, msg) { var f, obj = { armCartesianFeedback: (f = msg.getArmCartesianFeedback()) && proto.bosdyn.api.ArmCartesianCommand.Feedback.toObject(includeInstance, f), armJointMoveFeedback: (f = msg.getArmJointMoveFeedback()) && proto.bosdyn.api.ArmJointMoveCommand.Feedback.toObject(includeInstance, f), namedArmPositionFeedback: (f = msg.getNamedArmPositionFeedback()) && proto.bosdyn.api.NamedArmPositionsCommand.Feedback.toObject(includeInstance, f), armVelocityFeedback: (f = msg.getArmVelocityFeedback()) && proto.bosdyn.api.ArmVelocityC