//#line 2 "//usr/share/dynamic_reconfigure/cmake/../templates/ConfigType.h.template"
// *********************************************************
// 
// File autogenerated for the threshold package 
// by the dynamic_reconfigure package.
// Please do not edit.
// 
// ********************************************************/

#ifndef __threshold__THRESHOLDCONFIG_H__
#define __threshold__THRESHOLDCONFIG_H__

#include <dynamic_reconfigure/config_tools.h>
#include <limits>
#include <ros/node_handle.h>
#include <dynamic_reconfigure/ConfigDescription.h>
#include <dynamic_reconfigure/ParamDescription.h>
#include <dynamic_reconfigure/Group.h>
#include <dynamic_reconfigure/config_init_mutex.h>
#include <boost/any.hpp>

namespace threshold
{
  class ThresholdConfigStatics;
  
  class ThresholdConfig
  {
  public:
    class AbstractParamDescription : public dynamic_reconfigure::ParamDescription
    {
    public:
      AbstractParamDescription(std::string n, std::string t, uint32_t l, 
          std::string d, std::string e)
      {
        name = n;
        type = t;
        level = l;
        description = d;
        edit_method = e;
      }
      
      virtual void clamp(ThresholdConfig &config, const ThresholdConfig &max, const ThresholdConfig &min) const = 0;
      virtual void calcLevel(uint32_t &level, const ThresholdConfig &config1, const ThresholdConfig &config2) const = 0;
      virtual void fromServer(const ros::NodeHandle &nh, ThresholdConfig &config) const = 0;
      virtual void toServer(const ros::NodeHandle &nh, const ThresholdConfig &config) const = 0;
      virtual bool fromMessage(const dynamic_reconfigure::Config &msg, ThresholdConfig &config) const = 0;
      virtual void toMessage(dynamic_reconfigure::Config &msg, const ThresholdConfig &config) const = 0;
      virtual void getValue(const ThresholdConfig &config, boost::any &val) const = 0;
    };

    typedef boost::shared_ptr<AbstractParamDescription> AbstractParamDescriptionPtr;
    typedef boost::shared_ptr<const AbstractParamDescription> AbstractParamDescriptionConstPtr;
    
    template <class T>
    class ParamDescription : public AbstractParamDescription
    {
    public:
      ParamDescription(std::string a_name, std::string a_type, uint32_t a_level, 
          std::string a_description, std::string a_edit_method, T ThresholdConfig::* a_f) :
        AbstractParamDescription(a_name, a_type, a_level, a_description, a_edit_method),
        field(a_f)
      {}

      T (ThresholdConfig::* field);

      virtual void clamp(ThresholdConfig &config, const ThresholdConfig &max, const ThresholdConfig &min) const
      {
        if (config.*field > max.*field)
          config.*field = max.*field;
        
        if (config.*field < min.*field)
          config.*field = min.*field;
      }

      virtual void calcLevel(uint32_t &comb_level, const ThresholdConfig &config1, const ThresholdConfig &config2) const
      {
        if (config1.*field != config2.*field)
          comb_level |= level;
      }

      virtual void fromServer(const ros::NodeHandle &nh, ThresholdConfig &config) const
      {
        nh.getParam(name, config.*field);
      }

      virtual void toServer(const ros::NodeHandle &nh, const ThresholdConfig &config) const
      {
        nh.setParam(name, config.*field);
      }

      virtual bool fromMessage(const dynamic_reconfigure::Config &msg, ThresholdConfig &config) const
      {
        return dynamic_reconfigure::ConfigTools::getParameter(msg, name, config.*field);
      }

      virtual void toMessage(dynamic_reconfigure::Config &msg, const ThresholdConfig &config) const
      {
        dynamic_reconfigure::ConfigTools::appendParameter(msg, name, config.*field);
      }

      virtual void getValue(const ThresholdConfig &config, boost::any &val) const
      {
        val = config.*field;
      }
    };

