/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros-common/work/common-1.4.3/bond/msg/Status.msg */
#ifndef BOND_MESSAGE_STATUS_H
#define BOND_MESSAGE_STATUS_H
#include <string>
#include <vector>
#include <ostream>
#include "ros/serialization.h"
#include "ros/builtin_message_traits.h"
#include "ros/message_operations.h"
#include "ros/message.h"
#include "ros/time.h"

#include "std_msgs/Header.h"

namespace bond
{
template <class ContainerAllocator>
struct Status_ : public ros::Message
{
  typedef Status_<ContainerAllocator> Type;

  Status_()
  : header()
  , id()
  , instance_id()
  , active(false)
  , heartbeat_timeout(0.0)
  , heartbeat_period(0.0)
  {
  }

  Status_(const ContainerAllocator& _alloc)
  : header(_alloc)
  , id(_alloc)
  , instance_id(_alloc)
  , active(false)
  , heartbeat_timeout(0.0)
  , heartbeat_period(0.0)
  {
  }

  typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
   ::std_msgs::Header_<ContainerAllocator>  header;

  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _id_type;
  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  id;

  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _instance_id_type;
  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  instance_id;

  typedef uint8_t _active_type;
  uint8_t active;

  typedef float _heartbeat_timeout_type;
  float heartbeat_timeout;

  typedef float _heartbeat_period_type;
  float heartbeat_period;


private:
  static const char* __s_getDataType_() { return "bond/Status"; }
public:
  ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }

  ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }

private:
  static const char* __s_getMD5Sum_() { return "eacc84bf5d65b6777d4c50f463dfb9c8"; }
public:
  ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }

  ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }

private:
  static const char* __s_getMessageDefinition_() { return "Header header\n\
string id  # ID of the bond\n\
string instance_id  # Unique ID for an individual in a bond\n\
bool active\n\
\n\
# Including the timeouts for the bond makes it easier to debug mis-matches\n\
# between the two sides.\n\
float32 heartbeat_timeout\n\
float32 heartbeat_period\n\
================================================================================\n\
MSG: std_msgs/Header\n\
# Standard metadata for higher-level stamped data types.\n\
# This is generally used to communicate timestamped data \n\
# in a particular coordinate frame.\n\
# \n\
# sequence ID: consecutively increasing ID \n\
uint32 seq\n\
#Two-integer timestamp that is expressed as:\n\
# * stamp.secs: seconds (stamp_secs) since epoch\n\
# * stamp.nsecs: nanoseconds since stamp_secs\n\
# time-handling sugar is provided by the client library\n\
time stamp\n\
#Frame this data is associated with\n\
# 0: no frame\n\
# 1: global frame\n\
string frame_id\n\
\n\
"; }
public:
  ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }

  ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }

  ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
  {
    ros::serialization::OStream stream(write_ptr, 1000000000);
    ros::serialization::serialize(stream, header);
    ros::serialization::serialize(stream, id);
    ros::serialization::serialize(stream, instance_id);
    ros::serialization::serialize(stream, active);
    ros::serialization::serialize(stream, heartbeat_timeout);
    ros::serialization::serialize(stream, heartbeat_period);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, header);
    ros::serialization::deserialize(stream, id);
    ros::serialization::deserialize(stream, instance_id);
    ros::serialization::deserialize(stream, active);
    ros::serialization::deserialize(stream, heartbeat_timeout);
    ros::serialization::deserialize(stream, heartbeat_period);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(header);
    size += ros::serialization::serializationLength(id);
    size += ros::serialization::serializationLength(instance_id);
    size += ros::serialization::serializationLength(active);
    size += ros::serialization::serializationLength(heartbeat_timeout);
    size += ros::serialization::serializationLength(heartbeat_period);
    return size;
  }

  typedef boost::shared_ptr< ::bond::Status_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::bond::Status_<ContainerAllocator>  const> ConstPtr;
}; // struct Status
typedef  ::bond::Status_<std::allocator<void> > Status;

typedef boost::shared_ptr< ::bond::Status> StatusPtr;
typedef boost::shared_ptr< ::bond::Status const> StatusConstPtr;


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

} // namespace bond

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::bond::Status_<ContainerAllocator> > {
  static const char* value() 
  {
    return "eacc84bf5d65b6777d4c50f463dfb9c8";
  }

  static const char* value(const  ::bond::Status_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xeacc84bf5d65b677ULL;
  static const uint64_t static_value2 = 0x7d4c50f463dfb9c8ULL;
};

template<class ContainerAllocator>
struct DataType< ::bond::Status_<ContainerAllocator> > {
  static const char* value() 
  {
    return "bond/Status";
  }

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

template<class ContainerAllocator>
struct Definition< ::bond::Status_<ContainerAllocator> > {
  static const char* value() 
  {
    return "Header header\n\
string id  # ID of the bond\n\
string instance_id  # Unique ID for an individual in a bond\n\
bool active\n\
\n\
# Including the timeouts for the bond makes it easier to debug mis-matches\n\
# between the two sides.\n\
float32 heartbeat_timeout\n\
float32 heartbeat_period\n\
================================================================================\n\
MSG: std_msgs/Header\n\
# Standard metadata for higher-level stamped data types.\n\
# This is generally used to communicate timestamped data \n\
# in a particular coordinate frame.\n\
# \n\
# sequence ID: consecutively increasing ID \n\
uint32 seq\n\
#Two-integer timestamp that is expressed as:\n\
# * stamp.secs: seconds (stamp_secs) since epoch\n\
# * stamp.nsecs: nanoseconds since stamp_secs\n\
# time-handling sugar is provided by the client library\n\
time stamp\n\
#Frame this data is associated with\n\
# 0: no frame\n\
# 1: global frame\n\
string frame_id\n\
\n\
";
  }

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

template<class ContainerAllocator> struct HasHeader< ::bond::Status_<ContainerAllocator> > : public TrueType {};
template<class ContainerAllocator> struct HasHeader< const ::bond::Status_<ContainerAllocator> > : public TrueType {};
} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::bond::Status_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.header);
    stream.next(m.id);
    stream.next(m.instance_id);
    stream.next(m.active);
    stream.next(m.heartbeat_timeout);
    stream.next(m.heartbeat_period);
  }

  ROS_DECLARE_ALLINONE_SERIALIZER;
}; // struct Status_
} // namespace serialization
} // namespace ros

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::bond::Status_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::bond::Status_<ContainerAllocator> & v) 
  {
    s << indent << "header: ";
s << std::endl;
    Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
    s << indent << "id: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.id);
    s << indent << "instance_id: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.instance_id);
    s << indent << "active: ";
    Printer<uint8_t>::stream(s, indent + "  ", v.active);
    s << indent << "heartbeat_timeout: ";
    Printer<float>::stream(s, indent + "  ", v.heartbeat_timeout);
    s << indent << "heartbeat_period: ";
    Printer<float>::stream(s, indent + "  ", v.heartbeat_period);
  }
};


} // namespace message_operations
} // namespace ros

#endif // BOND_MESSAGE_STATUS_H

