|
@@ -1,641 +0,0 @@
|
|
|
-//#line 2 "/opt/ros/kinetic/share/dynamic_reconfigure/cmake/../templates/ConfigType.h.template"
|
|
|
-// *********************************************************
|
|
|
-//
|
|
|
-// File autogenerated for the face_location_tracker package
|
|
|
-// by the dynamic_reconfigure package.
|
|
|
-// Please do not edit.
|
|
|
-//
|
|
|
-// ********************************************************/
|
|
|
-
|
|
|
-#ifndef __face_location_tracker__FACELOCATIONCONFIG_H__
|
|
|
-#define __face_location_tracker__FACELOCATIONCONFIG_H__
|
|
|
-
|
|
|
-#if __cplusplus >= 201103L
|
|
|
-#define DYNAMIC_RECONFIGURE_FINAL final
|
|
|
-#else
|
|
|
-#define DYNAMIC_RECONFIGURE_FINAL
|
|
|
-#endif
|
|
|
-
|
|
|
-#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 face_location_tracker
|
|
|
-{
|
|
|
- class faceLocationConfigStatics;
|
|
|
-
|
|
|
- class faceLocationConfig
|
|
|
- {
|
|
|
- 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(faceLocationConfig &config, const faceLocationConfig &max, const faceLocationConfig &min) const = 0;
|
|
|
- virtual void calcLevel(uint32_t &level, const faceLocationConfig &config1, const faceLocationConfig &config2) const = 0;
|
|
|
- virtual void fromServer(const ros::NodeHandle &nh, faceLocationConfig &config) const = 0;
|
|
|
- virtual void toServer(const ros::NodeHandle &nh, const faceLocationConfig &config) const = 0;
|
|
|
- virtual bool fromMessage(const dynamic_reconfigure::Config &msg, faceLocationConfig &config) const = 0;
|
|
|
- virtual void toMessage(dynamic_reconfigure::Config &msg, const faceLocationConfig &config) const = 0;
|
|
|
- virtual void getValue(const faceLocationConfig &config, boost::any &val) const = 0;
|
|
|
- };
|
|
|
-
|
|
|
- typedef boost::shared_ptr<AbstractParamDescription> AbstractParamDescriptionPtr;
|
|
|
- typedef boost::shared_ptr<const AbstractParamDescription> AbstractParamDescriptionConstPtr;
|
|
|
-
|
|
|
- // Final keyword added to class because it has virtual methods and inherits
|
|
|
- // from a class with a non-virtual destructor.
|
|
|
- template <class T>
|
|
|
- class ParamDescription DYNAMIC_RECONFIGURE_FINAL : 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 faceLocationConfig::* a_f) :
|
|
|
- AbstractParamDescription(a_name, a_type, a_level, a_description, a_edit_method),
|
|
|
- field(a_f)
|
|
|
- {}
|
|
|
-
|
|
|
- T (faceLocationConfig::* field);
|
|
|
-
|
|
|
- virtual void clamp(faceLocationConfig &config, const faceLocationConfig &max, const faceLocationConfig &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 faceLocationConfig &config1, const faceLocationConfig &config2) const
|
|
|
- {
|
|
|
- if (config1.*field != config2.*field)
|
|
|
- comb_level |= level;
|
|
|
- }
|
|
|
-
|
|
|
- virtual void fromServer(const ros::NodeHandle &nh, faceLocationConfig &config) const
|
|
|
- {
|
|
|
- nh.getParam(name, config.*field);
|
|
|
- }
|
|
|
-
|
|
|
- virtual void toServer(const ros::NodeHandle &nh, const faceLocationConfig &config) const
|
|
|
- {
|
|
|
- nh.setParam(name, config.*field);
|
|
|
- }
|
|
|
-
|
|
|
- virtual bool fromMessage(const dynamic_reconfigure::Config &msg, faceLocationConfig &config) const
|
|
|
- {
|
|
|
- return dynamic_reconfigure::ConfigTools::getParameter(msg, name, config.*field);
|
|
|
- }
|
|
|
-
|
|
|
- virtual void toMessage(dynamic_reconfigure::Config &msg, const faceLocationConfig &config) const
|
|
|
- {
|
|
|
- dynamic_reconfigure::ConfigTools::appendParameter(msg, name, config.*field);
|
|
|
- }
|
|
|
-
|
|
|
- virtual void getValue(const faceLocationConfig &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, faceLocationConfig &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;
|
|
|
-
|
|
|
- // Final keyword added to class because it has virtual methods and inherits
|
|
|
- // from a class with a non-virtual destructor.
|
|
|
- template<class T, class PT>
|
|
|
- class GroupDescription DYNAMIC_RECONFIGURE_FINAL : 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, faceLocationConfig &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<faceLocationConfig::AbstractGroupDescriptionConstPtr> groups;
|
|
|
- };
|
|
|
-
|
|
|
-class DEFAULT
|
|
|
-{
|
|
|
- public:
|
|
|
- DEFAULT()
|
|
|
- {
|
|
|
- state = true;
|
|
|
- name = "Default";
|
|
|
- }
|
|
|
-
|
|
|
- void setParams(faceLocationConfig &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("def_servo_x_min"==(*_i)->name){def_servo_x_min = boost::any_cast<int>(val);}
|
|
|
- if("def_servo_x_max"==(*_i)->name){def_servo_x_max = boost::any_cast<int>(val);}
|
|
|
- if("def_servo_y_min"==(*_i)->name){def_servo_y_min = boost::any_cast<int>(val);}
|
|
|
- if("def_servo_y_max"==(*_i)->name){def_servo_y_max = boost::any_cast<int>(val);}
|
|
|
- if("def_servo_move_step"==(*_i)->name){def_servo_move_step = boost::any_cast<int>(val);}
|
|
|
- if("face_tracker_move_delay"==(*_i)->name){face_tracker_move_delay = boost::any_cast<int>(val);}
|
|
|
- if("def_image_center_x"==(*_i)->name){def_image_center_x = boost::any_cast<int>(val);}
|
|
|
- if("def_image_center_y"==(*_i)->name){def_image_center_y = boost::any_cast<int>(val);}
|
|
|
- if("def_check_tolerance"==(*_i)->name){def_check_tolerance = boost::any_cast<int>(val);}
|
|
|
- if("face_detect_timeout"==(*_i)->name){face_detect_timeout = boost::any_cast<double>(val);}
|
|
|
- if("topic_move_servo"==(*_i)->name){topic_move_servo = boost::any_cast<bool>(val);}
|
|
|
- if("face_tracker_speed"==(*_i)->name){face_tracker_speed = boost::any_cast<int>(val);}
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- int def_servo_x_min;
|
|
|
-int def_servo_x_max;
|
|
|
-int def_servo_y_min;
|
|
|
-int def_servo_y_max;
|
|
|
-int def_servo_move_step;
|
|
|
-int face_tracker_move_delay;
|
|
|
-int def_image_center_x;
|
|
|
-int def_image_center_y;
|
|
|
-int def_check_tolerance;
|
|
|
-double face_detect_timeout;
|
|
|
-bool topic_move_servo;
|
|
|
-int face_tracker_speed;
|
|
|
-
|
|
|
- bool state;
|
|
|
- std::string name;
|
|
|
-
|
|
|
-
|
|
|
-}groups;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int def_servo_x_min;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int def_servo_x_max;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int def_servo_y_min;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int def_servo_y_max;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int def_servo_move_step;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int face_tracker_move_delay;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int def_image_center_x;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int def_image_center_y;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int def_check_tolerance;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- double face_detect_timeout;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- bool topic_move_servo;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- int face_tracker_speed;
|
|
|
-//#line 228 "/opt/ros/kinetic/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("faceLocationConfig::__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 faceLocationConfig &__max__ = __getMax__();
|
|
|
- const faceLocationConfig &__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 faceLocationConfig &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 faceLocationConfig &__getDefault__();
|
|
|
- static const faceLocationConfig &__getMax__();
|
|
|
- static const faceLocationConfig &__getMin__();
|
|
|
- static const std::vector<AbstractParamDescriptionConstPtr> &__getParamDescriptions__();
|
|
|
- static const std::vector<AbstractGroupDescriptionConstPtr> &__getGroupDescriptions__();
|
|
|
-
|
|
|
- private:
|
|
|
- static const faceLocationConfigStatics *__get_statics__();
|
|
|
- };
|
|
|
-
|
|
|
- template <> // Max and min are ignored for strings.
|
|
|
- inline void faceLocationConfig::ParamDescription<std::string>::clamp(faceLocationConfig &config, const faceLocationConfig &max, const faceLocationConfig &min) const
|
|
|
- {
|
|
|
- (void) config;
|
|
|
- (void) min;
|
|
|
- (void) max;
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- class faceLocationConfigStatics
|
|
|
- {
|
|
|
- friend class faceLocationConfig;
|
|
|
-
|
|
|
- faceLocationConfigStatics()
|
|
|
- {
|
|
|
-faceLocationConfig::GroupDescription<faceLocationConfig::DEFAULT, faceLocationConfig> Default("Default", "", 0, 0, true, &faceLocationConfig::groups);
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.def_servo_x_min = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.def_servo_x_min = 180;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.def_servo_x_min = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_x_min", "int", 0, "default servo x min deg", "", &faceLocationConfig::def_servo_x_min)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_x_min", "int", 0, "default servo x min deg", "", &faceLocationConfig::def_servo_x_min)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.def_servo_x_max = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.def_servo_x_max = 180;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.def_servo_x_max = 180;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_x_max", "int", 0, "default servo x max deg", "", &faceLocationConfig::def_servo_x_max)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_x_max", "int", 0, "default servo x max deg", "", &faceLocationConfig::def_servo_x_max)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.def_servo_y_min = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.def_servo_y_min = 180;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.def_servo_y_min = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_y_min", "int", 0, "default servo y min deg", "", &faceLocationConfig::def_servo_y_min)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_y_min", "int", 0, "default servo y min deg", "", &faceLocationConfig::def_servo_y_min)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.def_servo_y_max = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.def_servo_y_max = 180;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.def_servo_y_max = 90;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_y_max", "int", 0, "default servo y max deg", "", &faceLocationConfig::def_servo_y_max)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_y_max", "int", 0, "default servo y max deg", "", &faceLocationConfig::def_servo_y_max)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.def_servo_move_step = 1;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.def_servo_move_step = 5;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.def_servo_move_step = 2;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_move_step", "int", 0, "servo default move step(degree)", "", &faceLocationConfig::def_servo_move_step)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_servo_move_step", "int", 0, "servo default move step(degree)", "", &faceLocationConfig::def_servo_move_step)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.face_tracker_move_delay = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.face_tracker_move_delay = 30;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.face_tracker_move_delay = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("face_tracker_move_delay", "int", 0, "servo default move delay(ms)", "", &faceLocationConfig::face_tracker_move_delay)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("face_tracker_move_delay", "int", 0, "servo default move delay(ms)", "", &faceLocationConfig::face_tracker_move_delay)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.def_image_center_x = 160;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.def_image_center_x = 480;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.def_image_center_x = 320;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_image_center_x", "int", 0, "location face center x", "", &faceLocationConfig::def_image_center_x)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_image_center_x", "int", 0, "location face center x", "", &faceLocationConfig::def_image_center_x)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.def_image_center_y = 120;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.def_image_center_y = 360;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.def_image_center_y = 240;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_image_center_y", "int", 0, "location face center y", "", &faceLocationConfig::def_image_center_y)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_image_center_y", "int", 0, "location face center y", "", &faceLocationConfig::def_image_center_y)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.def_check_tolerance = 40;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.def_check_tolerance = 100;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.def_check_tolerance = 45;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_check_tolerance", "int", 0, "location face tolerance", "", &faceLocationConfig::def_check_tolerance)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("def_check_tolerance", "int", 0, "location face tolerance", "", &faceLocationConfig::def_check_tolerance)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.face_detect_timeout = 0.5;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.face_detect_timeout = 10.0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.face_detect_timeout = 3.0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<double>("face_detect_timeout", "double", 0, "detect timeout will move org deg", "", &faceLocationConfig::face_detect_timeout)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<double>("face_detect_timeout", "double", 0, "detect timeout will move org deg", "", &faceLocationConfig::face_detect_timeout)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.topic_move_servo = 0;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.topic_move_servo = 1;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.topic_move_servo = 1;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<bool>("topic_move_servo", "bool", 0, "If move servo by topic or service", "", &faceLocationConfig::topic_move_servo)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<bool>("topic_move_servo", "bool", 0, "If move servo by topic or service", "", &faceLocationConfig::topic_move_servo)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __min__.face_tracker_speed = 1;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __max__.face_tracker_speed = 10;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __default__.face_tracker_speed = 5;
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.abstract_parameters.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("face_tracker_speed", "int", 0, "face tracker speed(bigger->faster)", "", &faceLocationConfig::face_tracker_speed)));
|
|
|
-//#line 290 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __param_descriptions__.push_back(faceLocationConfig::AbstractParamDescriptionConstPtr(new faceLocationConfig::ParamDescription<int>("face_tracker_speed", "int", 0, "face tracker speed(bigger->faster)", "", &faceLocationConfig::face_tracker_speed)));
|
|
|
-//#line 245 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- Default.convertParams();
|
|
|
-//#line 245 "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py"
|
|
|
- __group_descriptions__.push_back(faceLocationConfig::AbstractGroupDescriptionConstPtr(new faceLocationConfig::GroupDescription<faceLocationConfig::DEFAULT, faceLocationConfig>(Default)));
|
|
|
-//#line 366 "/opt/ros/kinetic/share/dynamic_reconfigure/cmake/../templates/ConfigType.h.template"
|
|
|
-
|
|
|
- for (std::vector<faceLocationConfig::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<faceLocationConfig::AbstractParamDescriptionConstPtr> __param_descriptions__;
|
|
|
- std::vector<faceLocationConfig::AbstractGroupDescriptionConstPtr> __group_descriptions__;
|
|
|
- faceLocationConfig __max__;
|
|
|
- faceLocationConfig __min__;
|
|
|
- faceLocationConfig __default__;
|
|
|
- dynamic_reconfigure::ConfigDescription __description_message__;
|
|
|
-
|
|
|
- static const faceLocationConfigStatics *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 faceLocationConfigStatics instance;
|
|
|
- return &instance;
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
- inline const dynamic_reconfigure::ConfigDescription &faceLocationConfig::__getDescriptionMessage__()
|
|
|
- {
|
|
|
- return __get_statics__()->__description_message__;
|
|
|
- }
|
|
|
-
|
|
|
- inline const faceLocationConfig &faceLocationConfig::__getDefault__()
|
|
|
- {
|
|
|
- return __get_statics__()->__default__;
|
|
|
- }
|
|
|
-
|
|
|
- inline const faceLocationConfig &faceLocationConfig::__getMax__()
|
|
|
- {
|
|
|
- return __get_statics__()->__max__;
|
|
|
- }
|
|
|
-
|
|
|
- inline const faceLocationConfig &faceLocationConfig::__getMin__()
|
|
|
- {
|
|
|
- return __get_statics__()->__min__;
|
|
|
- }
|
|
|
-
|
|
|
- inline const std::vector<faceLocationConfig::AbstractParamDescriptionConstPtr> &faceLocationConfig::__getParamDescriptions__()
|
|
|
- {
|
|
|
- return __get_statics__()->__param_descriptions__;
|
|
|
- }
|
|
|
-
|
|
|
- inline const std::vector<faceLocationConfig::AbstractGroupDescriptionConstPtr> &faceLocationConfig::__getGroupDescriptions__()
|
|
|
- {
|
|
|
- return __get_statics__()->__group_descriptions__;
|
|
|
- }
|
|
|
-
|
|
|
- inline const faceLocationConfigStatics *faceLocationConfig::__get_statics__()
|
|
|
- {
|
|
|
- const static faceLocationConfigStatics *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 = faceLocationConfigStatics::get_instance();
|
|
|
-
|
|
|
- return statics;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-#undef DYNAMIC_RECONFIGURE_FINAL
|
|
|
-
|
|
|
-#endif // __FACELOCATIONRECONFIGURATOR_H__
|