    class AbstractGroupDescription : public dynamic_reconfigure::Group
    {
      public:
      AbstractGroupDescription(std::string n, std::string t, int p, int i, bool s)
      {
        name = n;
        type = t;
        parent = p;
        state = s;
        id = i;
      }

      std::vector<AbstractParamDescriptionConstPtr> abstract_parameters;
      bool state;

      virtual void toMessage(dynamic_reconfigure::Config &msg, const boost::any &config) const = 0;
      virtual bool fromMessage(const dynamic_reconfigure::Config &msg, boost::any &config) const =0;
      virtual void updateParams(boost::any &cfg, ThresholdConfig &top) const= 0;
      virtual void setInitialState(boost::any &cfg) const = 0;


      void convertParams()
      {
        for(std::vector<AbstractParamDescriptionConstPtr>::const_iterator i = abstract_parameters.begin(); i != abstract_parameters.end(); ++i)
        {
          parameters.push_back(dynamic_reconfigure::ParamDescription(**i));
        }
      }
    };

    typedef boost::shared_ptr<AbstractGroupDescription> AbstractGroupDescriptionPtr;
    typedef boost::shared_ptr<const AbstractGroupDescription> AbstractGroupDescriptionConstPtr;

    template<class T, class PT>
    class GroupDescription : public AbstractGroupDescription
    {
    public:
      GroupDescription(std::string a_name, std::string a_type, int a_parent, int a_id, bool a_s, T PT::* a_f) : AbstractGroupDescription(a_name, a_type, a_parent, a_id, a_s), field(a_f)
      {
      }

      GroupDescription(const GroupDescription<T, PT>& g): AbstractGroupDescription(g.name, g.type, g.parent, g.id, g.state), field(g.field), groups(g.groups)
      {
        parameters = g.parameters;
        abstract_parameters = g.abstract_parameters;
      }

      virtual bool fromMessage(const dynamic_reconfigure::Config &msg, boost::any &cfg) const
      {
        PT* config = boost::any_cast<PT*>(cfg);
        if(!dynamic_reconfigure::ConfigTools::getGroupState(msg, name, (*config).*field))
          return false;

        for(std::vector<AbstractGroupDescriptionConstPtr>::const_iterator i = groups.begin(); i != groups.end(); ++i)
        {
          boost::any n = &((*config).*field);
          if(!(*i)->fromMessage(msg, n))
            return false;
        }

        return true;
      }

      virtual void setInitialState(boost::any &cfg) const
      {
        PT* config = boost::any_cast<PT*>(cfg);
        T* group = &((*config).*field);
        group->state = state;

        for(std::vector<AbstractGroupDescriptionConstPtr>::const_iterator i = groups.begin(); i != groups.end(); ++i)
        {
          boost::any n = boost::any(&((*config).*field));
          (*i)->setInitialState(n);
        }

      }

      virtual void updateParams(boost::any &cfg, ThresholdConfig &top) const
      {
        PT* config = boost::any_cast<PT*>(cfg);

        T* f = &((*config).*field);
        f->setParams(top, abstract_parameters);

        for(std::vector<AbstractGroupDescriptionConstPtr>::const_iterator i = groups.begin(); i != groups.end(); ++i)
        {
          boost::any n = &((*config).*field);
          (*i)->updateParams(n, top);
        }
      }

      virtual void toMessage(dynamic_reconfigure::Config &msg, const boost::any &cfg) const
      {
        const PT config = boost::any_cast<PT>(cfg);
        dynamic_reconfigure::ConfigTools::appendGroup<T>(msg, name, id, parent, config.*field);

        for(std::vector<AbstractGroupDescriptionConstPtr>::const_iterator i = groups.begin(); i != groups.end(); ++i)
        {
          (*i)->toMessage(msg, config.*field);
        }
      }

      T (PT::* field);
      std::vector<ThresholdConfig::AbstractGroupDescriptionConstPtr> groups;
    };
    
class DEFAULT
{
  public:
    DEFAULT()
    {
      state = true;
      name = "Default";
    }

