Project

General

Profile

Revision dbbad8ed

IDdbbad8ed5cba08f5500e7d333beab2d089f9956c
Parent f3bfb5b5
Child a1219504

Added by Thomas Mullins about 11 years ago

Added a reset() function to EncodersControl. Untested.

View differences:

scout/libscout/src/EncodersControl.h
36 36

  
37 37
#include <ros/ros.h>
38 38
#include <messages/query_encoders.h>
39
#include <messages/reset_encoders.h>
39 40

  
40 41
#include "constants.h"
41 42

  
......
57 58
        /** Use ROS to get the current encoder position. */
58 59
        encoder_readings query();
59 60

  
61
        /** User ROS to reset the encoder count. */
62
        void reset();
63

  
60 64
    private:
61 65

  
62 66
        /* ROS publisher and client declaration */
63 67
        ros::ServiceClient query_client;
68
        ros::ServiceClient reset_client;
64 69
        ros::NodeHandle node;
65 70
};
66 71

  

Also available in: Unified diff