Skip to content

Commit

Permalink
camera server : add start stop video subscribe (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbago authored and julianoes committed Oct 30, 2023
1 parent 84d4529 commit 4cf4e32
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion protos/camera_server/camera_server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ service CameraServerService {

// Respond to an image capture request from SubscribeTakePhoto.
rpc RespondTakePhoto(RespondTakePhotoRequest) returns(RespondTakePhotoResponse) { option (mavsdk.options.async_type) = SYNC; }

// Subscribe to start video requests. Each request received should response to using StartVideoResponse
rpc SubscribeStartVideo(SubscribeStartVideoRequest) returns(stream StartVideoResponse) { option (mavsdk.options.async_type) = ASYNC; }

// Subscribe to stop video requests. Each request received should response to using StopVideoResponse
rpc SubscribeStopVideo(SubscribeStopVideoRequest) returns(stream StopVideoResponse) { option (mavsdk.options.async_type) = ASYNC; }
}

message SetInformationRequest {
Expand All @@ -38,11 +44,20 @@ message SetInProgressResponse {
}

message SubscribeTakePhotoRequest {}

message TakePhotoResponse {
int32 index = 1;
}

message SubscribeStartVideoRequest {}
message StartVideoResponse {
int32 stream_id = 1; // video stream id
}

message SubscribeStopVideoRequest {}
message StopVideoResponse {
int32 stream_id = 1; // video stream id
}

// Possible results when taking a photo.
enum TakePhotoFeedback {
TAKE_PHOTO_FEEDBACK_UNKNOWN = 0; // Unknown
Expand Down

0 comments on commit 4cf4e32

Please sign in to comment.