#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};



#[link(name = "bcr_bot__rosidl_typesupport_c")]
extern "C" {
    fn rosidl_typesupport_c__get_message_type_support_handle__bcr_bot__srv__GetVisualTopics_Request() -> *const std::ffi::c_void;
}

#[link(name = "bcr_bot__rosidl_generator_c")]
extern "C" {
    fn bcr_bot__srv__GetVisualTopics_Request__init(msg: *mut GetVisualTopics_Request) -> bool;
    fn bcr_bot__srv__GetVisualTopics_Request__Sequence__init(seq: *mut rosidl_runtime_rs::Sequence<GetVisualTopics_Request>, size: usize) -> bool;
    fn bcr_bot__srv__GetVisualTopics_Request__Sequence__fini(seq: *mut rosidl_runtime_rs::Sequence<GetVisualTopics_Request>);
    fn bcr_bot__srv__GetVisualTopics_Request__Sequence__copy(in_seq: &rosidl_runtime_rs::Sequence<GetVisualTopics_Request>, out_seq: *mut rosidl_runtime_rs::Sequence<GetVisualTopics_Request>) -> bool;
}

// Corresponds to bcr_bot__srv__GetVisualTopics_Request
#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]


// This struct is not documented.
#[allow(missing_docs)]

#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Clone, Debug, PartialEq, PartialOrd)]
pub struct GetVisualTopics_Request {

    // This member is not documented.
    #[allow(missing_docs)]
    pub refresh: bool,

}



impl Default for GetVisualTopics_Request {
  fn default() -> Self {
    unsafe {
      let mut msg = std::mem::zeroed();
      if !bcr_bot__srv__GetVisualTopics_Request__init(&mut msg as *mut _) {
        panic!("Call to bcr_bot__srv__GetVisualTopics_Request__init() failed");
      }
      msg
    }
  }
}

impl rosidl_runtime_rs::SequenceAlloc for GetVisualTopics_Request {
  fn sequence_init(seq: &mut rosidl_runtime_rs::Sequence<Self>, size: usize) -> bool {
    // SAFETY: This is safe since the pointer is guaranteed to be valid/initialized.
    unsafe { bcr_bot__srv__GetVisualTopics_Request__Sequence__init(seq as *mut _, size) }
  }
  fn sequence_fini(seq: &mut rosidl_runtime_rs::Sequence<Self>) {
    // SAFETY: This is safe since the pointer is guaranteed to be valid/initialized.
    unsafe { bcr_bot__srv__GetVisualTopics_Request__Sequence__fini(seq as *mut _) }
  }
  fn sequence_copy(in_seq: &rosidl_runtime_rs::Sequence<Self>, out_seq: &mut rosidl_runtime_rs::Sequence<Self>) -> bool {
    // SAFETY: This is safe since the pointer is guaranteed to be valid/initialized.
    unsafe { bcr_bot__srv__GetVisualTopics_Request__Sequence__copy(in_seq, out_seq as *mut _) }
  }
}

impl rosidl_runtime_rs::Message for GetVisualTopics_Request {
  type RmwMsg = Self;
  fn into_rmw_message(msg_cow: std::borrow::Cow<'_, Self>) -> std::borrow::Cow<'_, Self::RmwMsg> { msg_cow }
  fn from_rmw_message(msg: Self::RmwMsg) -> Self { msg }
}

impl rosidl_runtime_rs::RmwMessage for GetVisualTopics_Request where Self: Sized {
  const TYPE_NAME: &'static str = "bcr_bot/srv/GetVisualTopics_Request";
  fn get_type_support() -> *const std::ffi::c_void {
    // SAFETY: No preconditions for this function.
    unsafe { rosidl_typesupport_c__get_message_type_support_handle__bcr_bot__srv__GetVisualTopics_Request() }
  }
}


#[link(name = "bcr_bot__rosidl_typesupport_c")]
extern "C" {
    fn rosidl_typesupport_c__get_message_type_support_handle__bcr_bot__srv__GetVisualTopics_Response() -> *const std::ffi::c_void;
}

#[link(name = "bcr_bot__rosidl_generator_c")]
extern "C" {
    fn bcr_bot__srv__GetVisualTopics_Response__init(msg: *mut GetVisualTopics_Response) -> bool;
    fn bcr_bot__srv__GetVisualTopics_Response__Sequence__init(seq: *mut rosidl_runtime_rs::Sequence<GetVisualTopics_Response>, size: usize) -> bool;
    fn bcr_bot__srv__GetVisualTopics_Response__Sequence__fini(seq: *mut rosidl_runtime_rs::Sequence<GetVisualTopics_Response>);
    fn bcr_bot__srv__GetVisualTopics_Response__Sequence__copy(in_seq: &rosidl_runtime_rs::Sequence<GetVisualTopics_Response>, out_seq: *mut rosidl_runtime_rs::Sequence<GetVisualTopics_Response>) -> bool;
}

// Corresponds to bcr_bot__srv__GetVisualTopics_Response
#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]


// This struct is not documented.
#[allow(missing_docs)]

#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Clone, Debug, PartialEq, PartialOrd)]
pub struct GetVisualTopics_Response {