    void setParams(ThresholdConfig &config, const std::vector<AbstractParamDescriptionConstPtr> params)
    {
      for (std::vector<AbstractParamDescriptionConstPtr>::const_iterator _i = params.begin(); _i != params.end(); ++_i)
      {
        boost::any val;
        (*_i)->getValue(config, val);

        if("use_camera_info"==(*_i)->name){use_camera_info = boost::any_cast<bool>(val);}
        if("apply_otsu"==(*_i)->name){apply_otsu = boost::any_cast<bool>(val);}
        if("threshold_type"==(*_i)->name){threshold_type = boost::any_cast<int>(val);}
        if("threshold"==(*_i)->name){threshold = boost::any_cast<int>(val);}
        if("max_binary"==(*_i)->name){max_binary = boost::any_cast<int>(val);}
      }
    }

    bool use_camera_info;
bool apply_otsu;
int threshold_type;
int threshold;
int max_binary;

    bool state;
    std::string name;

    
}groups;



//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      bool use_camera_info;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      bool apply_otsu;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      int threshold_type;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      int threshold;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      int max_binary;
//#line 218 "//usr/share/dynamic_reconfigure/cmake/../templates/ConfigType.h.template"

    bool __fromMessage__(dynamic_reconfigure::Config &msg)
    {
      const std::vector<AbstractParamDescriptionConstPtr> &__param_descriptions__ = __getParamDescriptions__();
      const std::vector<AbstractGroupDescriptionConstPtr> &__group_descriptions__ = __getGroupDescriptions__();

      int count = 0;
      for (std::vector<AbstractParamDescriptionConstPtr>::const_iterator i = __param_descriptions__.begin(); i != __param_descriptions__.end(); ++i)
        if ((*i)->fromMessage(msg, *this))
          count++;

      for (std::vector<AbstractGroupDescriptionConstPtr>::const_iterator i = __group_descriptions__.begin(); i != __group_descriptions__.end(); i ++)
      {
        if ((*i)->id == 0)
        {
          boost::any n = boost::any(this);
          (*i)->updateParams(n, *this);
          (*i)->fromMessage(msg, n);
        }
      }

      if (count != dynamic_reconfigure::ConfigTools::size(msg))
      {
        ROS_ERROR("ThresholdConfig::__fromMessage__ called with an unexpected parameter.");
        ROS_ERROR("Booleans:");
        for (unsigned int i = 0; i < msg.bools.size(); i++)
          ROS_ERROR("  %s", msg.bools[i].name.c_str());
        ROS_ERROR("Integers:");
        for (unsigned int i = 0; i < msg.ints.size(); i++)
          ROS_ERROR("  %s", msg.ints[i].name.c_str());
        ROS_ERROR("Doubles:");
        for (unsigned int i = 0; i < msg.doubles.size(); i++)
          ROS_ERROR("  %s", msg.doubles[i].name.c_str());
        ROS_ERROR("Strings:");
        for (unsigned int i = 0; i < msg.strs.size(); i++)
          ROS_ERROR("  %s", msg.strs[i].name.c_str());
        // @todo Check that there are no duplicates. Make this error more
        // explicit.
        return false;
      }
      return true;
    }

    // This version of __toMessage__ is used during initialization of
    // statics when __getParamDescriptions__ can't be called yet.
    void __toMessage__(dynamic_reconfigure::Config &msg, const std::vector<AbstractParamDescriptionConstPtr> &__param_descriptions__, const std::vector<AbstractGroupDescriptionConstPtr> &__group_descriptions__) const
    {
      dynamic_reconfigure::ConfigTools::clear(msg);
      for (std::vector<AbstractParamDescriptionConstPtr>::const_iterator i = __param_descriptions__.begin(); i != __param_descriptions__.end(); ++i)
        (*i)->toMessage(msg, *this);

      for (std::vector<AbstractGroupDescriptionConstPtr>::const_iterator i = __group_descriptions__.begin(); i != __group_descriptions__.end(); ++i)
      {
        if((*i)->id == 0)
        {
          (*i)->toMessage(msg, *this);
        }
      }
    }
    
