Skip to content

Commit

Permalink
RSDK-7468: add captureAll method (viamrobotics#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob1in authored May 9, 2024
1 parent 023f273 commit a2b2989
Show file tree
Hide file tree
Showing 17 changed files with 1,702 additions and 281 deletions.
14 changes: 7 additions & 7 deletions component/arm/v1/arm.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions component/encoder/v1/encoder.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions component/gantry/v1/gantry.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions component/gripper/v1/gripper.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions component/movementsensor/v1/movementsensor.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions gen/js/service/vision/v1/vision_grpc_web_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ grpc.web = require('grpc-web');

var common_v1_common_pb = require('../../../common/v1/common_pb.js')

var component_camera_v1_camera_pb = require('../../../component/camera/v1/camera_pb.js')

var google_api_annotations_pb = require('../../../google/api/annotations_pb.js')

var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js')
Expand Down Expand Up @@ -449,6 +451,67 @@ proto.viam.service.vision.v1.VisionServicePromiseClient.prototype.getProperties
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.viam.service.vision.v1.CaptureAllFromCameraRequest,
* !proto.viam.service.vision.v1.CaptureAllFromCameraResponse>}
*/
const methodDescriptor_VisionService_CaptureAllFromCamera = new grpc.web.MethodDescriptor(
'/viam.service.vision.v1.VisionService/CaptureAllFromCamera',
grpc.web.MethodType.UNARY,
proto.viam.service.vision.v1.CaptureAllFromCameraRequest,
proto.viam.service.vision.v1.CaptureAllFromCameraResponse,
/**
* @param {!proto.viam.service.vision.v1.CaptureAllFromCameraRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.viam.service.vision.v1.CaptureAllFromCameraResponse.deserializeBinary
);


/**
* @param {!proto.viam.service.vision.v1.CaptureAllFromCameraRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.viam.service.vision.v1.CaptureAllFromCameraResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.viam.service.vision.v1.CaptureAllFromCameraResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.viam.service.vision.v1.VisionServiceClient.prototype.captureAllFromCamera =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/viam.service.vision.v1.VisionService/CaptureAllFromCamera',
request,
metadata || {},
methodDescriptor_VisionService_CaptureAllFromCamera,
callback);
};


/**
* @param {!proto.viam.service.vision.v1.CaptureAllFromCameraRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.viam.service.vision.v1.CaptureAllFromCameraResponse>}
* Promise that resolves to the response
*/
proto.viam.service.vision.v1.VisionServicePromiseClient.prototype.captureAllFromCamera =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/viam.service.vision.v1.VisionService/CaptureAllFromCamera',
request,
metadata || {},
methodDescriptor_VisionService_CaptureAllFromCamera);
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
Expand Down
Loading

0 comments on commit a2b2989

Please sign in to comment.