Revision ea29304b examples/yarp_icub/include/icub_data_receiver.h
examples/yarp_icub/include/icub_data_receiver.h | ||
---|---|---|
26 | 26 |
void run(); |
27 | 27 |
private: |
28 | 28 |
void store_incoming_position(int icub_id, double value, double timestamp); |
29 |
void store_incoming_velocity(int icub_id, double velocity, double timestamp); |
|
30 |
yarp::sig::Vector calculate_velocities(yarp::sig::Vector positions, |
|
31 |
yarp::sig::Vector timestamps); |
|
29 | 32 |
|
30 | 33 |
float target_eye_pan_; |
31 | 34 |
float target_eye_vergence_; |
32 | 35 |
|
33 |
yarp::sig::Vector yarp_positions_; |
|
34 |
yarp::sig::Vector yarp_commands_; |
|
35 |
yarp::sig::Vector yarp_timestamps_; |
|
36 |
float target_eye_pan_velocity_; |
|
37 |
float target_eye_vergence_velocity_; |
|
38 |
|
|
39 |
yarp::sig::Vector positions_; |
|
40 |
yarp::sig::Vector timestamps_; |
|
41 |
yarp::sig::Vector velocities_; |
|
42 |
yarp::sig::Vector commands_; |
|
43 |
|
|
44 |
yarp::sig::Vector previous_positions_; |
|
45 |
yarp::sig::Vector previous_timestamps_; |
|
36 | 46 |
|
37 | 47 |
iCubJointInterface *icub_jointinterface_; |
38 |
yarp::dev::IEncodersTimed *yarp_iencs_;
|
|
48 |
yarp::dev::IEncodersTimed *iencs_; |
|
39 | 49 |
}; |
40 | 50 |
|
Also available in: Unified diff