    void __toMessage__(dynamic_reconfigure::Config &msg) const
    {
      const std::vector<AbstractParamDescriptionConstPtr> &__param_descriptions__ = __getParamDescriptions__();
      const std::vector<AbstractGroupDescriptionConstPtr> &__group_descriptions__ = __getGroupDescriptions__();
      __toMessage__(msg, __param_descriptions__, __group_descriptions__);
    }
    
    void __toServer__(const ros::NodeHandle &nh) const
    {
      const std::vector<AbstractParamDescriptionConstPtr> &__param_descriptions__ = __getParamDescriptions__();
      for (std::vector<AbstractParamDescriptionConstPtr>::const_iterator i = __param_descriptions__.begin(); i != __param_descriptions__.end(); ++i)
        (*i)->toServer(nh, *this);
    }

    void __fromServer__(const ros::NodeHandle &nh)
    {
      static bool setup=false;

      const std::vector<AbstractParamDescriptionConstPtr> &__param_descriptions__ = __getParamDescriptions__();
      for (std::vector<AbstractParamDescriptionConstPtr>::const_iterator i = __param_descriptions__.begin(); i != __param_descriptions__.end(); ++i)
        (*i)->fromServer(nh, *this);

      const std::vector<AbstractGroupDescriptionConstPtr> &__group_descriptions__ = __getGroupDescriptions__();
      for (std::vector<AbstractGroupDescriptionConstPtr>::const_iterator i = __group_descriptions__.begin(); i != __group_descriptions__.end(); i++){
        if (!setup && (*i)->id == 0) {
          setup = true;
          boost::any n = boost::any(this);
          (*i)->setInitialState(n);
        }
      }
    }

    void __clamp__()
    {
      const std::vector<AbstractParamDescriptionConstPtr> &__param_descriptions__ = __getParamDescriptions__();
      const ThresholdConfig &__max__ = __getMax__();
      const ThresholdConfig &__min__ = __getMin__();
      for (std::vector<AbstractParamDescriptionConstPtr>::const_iterator i = __param_descriptions__.begin(); i != __param_descriptions__.end(); ++i)
        (*i)->clamp(*this, __max__, __min__);
    }

    uint32_t __level__(const ThresholdConfig &config) const
    {
      const std::vector<AbstractParamDescriptionConstPtr> &__param_descriptions__ = __getParamDescriptions__();
      uint32_t level = 0;
      for (std::vector<AbstractParamDescriptionConstPtr>::const_iterator i = __param_descriptions__.begin(); i != __param_descriptions__.end(); ++i)
        (*i)->calcLevel(level, config, *this);
      return level;
    }
    
    static const dynamic_reconfigure::ConfigDescription &__getDescriptionMessage__();
    static const ThresholdConfig &__getDefault__();
    static const ThresholdConfig &__getMax__();
    static const ThresholdConfig &__getMin__();
    static const std::vector<AbstractParamDescriptionConstPtr> &__getParamDescriptions__();
    static const std::vector<AbstractGroupDescriptionConstPtr> &__getGroupDescriptions__();
    
  private:
    static const ThresholdConfigStatics *__get_statics__();
  };
  
  template <> // Max and min are ignored for strings.
  inline void ThresholdConfig::ParamDescription<std::string>::clamp(ThresholdConfig &config, const ThresholdConfig &max, const ThresholdConfig &min) const
  {
    (void) config;
    (void) min;
    (void) max;
    return;
  }

  class ThresholdConfigStatics
  {
    friend class ThresholdConfig;
    
