Skip to content

Commit 57b68a7

Browse files
RSDK-10574 - Add Kinematics API method to Gripper (#689)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ecab331 commit 57b68a7

File tree

7 files changed

+314
-17
lines changed

7 files changed

+314
-17
lines changed

component/gripper/v1/gripper.pb.go

Lines changed: 30 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component/gripper/v1/gripper.pb.gw.go

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component/gripper/v1/gripper_grpc.pb.go

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/js/component/gripper/v1/gripper_grpc_web_pb.js

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,5 +449,66 @@ proto.viam.component.gripper.v1.GripperServicePromiseClient.prototype.getGeometr
449449
};
450450

451451

452+
/**
453+
* @const
454+
* @type {!grpc.web.MethodDescriptor<
455+
* !proto.viam.common.v1.GetKinematicsRequest,
456+
* !proto.viam.common.v1.GetKinematicsResponse>}
457+
*/
458+
const methodDescriptor_GripperService_GetKinematics = new grpc.web.MethodDescriptor(
459+
'/viam.component.gripper.v1.GripperService/GetKinematics',
460+
grpc.web.MethodType.UNARY,
461+
common_v1_common_pb.GetKinematicsRequest,
462+
common_v1_common_pb.GetKinematicsResponse,
463+
/**
464+
* @param {!proto.viam.common.v1.GetKinematicsRequest} request
465+
* @return {!Uint8Array}
466+
*/
467+
function(request) {
468+
return request.serializeBinary();
469+
},
470+
common_v1_common_pb.GetKinematicsResponse.deserializeBinary
471+
);
472+
473+
474+
/**
475+
* @param {!proto.viam.common.v1.GetKinematicsRequest} request The
476+
* request proto
477+
* @param {?Object<string, string>} metadata User defined
478+
* call metadata
479+
* @param {function(?grpc.web.RpcError, ?proto.viam.common.v1.GetKinematicsResponse)}
480+
* callback The callback function(error, response)
481+
* @return {!grpc.web.ClientReadableStream<!proto.viam.common.v1.GetKinematicsResponse>|undefined}
482+
* The XHR Node Readable Stream
483+
*/
484+
proto.viam.component.gripper.v1.GripperServiceClient.prototype.getKinematics =
485+
function(request, metadata, callback) {
486+
return this.client_.rpcCall(this.hostname_ +
487+
'/viam.component.gripper.v1.GripperService/GetKinematics',
488+
request,
489+
metadata || {},
490+
methodDescriptor_GripperService_GetKinematics,
491+
callback);
492+
};
493+
494+
495+
/**
496+
* @param {!proto.viam.common.v1.GetKinematicsRequest} request The
497+
* request proto
498+
* @param {?Object<string, string>=} metadata User defined
499+
* call metadata
500+
* @return {!Promise<!proto.viam.common.v1.GetKinematicsResponse>}
501+
* Promise that resolves to the response
502+
*/
503+
proto.viam.component.gripper.v1.GripperServicePromiseClient.prototype.getKinematics =
504+
function(request, metadata) {
505+
return this.client_.unaryCall(this.hostname_ +
506+
'/viam.component.gripper.v1.GripperService/GetKinematics',
507+
request,
508+
metadata || {},
509+
methodDescriptor_GripperService_GetKinematics);
510+
};
511+
512+
452513
module.exports = proto.viam.component.gripper.v1;
453514

0 commit comments

Comments
 (0)