Last change
on this file since 11 was
11,
checked in by wcaarls, 12 years ago
|
Updated extremum_seeking to revision 1001
|
File size:
516 bytes
|
Line | |
---|
1 | #include <ros/ros.h> |
---|
2 | |
---|
3 | #include "function.h" |
---|
4 | |
---|
5 | class 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 | |
---|
14 | protected: |
---|
15 | void velocityCallback(const std_msgs::Float32MultiArray::ConstPtr &msg); |
---|
16 | void positionCallback(const std_msgs::Float32MultiArray::ConstPtr &msg); |
---|
17 | void publish(); |
---|
18 | |
---|
19 | public: |
---|
20 | ESCTest() : nh_("~") |
---|
21 | { |
---|
22 | } |
---|
23 | |
---|
24 | void init(ESCSystem *system); |
---|
25 | void spin(); |
---|
26 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.