    ThresholdConfigStatics()
    {
ThresholdConfig::GroupDescription<ThresholdConfig::DEFAULT, ThresholdConfig> Default("Default", "", 0, 0, true, &ThresholdConfig::groups);
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __min__.use_camera_info = 0;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __max__.use_camera_info = 1;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __default__.use_camera_info = 1;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      Default.abstract_parameters.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<bool>("use_camera_info", "bool", 0, "Indicates that the camera_info topic should be subscribed to to get the default input_frame_id. Otherwise the frame from the image message will be used.", "", &ThresholdConfig::use_camera_info)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __param_descriptions__.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<bool>("use_camera_info", "bool", 0, "Indicates that the camera_info topic should be subscribed to to get the default input_frame_id. Otherwise the frame from the image message will be used.", "", &ThresholdConfig::use_camera_info)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __min__.apply_otsu = 0;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __max__.apply_otsu = 1;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __default__.apply_otsu = 0;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      Default.abstract_parameters.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<bool>("apply_otsu", "bool", 0, "Apply otsu threshold", "", &ThresholdConfig::apply_otsu)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __param_descriptions__.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<bool>("apply_otsu", "bool", 0, "Apply otsu threshold", "", &ThresholdConfig::apply_otsu)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __min__.threshold_type = 0;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __max__.threshold_type = 4;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __default__.threshold_type = 0;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      Default.abstract_parameters.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<int>("threshold_type", "int", 0, "Threshold Type", "{'enum_description': 'An enum for Threshold Types', 'enum': [{'srcline': 10, 'description': 'Binary', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 0, 'ctype': 'int', 'type': 'int', 'name': 'Binary'}, {'srcline': 11, 'description': 'Binary Inverted', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 1, 'ctype': 'int', 'type': 'int', 'name': 'Binary_Inverted'}, {'srcline': 12, 'description': 'Threshold Truncated', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 2, 'ctype': 'int', 'type': 'int', 'name': 'Threshold_Truncated'}, {'srcline': 13, 'description': 'Threshold to Zero', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 3, 'ctype': 'int', 'type': 'int', 'name': 'Threshold_To_Zero'}, {'srcline': 14, 'description': 'Threshold to zero inverted', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 4, 'ctype': 'int', 'type': 'int', 'name': 'Threshold_To_Zero_Inverted'}]}", &ThresholdConfig::threshold_type)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __param_descriptions__.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<int>("threshold_type", "int", 0, "Threshold Type", "{'enum_description': 'An enum for Threshold Types', 'enum': [{'srcline': 10, 'description': 'Binary', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 0, 'ctype': 'int', 'type': 'int', 'name': 'Binary'}, {'srcline': 11, 'description': 'Binary Inverted', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 1, 'ctype': 'int', 'type': 'int', 'name': 'Binary_Inverted'}, {'srcline': 12, 'description': 'Threshold Truncated', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 2, 'ctype': 'int', 'type': 'int', 'name': 'Threshold_Truncated'}, {'srcline': 13, 'description': 'Threshold to Zero', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 3, 'ctype': 'int', 'type': 'int', 'name': 'Threshold_To_Zero'}, {'srcline': 14, 'description': 'Threshold to zero inverted', 'srcfile': '/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg', 'cconsttype': 'const int', 'value': 4, 'ctype': 'int', 'type': 'int', 'name': 'Threshold_To_Zero_Inverted'}]}", &ThresholdConfig::threshold_type)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __min__.threshold = 0;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __max__.threshold = 255;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __default__.threshold = 150;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      Default.abstract_parameters.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<int>("threshold", "int", 0, "Threshold value", "", &ThresholdConfig::threshold)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __param_descriptions__.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<int>("threshold", "int", 0, "Threshold value", "", &ThresholdConfig::threshold)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __min__.max_binary = 0;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __max__.max_binary = 255;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __default__.max_binary = 255;
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      Default.abstract_parameters.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<int>("max_binary", "int", 0, "Max Binary value", "", &ThresholdConfig::max_binary)));
//#line 293 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __param_descriptions__.push_back(ThresholdConfig::AbstractParamDescriptionConstPtr(new ThresholdConfig::ParamDescription<int>("max_binary", "int", 0, "Max Binary value", "", &ThresholdConfig::max_binary)));
//#line 246 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      Default.convertParams();
//#line 246 "//usr/lib/python2.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py"
      __group_descriptions__.push_back(ThresholdConfig::AbstractGroupDescriptionConstPtr(new ThresholdConfig::GroupDescription<ThresholdConfig::DEFAULT, ThresholdConfig>(Default)));
//#line 356 "//usr/share/dynamic_reconfigure/cmake/../templates/ConfigType.h.template"

