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

#ifndef CUSTOM_MESSAGES__MSG__DETAIL__MYPATH2__STRUCT_HPP_
#define CUSTOM_MESSAGES__MSG__DETAIL__MYPATH2__STRUCT_HPP_

#include <rosidl_runtime_cpp/bounded_vector.hpp>
#include <rosidl_runtime_cpp/message_initialization.hpp>
#include <algorithm>
#include <array>
#include <memory>
#include <string>
#include <vector>


// Include directives for member types
// Member 'frame_id'
#include "std_msgs/msg/detail/header__struct.hpp"
// Member 'poses'
#include "custom_messages/msg/detail/my_pose__struct.hpp"

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

namespace custom_messages
{

namespace msg
{

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

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

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

  // field types and members
  using _frame_id_type =
    std_msgs::msg::Header_<ContainerAllocator>;
  _frame_id_type frame_id;
  using _poses_type =
    std::vector<custom_messages::msg::MyPose_<ContainerAllocator>, typename ContainerAllocator::template rebind<custom_messages::msg::MyPose_<ContainerAllocator>>::other>;
  _poses_type poses;

  // setters for named parameter idiom
  Type & set__frame_id(
    const std_msgs::msg::Header_<ContainerAllocator> & _arg)
  {
    this->frame_id = _arg;
    return *this;
  }
  Type & set__poses(
    const std::vector<custom_messages::msg::MyPose_<ContainerAllocator>, typename ContainerAllocator::template rebind<custom_messages::msg::MyPose_<ContainerAllocator>>::other> & _arg)
  {
    this->poses = _arg;
    return *this;
  }

  // constant declarations

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

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

  using UniquePtr = UniquePtrWithDeleter<>;

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

  using WeakPtr =
    std::weak_ptr<custom_messages::msg::Mypath2_<ContainerAllocator>>;
  using ConstWeakPtr =
    std::weak_ptr<custom_messages::msg::Mypath2_<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__custom_messages__msg__Mypath2
    std::shared_ptr<custom_messages::msg::Mypath2_<ContainerAllocator>>
    Ptr;
  typedef DEPRECATED__custom_messages__msg__Mypath2
    std::shared_ptr<custom_messages::msg::Mypath2_<ContainerAllocator> const>
    ConstPtr;

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

// alias to use template instance with default allocator
using Mypath2 =
  custom_messages::msg::Mypath2_<std::allocator<void>>;

// constant definitions

}  // namespace msg

}  // namespace custom_messages

#endif  // CUSTOM_MESSAGES__MSG__DETAIL__MYPATH2__STRUCT_HPP_
