Revision 473a6a6c examples/meka/include/mekajointinterface.h
| examples/meka/include/mekajointinterface.h | ||
|---|---|---|
| 4 | 4 |
#include <boost/bimap.hpp> |
| 5 | 5 |
//#include "meka_data_receiver.h" |
| 6 | 6 |
//class MekaDataReceiver; |
| 7 |
#include "ros/ros.h" |
|
| 8 |
#include "sensor_msgs/JointState.h" |
|
| 7 | 9 |
|
| 8 | 10 |
class MekaJointInterface : public humotion::server::JointInterface{
|
| 9 | 11 |
public: |
| ... | ... | |
| 12 | 14 |
|
| 13 | 15 |
//void fetch_position(Device *dev, double timestamp); |
| 14 | 16 |
//void fetch_speed(Device *dev, double timestamp); |
| 15 |
void fetch_position(int id, double value, double timestamp); |
|
| 16 |
void fetch_speed(int id, double value, double timestamp); |
|
| 17 |
//void fetch_position(int id, double value, double timestamp);
|
|
| 18 |
//void fetch_speed(int id, double value, double timestamp);
|
|
| 17 | 19 |
void run(); |
| 18 | 20 |
|
| 19 | 21 |
enum JOINT_ID_ENUM{
|
| ... | ... | |
| 50 | 52 |
void execute_motion(); |
| 51 | 53 |
|
| 52 | 54 |
private: |
| 55 |
void incoming_jointstates(const sensor_msgs::JointState & msg); |
|
| 56 |
ros::Subscriber joint_state_subscriber; |
|
| 57 |
|
|
| 58 |
|
|
| 53 | 59 |
double get_timestamp_ms(); |
| 54 | 60 |
double target_angle[ICUB_JOINT_ID_ENUM_SIZE]; |
| 55 | 61 |
double target_angle_previous[ICUB_JOINT_ID_ENUM_SIZE]; |
Also available in: Unified diff