// generated from rosidl_generator_cpp/resource/idl__struct.hpp.em
// with input from cpp_prococol:srv/Position.idl
// generated code does not contain a copyright notice

#ifndef CPP_PROCOCOL__SRV__DETAIL__POSITION__STRUCT_HPP_
#define CPP_PROCOCOL__SRV__DETAIL__POSITION__STRUCT_HPP_

#include <algorithm>
#include <array>
#include <cstdint>
#include <memory>
#include <string>
#include <vector>

#include "rosidl_runtime_cpp/bounded_vector.hpp"
#include "rosidl_runtime_cpp/message_initialization.hpp"


#ifndef _WIN32
# define DEPRECATED__cpp_prococol__srv__Position_Request __attribute__((deprecated))
#else
# define DEPRECATED__cpp_prococol__srv__Position_Request __declspec(deprecated)
#endif

namespace cpp_prococol
{

namespace srv
{

// message struct
template<class ContainerAllocator>
struct Position_Request_
{
  using Type = Position_Request_<ContainerAllocator>;

  explicit Position_Request_(rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
  {
    if (rosidl_runtime_cpp::MessageInitialization::ALL == _init ||
      rosidl_runtime_cpp::MessageInitialization::ZERO == _init)
    {
      this->target_x = 0.0f;
      this->target_y = 0.0f;
    }
  }

  explicit Position_Request_(const ContainerAllocator & _alloc, rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
  {
    (void)_alloc;
    if (rosidl_runtime_cpp::MessageInitialization::ALL == _init ||
      rosidl_runtime_cpp::MessageInitialization::ZERO == _init)
    {
      this->target_x = 0.0f;
      this->target_y = 0.0f;
    }
  }

  // field types and members
  using _target_x_type =
    float;
  _target_x_type target_x;
  using _target_y_type =
    float;
  _target_y_type target_y;

  // setters for named parameter idiom
  Type & set__target_x(
    const float & _arg)
  {
    this->target_x = _arg;
    return *this;
  }
  Type & set__target_y(
    const float & _arg)
  {
    this->target_y = _arg;
    return *this;
  }

  // constant declarations

  // pointer types
  using RawPtr =
    cpp_prococol::srv::Position_Request_<ContainerAllocator> *;
  using ConstRawPtr =
    const cpp_prococol::srv::Position_Request_<ContainerAllocator> *;
  using SharedPtr =
    std::shared_ptr<cpp_prococol::srv::Position_Request_<ContainerAllocator>>;
  using ConstSharedPtr =
    std::shared_ptr<cpp_prococol::srv::Position_Request_<ContainerAllocator> const>;

  template<typename Deleter = std::default_delete<
      cpp_prococol::srv::Position_Request_<ContainerAllocator>>>
  using UniquePtrWithDeleter =
    std::unique_ptr<cpp_prococol::srv::Position_Request_<ContainerAllocator>, Deleter>;

  using UniquePtr = UniquePtrWithDeleter<>;

  template<typename Deleter = std::default_delete<
      cpp_prococol::srv::Position_Request_<ContainerAllocator>>>
  using ConstUniquePtrWithDeleter =
    std::unique_ptr<cpp_prococol::srv::Position_Request_<ContainerAllocator> const, Deleter>;
  using ConstUniquePtr = ConstUniquePtrWithDeleter<>;

  using WeakPtr =
    std::weak_ptr<cpp_prococol::srv::Position_Request_<ContainerAllocator>>;
  using ConstWeakPtr =
    std::weak_ptr<cpp_prococol::srv::Position_Request_<ContainerAllocator> const>;

  // pointer types similar to ROS 1, use SharedPtr / ConstSharedPtr instead
  // NOTE: Can't use 'using' here because GNU C++ can't parse attributes properly
  typedef DEPRECATED__cpp_prococol__srv__Position_Request
    std::shared_ptr<cpp_prococol::srv::Position_Request_<ContainerAllocator>>
    Ptr;
  typedef DEPRECATED__cpp_prococol__srv__Position_Request
    std::shared_ptr<cpp_prococol::srv::Position_Request_<ContainerAllocator> const>
    ConstPtr;

  // comparison operators
  bool operator==(const Position_Request_ & other) const
  {
    if (this->target_x != other.target_x) {
      return false;
    }
    if (this->target_y != other.target_y) {
      return false;
    }
    return true;
  }
  bool operator!=(const Position_Request_ & other) const
  {
    return !this->operator==(other);
  }
};  // struct Position_Request_

// alias to use template instance with default allocator
using Position_Request =
  cpp_prococol::srv::Position_Request_<std::allocator<void>>;

// constant definitions

}  // namespace srv

}  // namespace cpp_prococol


#ifndef _WIN32
# define DEPRECATED__cpp_prococol__srv__Position_Response __attribute__((deprecated))
#else
# define DEPRECATED__cpp_prococol__srv__Position_Response __declspec(deprecated)
#endif

namespace cpp_prococol
{

namespace srv
{

// message struct
template<class ContainerAllocator>
struct Position_Response_
{
  using Type = Position_Response_<ContainerAllocator>;

