// Generated by gencpp from file kmriiwa_chemist_msgs/KMRStatus.msg
// DO NOT EDIT!


#ifndef KMRIIWA_CHEMIST_MSGS_MESSAGE_KMRSTATUS_H
#define KMRIIWA_CHEMIST_MSGS_MESSAGE_KMRSTATUS_H


#include <string>
#include <vector>
#include <map>

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

#include <std_msgs/Header.h>

namespace kmriiwa_chemist_msgs
{
template <class ContainerAllocator>
struct KMRStatus_
{
  typedef KMRStatus_<ContainerAllocator> Type;

  KMRStatus_()
    : header()
    , robot_op_state()
    , commandable(false)
    , stationary(false)
    , last_graph_node_id(0)
    , safety_state(0)
    , state_of_charge(0.0)  {
    }
  KMRStatus_(const ContainerAllocator& _alloc)
    : header(_alloc)
    , robot_op_state(_alloc)
    , commandable(false)
    , stationary(false)
    , last_graph_node_id(0)
    , safety_state(0)
    , state_of_charge(0.0)  {
  (void)_alloc;
    }



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

   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _robot_op_state_type;
  _robot_op_state_type robot_op_state;

   typedef uint8_t _commandable_type;
  _commandable_type commandable;

   typedef uint8_t _stationary_type;
  _stationary_type stationary;

   typedef int32_t _last_graph_node_id_type;
  _last_graph_node_id_type last_graph_node_id;

   typedef int32_t _safety_state_type;
  _safety_state_type safety_state;

   typedef float _state_of_charge_type;
  _state_of_charge_type state_of_charge;



// reducing the odds to have name collisions with Windows.h 
#if defined(_WIN32) && defined(ACKNOWLEDGE_REQUIRED)
  #undef ACKNOWLEDGE_REQUIRED
#endif
#if defined(_WIN32) && defined(EMERGENCY_STOP)
  #undef EMERGENCY_STOP
#endif
#if defined(_WIN32) && defined(SAFE)
  #undef SAFE
#endif
#if defined(_WIN32) && defined(WARNING_FILED)
  #undef WARNING_FILED
#endif

  enum {
    ACKNOWLEDGE_REQUIRED = 1,
    EMERGENCY_STOP = 2,
    SAFE = 3,
    WARNING_FILED = 4,
  };


  typedef boost::shared_ptr< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> const> ConstPtr;

}; // struct KMRStatus_

typedef ::kmriiwa_chemist_msgs::KMRStatus_<std::allocator<void> > KMRStatus;

typedef boost::shared_ptr< ::kmriiwa_chemist_msgs::KMRStatus > KMRStatusPtr;
typedef boost::shared_ptr< ::kmriiwa_chemist_msgs::KMRStatus const> KMRStatusConstPtr;

// constants requiring out of line definition

   

   

   

   



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


template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator==(const ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator1> & lhs, const ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator2> & rhs)
{
  return lhs.header == rhs.header &&
    lhs.robot_op_state == rhs.robot_op_state &&
    lhs.commandable == rhs.commandable &&
    lhs.stationary == rhs.stationary &&
    lhs.last_graph_node_id == rhs.last_graph_node_id &&
    lhs.safety_state == rhs.safety_state &&
    lhs.state_of_charge == rhs.state_of_charge;
}

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


} // namespace kmriiwa_chemist_msgs

namespace ros
{
namespace message_traits
{





template <class ContainerAllocator>
struct IsMessage< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> >
  : TrueType
  { };

template <class ContainerAllocator>
struct IsMessage< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> const>
  : TrueType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> >
  : FalseType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> const>
  : FalseType
  { };

template <class ContainerAllocator>
struct HasHeader< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> >
  : TrueType
  { };

template <class ContainerAllocator>
struct HasHeader< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> const>
  : TrueType
  { };


template<class ContainerAllocator>
struct MD5Sum< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> >
{
  static const char* value()
  {
    return "a9bcf9045c06bd7ceb24e87815705b06";
  }

  static const char* value(const ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator>&) { return value(); }
  static const uint64_t static_value1 = 0xa9bcf9045c06bd7cULL;
  static const uint64_t static_value2 = 0xeb24e87815705b06ULL;
};

template<class ContainerAllocator>
struct DataType< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> >
{
  static const char* value()
  {
    return "kmriiwa_chemist_msgs/KMRStatus";
  }

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

template<class ContainerAllocator>
struct Definition< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> >
{
  static const char* value()
  {
    return "Header header\n"
"string robot_op_state\n"
"bool commandable\n"
"bool stationary\n"
"int32 last_graph_node_id\n"
"int32 ACKNOWLEDGE_REQUIRED = 1\n"
"int32 EMERGENCY_STOP = 2\n"
"int32 SAFE = 3\n"
"int32 WARNING_FILED = 4\n"
"int32 safety_state\n"
"float32 state_of_charge\n"
"\n"
"\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.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
"# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
"# time-handling sugar is provided by the client library\n"
"time stamp\n"
"#Frame this data is associated with\n"
"string frame_id\n"
;
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

  template<class ContainerAllocator> struct Serializer< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> >
  {
    template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
    {
      stream.next(m.header);
      stream.next(m.robot_op_state);
      stream.next(m.commandable);
      stream.next(m.stationary);
      stream.next(m.last_graph_node_id);
      stream.next(m.safety_state);
      stream.next(m.state_of_charge);
    }

    ROS_DECLARE_ALLINONE_SERIALIZER
  }; // struct KMRStatus_

} // namespace serialization
} // namespace ros

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kmriiwa_chemist_msgs::KMRStatus_<ContainerAllocator>& v)
  {
    s << indent << "header: ";
    s << std::endl;
    Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
    s << indent << "robot_op_state: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.robot_op_state);
    s << indent << "commandable: ";
    Printer<uint8_t>::stream(s, indent + "  ", v.commandable);
    s << indent << "stationary: ";
    Printer<uint8_t>::stream(s, indent + "  ", v.stationary);
    s << indent << "last_graph_node_id: ";
    Printer<int32_t>::stream(s, indent + "  ", v.last_graph_node_id);
    s << indent << "safety_state: ";
    Printer<int32_t>::stream(s, indent + "  ", v.safety_state);
    s << indent << "state_of_charge: ";
    Printer<float>::stream(s, indent + "  ", v.state_of_charge);
  }
};

} // namespace message_operations
} // namespace ros

#endif // KMRIIWA_CHEMIST_MSGS_MESSAGE_KMRSTATUS_H
