Struct mav_sdk::grpc::gimbal::GimbalServiceClient [−][src]
pub struct GimbalServiceClient<T> { /* fields omitted */ }
Expand description
Provide control over a gimbal.
Implementations
impl<T> GimbalServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> GimbalServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> GimbalServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn set_pitch_and_yaw(
&mut self,
request: impl IntoRequest<SetPitchAndYawRequest>
) -> Result<Response<SetPitchAndYawResponse>, Status>
pub async fn set_pitch_and_yaw(
&mut self,
request: impl IntoRequest<SetPitchAndYawRequest>
) -> Result<Response<SetPitchAndYawResponse>, Status>
Set gimbal pitch and yaw angles.
This sets the desired pitch and yaw angles of a gimbal. Will return when the command is accepted, however, it might take the gimbal longer to actually be set to the new angles.
pub async fn set_mode(
&mut self,
request: impl IntoRequest<SetModeRequest>
) -> Result<Response<SetModeResponse>, Status>
pub async fn set_mode(
&mut self,
request: impl IntoRequest<SetModeRequest>
) -> Result<Response<SetModeResponse>, Status>
Set gimbal mode.
This sets the desired yaw mode of a gimbal. Will return when the command is accepted. However, it might take the gimbal longer to actually be set to the new angles.
pub async fn set_roi_location(
&mut self,
request: impl IntoRequest<SetRoiLocationRequest>
) -> Result<Response<SetRoiLocationResponse>, Status>
pub async fn set_roi_location(
&mut self,
request: impl IntoRequest<SetRoiLocationRequest>
) -> Result<Response<SetRoiLocationResponse>, Status>
Set gimbal region of interest (ROI).
This sets a region of interest that the gimbal will point to. The gimbal will continue to point to the specified region until it receives a new command. The function will return when the command is accepted, however, it might take the gimbal longer to actually rotate to the ROI.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for GimbalServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for GimbalServiceClient<T> where
T: Send,
impl<T> Sync for GimbalServiceClient<T> where
T: Sync,
impl<T> Unpin for GimbalServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for GimbalServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request