Last change
on this file since 13 was
13,
checked in by wcaarls, 13 years ago
|
Updated extremum_seeking to revision 1017
|
File size:
551 bytes
|
Rev | Line | |
---|
[11] | 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] | 13 | std::vector<float> vel_, pos_; |
---|
[11] | 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.