CityU Dream Development

Dependencies:   mbed ros_lib_melodic

OmniWheel.h

Committer:
bensonsinsin998
Date:
2021-02-25
Revision:
0:c2b6f8b48076

File content as of revision 0:c2b6f8b48076:

#ifndef OMNI_WHEEL
#define OMNI_WHEEL

// Mbed Library
#include <vector>

using namespace std;

class OmniWheel {
    private:
        int wheel_num;
        
        vector<double> vel;
        vector<double> rpm;
        vector<double> pwm;
    
    public:
        // Initialize Omniwheel
        OmniWheel();
        virtual ~OmniWheel();
        // Function
        void clear();
        // -> Getter
        int getWheelNum();
        vector<double> getVel();
        vector<double> getRpm();
        vector<double> getPwm();
        // -> Setter
        void setWheelNum(int _wheel_num);
        void setVel(double _vel);
        void setRpm(double _rpm);
        void setPwm(double _pwm);
};

#endif