// Generated by gencpp from file pi4_peristaltic_pump_msgs/DispenserCommand.msg
// DO NOT EDIT!


#ifndef PI4_PERISTALTIC_PUMP_MSGS_MESSAGE_DISPENSERCOMMAND_H
#define PI4_PERISTALTIC_PUMP_MSGS_MESSAGE_DISPENSERCOMMAND_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>


namespace pi4_peristaltic_pump_msgs
{
template <class ContainerAllocator>
struct DispenserCommand_
{
  typedef DispenserCommand_<ContainerAllocator> Type;

  DispenserCommand_()
    : dispenser_command(0)
    , dispenser_speed(0.0)
    , dispenser_time(0)
    , dispenser_ml(0.0)  {
    }
  DispenserCommand_(const ContainerAllocator& _alloc)
    : dispenser_command(0)
    , dispenser_speed(0.0)
    , dispenser_time(0)
    , dispenser_ml(0.0)  {
  (void)_alloc;
    }



   typedef int32_t _dispenser_command_type;
  _dispenser_command_type dispenser_command;

   typedef float _dispenser_speed_type;
  _dispenser_speed_type dispenser_speed;

   typedef int32_t _dispenser_time_type;
  _dispenser_time_type dispenser_time;

   typedef float _dispenser_ml_type;
  _dispenser_ml_type dispenser_ml;



// reducing the odds to have name collisions with Windows.h 
#if defined(_WIN32) && defined(ON)
  #undef ON
#endif
#if defined(_WIN32) && defined(OFF)
  #undef OFF
#endif
#if defined(_WIN32) && defined(RESET)
  #undef RESET
#endif
#if defined(_WIN32) && defined(REVERSE)
  #undef REVERSE
#endif
#if defined(_WIN32) && defined(DISPENSEINDEF)
  #undef DISPENSEINDEF
#endif
#if defined(_WIN32) && defined(DISPENSEINDEFREV)
  #undef DISPENSEINDEFREV
#endif
#if defined(_WIN32) && defined(DISPENSE)
  #undef DISPENSE
#endif
#if defined(_WIN32) && defined(DISPENSEREV)
  #undef DISPENSEREV
#endif
#if defined(_WIN32) && defined(DISPENSEPID)
  #undef DISPENSEPID
#endif

  enum {
    ON = 0,
    OFF = 1,
    RESET = 2,
    REVERSE = 3,
    DISPENSEINDEF = 4,
    DISPENSEINDEFREV = 5,
    DISPENSE = 6,
    DISPENSEREV = 7,
    DISPENSEPID = 8,
  };


  typedef boost::shared_ptr< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> const> ConstPtr;

}; // struct DispenserCommand_

typedef ::pi4_peristaltic_pump_msgs::DispenserCommand_<std::allocator<void> > DispenserCommand;

typedef boost::shared_ptr< ::pi4_peristaltic_pump_msgs::DispenserCommand > DispenserCommandPtr;
typedef boost::shared_ptr< ::pi4_peristaltic_pump_msgs::DispenserCommand const> DispenserCommandConstPtr;

// constants requiring out of line definition

   

   

   

   

   

   

   

   

   



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


template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator==(const ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator1> & lhs, const ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator2> & rhs)
{
  return lhs.dispenser_command == rhs.dispenser_command &&
    lhs.dispenser_speed == rhs.dispenser_speed &&
    lhs.dispenser_time == rhs.dispenser_time &&
    lhs.dispenser_ml == rhs.dispenser_ml;
}

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


} // namespace pi4_peristaltic_pump_msgs

namespace ros
{
namespace message_traits
{





template <class ContainerAllocator>
struct IsMessage< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> >
  : TrueType
  { };

template <class ContainerAllocator>
struct IsMessage< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> const>
  : TrueType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> >
  : TrueType
  { };

template <class ContainerAllocator>
struct IsFixedSize< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> const>
  : TrueType
  { };

template <class ContainerAllocator>
struct HasHeader< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> >
  : FalseType
  { };

template <class ContainerAllocator>
struct HasHeader< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> const>
  : FalseType
  { };


template<class ContainerAllocator>
struct MD5Sum< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> >
{
  static const char* value()
  {
    return "19eeefa89e53cf5a80032222d498cad3";
  }

  static const char* value(const ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator>&) { return value(); }
  static const uint64_t static_value1 = 0x19eeefa89e53cf5aULL;
  static const uint64_t static_value2 = 0x80032222d498cad3ULL;
};

template<class ContainerAllocator>
struct DataType< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> >
{
  static const char* value()
  {
    return "pi4_peristaltic_pump_msgs/DispenserCommand";
  }

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

template<class ContainerAllocator>
struct Definition< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> >
{
  static const char* value()
  {
    return "# Available commands to use the Fisher Scientific PPS4102 Top Pan balance \n"
"int32 ON = 0\n"
"int32 OFF = 1\n"
"int32 RESET = 2\n"
"int32 REVERSE = 3\n"
"int32 DISPENSEINDEF = 4\n"
"int32 DISPENSEINDEFREV = 5\n"
"int32 DISPENSE = 6\n"
"int32 DISPENSEREV = 7\n"
"int32 DISPENSEPID = 8\n"
"\n"
"int32 dispenser_command\n"
"float32 dispenser_speed\n"
"int32 dispenser_time\n"
"float32 dispenser_ml\n"
;
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

  template<class ContainerAllocator> struct Serializer< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> >
  {
    template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
    {
      stream.next(m.dispenser_command);
      stream.next(m.dispenser_speed);
      stream.next(m.dispenser_time);
      stream.next(m.dispenser_ml);
    }

    ROS_DECLARE_ALLINONE_SERIALIZER
  }; // struct DispenserCommand_

} // namespace serialization
} // namespace ros

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pi4_peristaltic_pump_msgs::DispenserCommand_<ContainerAllocator>& v)
  {
    s << indent << "dispenser_command: ";
    Printer<int32_t>::stream(s, indent + "  ", v.dispenser_command);
    s << indent << "dispenser_speed: ";
    Printer<float>::stream(s, indent + "  ", v.dispenser_speed);
    s << indent << "dispenser_time: ";
    Printer<int32_t>::stream(s, indent + "  ", v.dispenser_time);
    s << indent << "dispenser_ml: ";
    Printer<float>::stream(s, indent + "  ", v.dispenser_ml);
  }
};

} // namespace message_operations
} // namespace ros

#endif // PI4_PERISTALTIC_PUMP_MSGS_MESSAGE_DISPENSERCOMMAND_H
