// Generated by gencpp from file shiyan2/FFTResponse.msg
// DO NOT EDIT!


#ifndef SHIYAN2_MESSAGE_FFTRESPONSE_H
#define SHIYAN2_MESSAGE_FFTRESPONSE_H


#include <string>
#include <vector>
#include <memory>

#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>


namespace shiyan2
{
template <class ContainerAllocator>
struct FFTResponse_
{
  typedef FFTResponse_<ContainerAllocator> Type;

  FFTResponse_()
    : magnitude_x()
    , magnitude_y()
    , phase_x()
    , phase_y()  {
    }
  FFTResponse_(const ContainerAllocator& _alloc)
    : magnitude_x(_alloc)
    , magnitude_y(_alloc)
    , phase_x(_alloc)
    , phase_y(_alloc)  {
  (void)_alloc;
    }



   typedef std::vector<double, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<double>> _magnitude_x_type;
  _magnitude_x_type magnitude_x;

   typedef std::vector<double, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<double>> _magnitude_y_type;
  _magnitude_y_type magnitude_y;

   typedef std::vector<double, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<double>> _phase_x_type;
  _phase_x_type phase_x;

   typedef std::vector<double, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<double>> _phase_y_type;
  _phase_y_type phase_y;





  typedef boost::shared_ptr< ::shiyan2::FFTResponse_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::shiyan2::FFTResponse_<ContainerAllocator> const> ConstPtr;

}; // struct FFTResponse_

typedef ::shiyan2::FFTResponse_<std::allocator<void> > FFTResponse;

typedef boost::shared_ptr< ::shiyan2::FFTResponse > FFTResponsePtr;
typedef boost::shared_ptr< ::shiyan2::FFTResponse const> FFTResponseConstPtr;

// constants requiring out of line definition



template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::shiyan2::FFTResponse_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::shiyan2::FFTResponse_<ContainerAllocator> >::stream(s, "", v);
return s;
}


template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator==(const ::shiyan2::FFTResponse_<ContainerAllocator1> & lhs, const ::shiyan2::FFTResponse_<ContainerAllocator2> & rhs)
{
  return lhs.magnitude_x == rhs.magnitude_x &&
    lhs.magnitude_y == rhs.magnitude_y &&
    lhs.phase_x == rhs.phase_x &&
    lhs.phase_y == rhs.phase_y;
}

template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator!=(const ::shiyan2::FFTResponse_<ContainerAllocator1> & lhs, const ::shiyan2::FFTResponse_<ContainerAllocator2> & rhs)
{
  return !(lhs == rhs);
}


} // namespace shiyan2

namespace ros
{
namespace message_traits
{





template <class ContainerAllocator>
struct IsMessage< ::shiyan2::FFTResponse_<ContainerAllocator> >
  : TrueType
  { };

template <class ContainerAllocator>
struct IsMessage< ::shiyan2::FFTResponse_<ContainerAllocator> const>
  : TrueType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::shiyan2::FFTResponse_<ContainerAllocator> >
  : FalseType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::shiyan2::FFTResponse_<ContainerAllocator> const>
  : FalseType
  { };

template <class ContainerAllocator>
struct HasHeader< ::shiyan2::FFTResponse_<ContainerAllocator> >
  : FalseType
  { };

template <class ContainerAllocator>
struct HasHeader< ::shiyan2::FFTResponse_<ContainerAllocator> const>
  : FalseType
  { };


template<class ContainerAllocator>
struct MD5Sum< ::shiyan2::FFTResponse_<ContainerAllocator> >
{
  static const char* value()
  {
    return "66df876c396498ba109714197bb49c4c";
  }

  static const char* value(const ::shiyan2::FFTResponse_<ContainerAllocator>&) { return value(); }
  static const uint64_t static_value1 = 0x66df876c396498baULL;
  static const uint64_t static_value2 = 0x109714197bb49c4cULL;
};

template<class ContainerAllocator>
struct DataType< ::shiyan2::FFTResponse_<ContainerAllocator> >
{
  static const char* value()
  {
    return "shiyan2/FFTResponse";
  }

  static const char* value(const ::shiyan2::FFTResponse_<ContainerAllocator>&) { return value(); }
};

template<class ContainerAllocator>
struct Definition< ::shiyan2::FFTResponse_<ContainerAllocator> >
{
  static const char* value()
  {
    return "float64[] magnitude_x\n"
"float64[] magnitude_y\n"
"float64[] phase_x\n"
"float64[] phase_y\n"
;
  }

  static const char* value(const ::shiyan2::FFTResponse_<ContainerAllocator>&) { return value(); }
};

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

  template<class ContainerAllocator> struct Serializer< ::shiyan2::FFTResponse_<ContainerAllocator> >
  {
    template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
    {
      stream.next(m.magnitude_x);
      stream.next(m.magnitude_y);
      stream.next(m.phase_x);
      stream.next(m.phase_y);
    }

    ROS_DECLARE_ALLINONE_SERIALIZER
  }; // struct FFTResponse_

} // namespace serialization
} // namespace ros

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::shiyan2::FFTResponse_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::shiyan2::FFTResponse_<ContainerAllocator>& v)
  {
    if (false || !indent.empty())
      s << std::endl;
    s << indent << "magnitude_x: ";
    if (v.magnitude_x.empty() || true)
      s << "[";
    for (size_t i = 0; i < v.magnitude_x.size(); ++i)
    {
      if (true && i > 0)
        s << ", ";
      else if (!true)
        s << std::endl << indent << "  -";
      Printer<double>::stream(s, true ? std::string() : indent + "    ", v.magnitude_x[i]);
    }
    if (v.magnitude_x.empty() || true)
      s << "]";
    if (true || !indent.empty())
      s << std::endl;
    s << indent << "magnitude_y: ";
    if (v.magnitude_y.empty() || true)
      s << "[";
    for (size_t i = 0; i < v.magnitude_y.size(); ++i)
    {
      if (true && i > 0)
        s << ", ";
      else if (!true)
        s << std::endl << indent << "  -";
      Printer<double>::stream(s, true ? std::string() : indent + "    ", v.magnitude_y[i]);
    }
    if (v.magnitude_y.empty() || true)
      s << "]";
    if (true || !indent.empty())
      s << std::endl;
    s << indent << "phase_x: ";
    if (v.phase_x.empty() || true)
      s << "[";
    for (size_t i = 0; i < v.phase_x.size(); ++i)
    {
      if (true && i > 0)
        s << ", ";
      else if (!true)
        s << std::endl << indent << "  -";
      Printer<double>::stream(s, true ? std::string() : indent + "    ", v.phase_x[i]);
    }
    if (v.phase_x.empty() || true)
      s << "]";
    if (true || !indent.empty())
      s << std::endl;
    s << indent << "phase_y: ";
    if (v.phase_y.empty() || true)
      s << "[";
    for (size_t i = 0; i < v.phase_y.size(); ++i)
    {
      if (true && i > 0)
        s << ", ";
      else if (!true)
        s << std::endl << indent << "  -";
      Printer<double>::stream(s, true ? std::string() : indent + "    ", v.phase_y[i]);
    }
    if (v.phase_y.empty() || true)
      s << "]";
  }
};

} // namespace message_operations
} // namespace ros

#endif // SHIYAN2_MESSAGE_FFTRESPONSE_H
