Changing Tracking Color with Messages

From wikidb
Revision as of 21:45, 28 June 2012 by Edc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


 class Demo
 {
 protected:
   ...  
   int min_hue_;
   int max_hue_;
   int min_saturation_;


 public:
 Demo (ros::NodeHandle & nh):nh_ (nh), it_ (nh_)
 {
   ...
   hue_set_sub_ = nh_.subscribe("/hue_set", 1000, 

&Demo::hueSetCallback, this);

   min_hue_        =  6;
   max_hue_        = 26;
   min_saturation_ = 96;
 }