CityU Dream Development
Dependencies: mbed ros_lib_melodic
Diff: OmniWheel.h
- Revision:
- 0:c2b6f8b48076
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OmniWheel.h Thu Feb 25 07:41:29 2021 +0000 @@ -0,0 +1,35 @@ +#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 \ No newline at end of file