Changeset 19 for trunk/extremum_seeking/esc_ros/include
- Timestamp:
- 01/03/13 15:32:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/extremum_seeking/esc_ros/include/esc_ros/esc_ros.h
r11 r19 16 16 #include <std_msgs/Float32.h> 17 17 #include <std_msgs/Float32MultiArray.h> 18 #include <std_msgs/Bool.h> 19 #include <std_msgs/Empty.h> 18 20 #include <esc_common/esc.h> 19 21 #include <string> … … 24 26 protected: 25 27 ESC* esc_; 26 ros::Publisher pub_ref_, pub_monitor_ ;27 ros::Subscriber sub_obj_val_ ;28 ros::Publisher pub_ref_, pub_monitor_, pub_stopped_; 29 ros::Subscriber sub_obj_val_, sub_enable_; 28 30 ros::NodeHandle* n_; 29 31 double obj_val_; 30 32 std::vector<double> state_vec_; 31 bool initialized_, monitor_, first_obj_val_received_ ;33 bool initialized_, monitor_, first_obj_val_received_,enabled_, reference_zeroed_; 32 34 double period_; 35 unsigned int opt_dim_; 33 36 34 37 public: … … 37 40 virtual void step(); 38 41 virtual void spin(); 42 virtual void reset(); 43 virtual void enableCallback(std_msgs::Bool msg); 39 44 virtual ~ESCROS(){}; 40 45 protected:
Note: See TracChangeset
for help on using the changeset viewer.