  explicit Position_Response_(rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
  {
    if (rosidl_runtime_cpp::MessageInitialization::ALL == _init ||
      rosidl_runtime_cpp::MessageInitialization::ZERO == _init)
    {
      this->result = 0;
    }
  }

  explicit Position_Response_(const ContainerAllocator & _alloc, rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
  {
    (void)_alloc;
    if (rosidl_runtime_cpp::MessageInitialization::ALL == _init ||
      rosidl_runtime_cpp::MessageInitialization::ZERO == _init)
    {
      this->result = 0;
    }
  }

  // field types and members
  using _result_type =
    int8_t;
  _result_type result;

  // setters for named parameter idiom
  Type & set__result(
    const int8_t & _arg)
  {
    this->result = _arg;
    return *this;
  }

  // constant declarations
  static constexpr int8_t SUCCESS =
    1;
  static constexpr int8_t FALL =
    0;

  // pointer types
  using RawPtr =
    cpp_prococol::srv::Position_Response_<ContainerAllocator> *;
  using ConstRawPtr =
    const cpp_prococol::srv::Position_Response_<ContainerAllocator> *;
  using SharedPtr =
    std::shared_ptr<cpp_prococol::srv::Position_Response_<ContainerAllocator>>;
  using ConstSharedPtr =
    std::shared_ptr<cpp_prococol::srv::Position_Response_<ContainerAllocator> const>;

  template<typename Deleter = std::default_delete<
      cpp_prococol::srv::Position_Response_<ContainerAllocator>>>
  using UniquePtrWithDeleter =
    std::unique_ptr<cpp_prococol::srv::Position_Response_<ContainerAllocator>, Deleter>;

  using UniquePtr = UniquePtrWithDeleter<>;

  template<typename Deleter = std::default_delete<
      cpp_prococol::srv::Position_Response_<ContainerAllocator>>>
  using ConstUniquePtrWithDeleter =
    std::unique_ptr<cpp_prococol::srv::Position_Response_<ContainerAllocator> const, Deleter>;
  using ConstUniquePtr = ConstUniquePtrWithDeleter<>;

  using WeakPtr =
    std::weak_ptr<cpp_prococol::srv::Position_Response_<ContainerAllocator>>;
  using ConstWeakPtr =
    std::weak_ptr<cpp_prococol::srv::Position_Response_<ContainerAllocator> const>;

  // pointer types similar to ROS 1, use SharedPtr / ConstSharedPtr instead
  // NOTE: Can't use 'using' here because GNU C++ can't parse attributes properly
  typedef DEPRECATED__cpp_prococol__srv__Position_Response
    std::shared_ptr<cpp_prococol::srv::Position_Response_<ContainerAllocator>>
    Ptr;
  typedef DEPRECATED__cpp_prococol__srv__Position_Response
    std::shared_ptr<cpp_prococol::srv::Position_Response_<ContainerAllocator> const>
    ConstPtr;

  // comparison operators
  bool operator==(const Position_Response_ & other) const
  {
    if (this->result != other.result) {
      return false;
    }
    return true;
  }
  bool operator!=(const Position_Response_ & other) const
  {
    return !this->operator==(other);
  }
};  // struct Position_Response_

// alias to use template instance with default allocator
using Position_Response =
  cpp_prococol::srv::Position_Response_<std::allocator<void>>;

// constant definitions
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr int8_t Position_Response_<ContainerAllocator>::SUCCESS;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr int8_t Position_Response_<ContainerAllocator>::FALL;
#endif  // __cplusplus < 201703L

}  // namespace srv

}  // namespace cpp_prococol

namespace cpp_prococol
{

namespace srv
{

struct Position
{
  using Request = cpp_prococol::srv::Position_Request;
  using Response = cpp_prococol::srv::Position_Response;
};

}  // namespace srv

}  // namespace cpp_prococol

#endif  // CPP_PROCOCOL__SRV__DETAIL__POSITION__STRUCT_HPP_
