Revision 35b3ca25 examples/yarp_icub/include/icub_data_receiver.h

View differences:

examples/yarp_icub/include/icub_data_receiver.h
20 20

  
21 21
class iCubDataReceiver : public yarp::os::RateThread{
22 22
public:
23
    iCubDataReceiver(int period, yarp::dev::IEncodersTimed *_iencs, iCubJointInterface *_icub_jointinterface);
23
    iCubDataReceiver(int period, iCubJointInterface *icub_jointinterface);
24 24
    bool threadInit();
25 25
    void threadRelease();
26 26
    void run();
27 27
private:
28
    double get_timestamp_ms();
28
    void store_incoming_position(int icub_id, double value, double timestamp);
29 29

  
30
    yarp::sig::Vector positions;
31
    yarp::sig::Vector velocities;
32
    yarp::sig::Vector commands;
33
    yarp::sig::Vector timestamps;
30
    float target_eye_pan_;
31
    float target_eye_vergence_;
34 32

  
35
    yarp::dev::IEncodersTimed *iencs;
36
    iCubJointInterface *icub_jointinterface;
33
    yarp::sig::Vector yarp_positions_;
34
    yarp::sig::Vector yarp_commands_;
35
    yarp::sig::Vector yarp_timestamps_;
36

  
37
    iCubJointInterface *icub_jointinterface_;
38
    yarp::dev::IEncodersTimed *yarp_iencs_;
37 39
};
38 40

  

Also available in: Unified diff