pub struct KachakaApiClient { /* private fields */ }Implementations§
Source§impl KachakaApiClient
impl KachakaApiClient
pub async fn connect<D>(target: D) -> Result<Self, Error>
pub async fn get_robot_serial_number( &mut self, cursor: i64, ) -> Result<String, KachakaApiError>
pub async fn get_latest_robot_serial_number( &mut self, ) -> Result<String, KachakaApiError>
pub async fn watch_robot_serial_number( &mut self, ) -> impl Stream<Item = Result<String, KachakaApiError>>
pub async fn get_robot_version( &mut self, cursor: i64, ) -> Result<String, KachakaApiError>
pub async fn get_latest_robot_version( &mut self, ) -> Result<String, KachakaApiError>
pub async fn watch_robot_version( &mut self, ) -> impl Stream<Item = Result<String, KachakaApiError>>
pub async fn get_robot_pose( &mut self, cursor: i64, ) -> Result<Pose, KachakaApiError>
pub async fn get_latest_robot_pose(&mut self) -> Result<Pose, KachakaApiError>
pub async fn watch_robot_pose( &mut self, ) -> impl Stream<Item = Result<Pose, KachakaApiError>>
pub async fn get_battery_info( &mut self, cursor: i64, ) -> Result<BatteryInfo, KachakaApiError>
pub async fn get_latest_battery_info( &mut self, ) -> Result<BatteryInfo, KachakaApiError>
pub async fn watch_battery_info( &mut self, ) -> impl Stream<Item = Result<BatteryInfo, KachakaApiError>>
pub async fn get_front_camera_ros_image( &mut self, cursor: i64, ) -> Result<DynamicImage, KachakaApiError>
pub async fn get_latest_front_camera_ros_image( &mut self, ) -> Result<DynamicImage, KachakaApiError>
pub async fn watch_front_camera_ros_image( &mut self, ) -> impl Stream<Item = Result<DynamicImage, KachakaApiError>>
pub async fn get_front_camera_ros_compressed_image( &mut self, cursor: i64, ) -> Result<DynamicImage, KachakaApiError>
pub async fn get_latest_front_camera_ros_compressed_image( &mut self, ) -> Result<DynamicImage, KachakaApiError>
pub async fn watch_front_camera_ros_compressed_image( &mut self, ) -> impl Stream<Item = Result<DynamicImage, KachakaApiError>>
pub async fn get_back_camera_ros_image( &mut self, cursor: i64, ) -> Result<DynamicImage, KachakaApiError>
pub async fn get_latest_back_camera_ros_image( &mut self, ) -> Result<DynamicImage, KachakaApiError>
pub async fn watch_back_camera_ros_image( &mut self, ) -> impl Stream<Item = Result<DynamicImage, KachakaApiError>>
pub async fn get_back_camera_ros_compressed_image( &mut self, cursor: i64, ) -> Result<DynamicImage, KachakaApiError>
pub async fn get_latest_back_camera_ros_compressed_image( &mut self, ) -> Result<DynamicImage, KachakaApiError>
pub async fn watch_back_camera_ros_compressed_image( &mut self, ) -> impl Stream<Item = Result<DynamicImage, KachakaApiError>>
pub async fn get_robot_error_code_json( &mut self, ) -> Result<HashMap<i32, HashMap<String, String>>, KachakaApiError>
pub async fn get_error( &mut self, cursor: i64, ) -> Result<Vec<KachakaError>, KachakaApiError>
pub async fn get_latest_error( &mut self, ) -> Result<Vec<KachakaError>, KachakaApiError>
pub async fn watch_error( &mut self, ) -> impl Stream<Item = Result<Vec<KachakaError>, KachakaApiError>>
pub async fn get_command_state( &mut self, cursor: i64, ) -> Result<CommandState, KachakaApiError>
pub async fn get_latest_command_state( &mut self, ) -> Result<CommandState, KachakaApiError>
pub async fn watch_command_state( &mut self, ) -> impl Stream<Item = Result<CommandState, KachakaApiError>>
pub async fn get_last_command_result( &mut self, cursor: i64, ) -> Result<Option<CommandResult>, KachakaApiError>
pub async fn watch_last_command_result( &mut self, ) -> impl Stream<Item = Result<Option<CommandResult>, KachakaApiError>>
pub async fn move_shelf( &mut self, shelf_id: &str, location_id: &str, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn return_shelf( &mut self, shelf_id: &str, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn undock_shelf( &mut self, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn move_to_location( &mut self, location_id: &str, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn return_home( &mut self, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn dock_shelf( &mut self, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn speak( &mut self, text: &str, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn move_to_pose( &mut self, x: f64, y: f64, yaw: f64, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn lock( &mut self, duration_sec: f64, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn move_forward( &mut self, distance_meter: f64, speed: f64, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn rotate_in_place( &mut self, angle_radian: f64, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn dock_any_shelf_with_registration( &mut self, location_id: &str, options: StartCommandOptions, ) -> Result<String, KachakaApiError>
pub async fn cancel_command(&mut self) -> Result<(), KachakaApiError>
pub async fn proceed(&mut self) -> Result<(), KachakaApiError>
pub async fn get_locations( &mut self, cursor: i64, ) -> Result<Vec<Location>, KachakaApiError>
pub async fn get_latest_locations( &mut self, ) -> Result<Vec<Location>, KachakaApiError>
pub async fn watch_locations( &mut self, ) -> impl Stream<Item = Result<Vec<Location>, KachakaApiError>>
pub async fn get_shelves( &mut self, cursor: i64, ) -> Result<Vec<Shelf>, KachakaApiError>
pub async fn get_latest_shelves( &mut self, ) -> Result<Vec<Shelf>, KachakaApiError>
pub async fn watch_shelves( &mut self, ) -> impl Stream<Item = Result<Vec<Shelf>, KachakaApiError>>
pub async fn get_moving_shelf_id( &mut self, cursor: i64, ) -> Result<String, KachakaApiError>
pub async fn get_latest_moving_shelf_id( &mut self, ) -> Result<String, KachakaApiError>
pub async fn watch_moving_shelf_id( &mut self, ) -> impl Stream<Item = Result<String, KachakaApiError>>
pub async fn reset_shelf_pose( &mut self, shelf_id: &str, ) -> Result<(), KachakaApiError>
Trait Implementations§
Source§impl Clone for KachakaApiClient
impl Clone for KachakaApiClient
Source§fn clone(&self) -> KachakaApiClient
fn clone(&self) -> KachakaApiClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for KachakaApiClient
impl !RefUnwindSafe for KachakaApiClient
impl Send for KachakaApiClient
impl Sync for KachakaApiClient
impl Unpin for KachakaApiClient
impl !UnwindSafe for KachakaApiClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request