      for (std::vector<ThresholdConfig::AbstractGroupDescriptionConstPtr>::const_iterator i = __group_descriptions__.begin(); i != __group_descriptions__.end(); ++i)
      {
        __description_message__.groups.push_back(**i);
      }
      __max__.__toMessage__(__description_message__.max, __param_descriptions__, __group_descriptions__); 
      __min__.__toMessage__(__description_message__.min, __param_descriptions__, __group_descriptions__); 
      __default__.__toMessage__(__description_message__.dflt, __param_descriptions__, __group_descriptions__); 
    }
    std::vector<ThresholdConfig::AbstractParamDescriptionConstPtr> __param_descriptions__;
    std::vector<ThresholdConfig::AbstractGroupDescriptionConstPtr> __group_descriptions__;
    ThresholdConfig __max__;
    ThresholdConfig __min__;
    ThresholdConfig __default__;
    dynamic_reconfigure::ConfigDescription __description_message__;

    static const ThresholdConfigStatics *get_instance()
    {
      // Split this off in a separate function because I know that
      // instance will get initialized the first time get_instance is
      // called, and I am guaranteeing that get_instance gets called at
      // most once.
      static ThresholdConfigStatics instance;
      return &instance;
    }
  };

  inline const dynamic_reconfigure::ConfigDescription &ThresholdConfig::__getDescriptionMessage__() 
  {
    return __get_statics__()->__description_message__;
  }

  inline const ThresholdConfig &ThresholdConfig::__getDefault__()
  {
    return __get_statics__()->__default__;
  }
  
  inline const ThresholdConfig &ThresholdConfig::__getMax__()
  {
    return __get_statics__()->__max__;
  }
  
  inline const ThresholdConfig &ThresholdConfig::__getMin__()
  {
    return __get_statics__()->__min__;
  }
  
  inline const std::vector<ThresholdConfig::AbstractParamDescriptionConstPtr> &ThresholdConfig::__getParamDescriptions__()
  {
    return __get_statics__()->__param_descriptions__;
  }

  inline const std::vector<ThresholdConfig::AbstractGroupDescriptionConstPtr> &ThresholdConfig::__getGroupDescriptions__()
  {
    return __get_statics__()->__group_descriptions__;
  }

  inline const ThresholdConfigStatics *ThresholdConfig::__get_statics__()
  {
    const static ThresholdConfigStatics *statics;
  
    if (statics) // Common case
      return statics;

    boost::mutex::scoped_lock lock(dynamic_reconfigure::__init_mutex__);

    if (statics) // In case we lost a race.
      return statics;

    statics = ThresholdConfigStatics::get_instance();
    
    return statics;
  }

//#line 10 "/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg"
      const int Threshold_Binary = 0;
//#line 11 "/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg"
      const int Threshold_Binary_Inverted = 1;
//#line 12 "/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg"
      const int Threshold_Threshold_Truncated = 2;
//#line 13 "/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg"
      const int Threshold_Threshold_To_Zero = 3;
//#line 14 "/var/tmp/portage/dev-ros/opencv_apps-1.11.15/work/opencv_apps-1.11.15/cfg/Threshold.cfg"
      const int Threshold_Threshold_To_Zero_Inverted = 4;
}

#endif // __THRESHOLDRECONFIGURATOR_H__
