// generated from rosidl_generator_cpp/resource/idl__struct.hpp.em
// with input from interface_protocol:msg/MotorDebug.idl
// generated code does not contain a copyright notice

#ifndef INTERFACE_PROTOCOL__MSG__DETAIL__MOTOR_DEBUG__STRUCT_HPP_
#define INTERFACE_PROTOCOL__MSG__DETAIL__MOTOR_DEBUG__STRUCT_HPP_

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

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


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

namespace interface_protocol
{

namespace msg
{

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

  explicit MotorDebug_(rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
  {
    (void)_init;
  }

  explicit MotorDebug_(const ContainerAllocator & _alloc, rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
  {
    (void)_init;
    (void)_alloc;
  }

  // field types and members
  using _mos_temperature_type =
    std::vector<float, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<float>>;
  _mos_temperature_type mos_temperature;
  using _motor_temperature_type =
    std::vector<float, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<float>>;
  _motor_temperature_type motor_temperature;
  using _voltage_type =
    std::vector<float, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<float>>;
  _voltage_type voltage;
  using _current_type =
    std::vector<float, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<float>>;
  _current_type current;
  using _error_code_type =
    std::vector<int32_t, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<int32_t>>;
  _error_code_type error_code;
  using _offline_type =
    std::vector<uint8_t, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<uint8_t>>;
  _offline_type offline;
  using _enable_type =
    std::vector<uint8_t, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<uint8_t>>;
  _enable_type enable;

  // setters for named parameter idiom
  Type & set__mos_temperature(
    const std::vector<float, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<float>> & _arg)
  {
    this->mos_temperature = _arg;
    return *this;
  }
  Type & set__motor_temperature(
    const std::vector<float, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<float>> & _arg)
  {
    this->motor_temperature = _arg;
    return *this;
  }
  Type & set__voltage(
    const std::vector<float, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<float>> & _arg)
  {
    this->voltage = _arg;
    return *this;
  }
  Type & set__current(
    const std::vector<float, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<float>> & _arg)
  {
    this->current = _arg;
    return *this;
  }
  Type & set__error_code(
    const std::vector<int32_t, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<int32_t>> & _arg)
  {
    this->error_code = _arg;
    return *this;
  }
  Type & set__offline(
    const std::vector<uint8_t, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<uint8_t>> & _arg)
  {
    this->offline = _arg;
    return *this;
  }
  Type & set__enable(
    const std::vector<uint8_t, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<uint8_t>> & _arg)
  {
    this->enable = _arg;
    return *this;
  }

  // constant declarations

  // pointer types
  using RawPtr =
    interface_protocol::msg::MotorDebug_<ContainerAllocator> *;
  using ConstRawPtr =
    const interface_protocol::msg::MotorDebug_<ContainerAllocator> *;
  using SharedPtr =
    std::shared_ptr<interface_protocol::msg::MotorDebug_<ContainerAllocator>>;
  using ConstSharedPtr =
    std::shared_ptr<interface_protocol::msg::MotorDebug_<ContainerAllocator> const>;

  template<typename Deleter = std::default_delete<
      interface_protocol::msg::MotorDebug_<ContainerAllocator>>>
  using UniquePtrWithDeleter =
    std::unique_ptr<interface_protocol::msg::MotorDebug_<ContainerAllocator>, Deleter>;

  using UniquePtr = UniquePtrWithDeleter<>;

  template<typename Deleter = std::default_delete<
      interface_protocol::msg::MotorDebug_<ContainerAllocator>>>
  using ConstUniquePtrWithDeleter =
    std::unique_ptr<interface_protocol::msg::MotorDebug_<ContainerAllocator> const, Deleter>;
  using ConstUniquePtr = ConstUniquePtrWithDeleter<>;

  using WeakPtr =
    std::weak_ptr<interface_protocol::msg::MotorDebug_<ContainerAllocator>>;
  using ConstWeakPtr =
    std::weak_ptr<interface_protocol::msg::MotorDebug_<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__interface_protocol__msg__MotorDebug
    std::shared_ptr<interface_protocol::msg::MotorDebug_<ContainerAllocator>>
    Ptr;
  typedef DEPRECATED__interface_protocol__msg__MotorDebug
    std::shared_ptr<interface_protocol::msg::MotorDebug_<ContainerAllocator> const>
    ConstPtr;

  // comparison operators
  bool operator==(const MotorDebug_ & other) const
  {
    if (this->mos_temperature != other.mos_temperature) {
      return false;
    }
    if (this->motor_temperature != other.motor_temperature) {
      return false;
    }
    if (this->voltage != other.voltage) {
      return false;
    }
    if (this->current != other.current) {
      return false;
    }
    if (this->error_code != other.error_code) {
      return false;
    }
    if (this->offline != other.offline) {
      return false;
    }
    if (this->enable != other.enable) {
      return false;
    }
    return true;
  }
  bool operator!=(const MotorDebug_ & other) const
  {
    return !this->operator==(other);
  }
};  // struct MotorDebug_

// alias to use template instance with default allocator
using MotorDebug =
  interface_protocol::msg::MotorDebug_<std::allocator<void>>;

// constant definitions

}  // namespace msg

}  // namespace interface_protocol

#endif  // INTERFACE_PROTOCOL__MSG__DETAIL__MOTOR_DEBUG__STRUCT_HPP_
