source: trunk/extremum_seeking/esc_test/include/esc_test/esc_test.h @ 13

Last change on this file since 13 was 13, checked in by wcaarls, 12 years ago

Updated extremum_seeking to revision 1017

File size: 551 bytes
Line 
1#include <ros/ros.h>
2
3#include "function.h"
4
5class ESCTest
6{
7  protected:
8    ros::NodeHandle nh_;
9    ros::Publisher val_pub_, state_val_pub_;
10    ros::Subscriber vel_sub_, pos_sub_;
11   
12    ESCSystem *system_;
13    std::vector<float> vel_, pos_;
14   
15  protected:
16    void velocityCallback(const std_msgs::Float32MultiArray::ConstPtr &msg);
17    void positionCallback(const std_msgs::Float32MultiArray::ConstPtr &msg);
18    void publish();
19   
20  public:
21    ESCTest() : nh_("~")
22    {
23    }
24   
25    void init(ESCSystem *system);
26    void spin();
27};
Note: See TracBrowser for help on using the repository browser.