    // This member is not documented.
    #[allow(missing_docs)]
    pub depth_image_topics: rosidl_runtime_rs::Sequence<rosidl_runtime_rs::String>,


    // This member is not documented.
    #[allow(missing_docs)]
    pub rgb_image_topics: rosidl_runtime_rs::Sequence<rosidl_runtime_rs::String>,


    // This member is not documented.
    #[allow(missing_docs)]
    pub camera_info_topics: rosidl_runtime_rs::Sequence<rosidl_runtime_rs::String>,


    // This member is not documented.
    #[allow(missing_docs)]
    pub point_cloud_topics: rosidl_runtime_rs::Sequence<rosidl_runtime_rs::String>,

}



impl Default for GetVisualTopics_Response {
  fn default() -> Self {
    unsafe {
      let mut msg = std::mem::zeroed();
      if !bcr_bot__srv__GetVisualTopics_Response__init(&mut msg as *mut _) {
        panic!("Call to bcr_bot__srv__GetVisualTopics_Response__init() failed");
      }
      msg
    }
  }
}

impl rosidl_runtime_rs::SequenceAlloc for GetVisualTopics_Response {
  fn sequence_init(seq: &mut rosidl_runtime_rs::Sequence<Self>, size: usize) -> bool {
    // SAFETY: This is safe since the pointer is guaranteed to be valid/initialized.
    unsafe { bcr_bot__srv__GetVisualTopics_Response__Sequence__init(seq as *mut _, size) }
  }
  fn sequence_fini(seq: &mut rosidl_runtime_rs::Sequence<Self>) {
    // SAFETY: This is safe since the pointer is guaranteed to be valid/initialized.
    unsafe { bcr_bot__srv__GetVisualTopics_Response__Sequence__fini(seq as *mut _) }
  }
  fn sequence_copy(in_seq: &rosidl_runtime_rs::Sequence<Self>, out_seq: &mut rosidl_runtime_rs::Sequence<Self>) -> bool {
    // SAFETY: This is safe since the pointer is guaranteed to be valid/initialized.
    unsafe { bcr_bot__srv__GetVisualTopics_Response__Sequence__copy(in_seq, out_seq as *mut _) }
  }
}

impl rosidl_runtime_rs::Message for GetVisualTopics_Response {
  type RmwMsg = Self;
  fn into_rmw_message(msg_cow: std::borrow::Cow<'_, Self>) -> std::borrow::Cow<'_, Self::RmwMsg> { msg_cow }
  fn from_rmw_message(msg: Self::RmwMsg) -> Self { msg }
}

impl rosidl_runtime_rs::RmwMessage for GetVisualTopics_Response where Self: Sized {
  const TYPE_NAME: &'static str = "bcr_bot/srv/GetVisualTopics_Response";
  fn get_type_support() -> *const std::ffi::c_void {
    // SAFETY: No preconditions for this function.
    unsafe { rosidl_typesupport_c__get_message_type_support_handle__bcr_bot__srv__GetVisualTopics_Response() }
  }
}






#[link(name = "bcr_bot__rosidl_typesupport_c")]
extern "C" {
    fn rosidl_typesupport_c__get_service_type_support_handle__bcr_bot__srv__GetVisualTopics() -> *const std::ffi::c_void;
}

// Corresponds to bcr_bot__srv__GetVisualTopics
#[allow(missing_docs, non_camel_case_types)]
pub struct GetVisualTopics;

impl rosidl_runtime_rs::Service for GetVisualTopics {
    type Request = GetVisualTopics_Request;
    type Response = GetVisualTopics_Response;

    fn get_type_support() -> *const std::ffi::c_void {
        // SAFETY: No preconditions for this function.
        unsafe { rosidl_typesupport_c__get_service_type_support_handle__bcr_bot__srv__GetVisualTopics() }
    }
}


