Takeuchi Issei
/
4Omunisleeve3
メカナムのコード
Diff: shared/Mecanum_4/Mecanum_4.h
- Revision:
- 0:ee7e9405e1c7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/shared/Mecanum_4/Mecanum_4.h Wed Apr 14 07:26:19 2021 +0000 @@ -0,0 +1,33 @@ + +#ifndef MECANUM_4_H_ +#define MECANUM_4_H_ + +#include <shared/Movement/Movement.h> +#include <shared/Wheel/Wheel.h> + +class Mecanum_4 : public Movement +{ +public: + enum + { + LF, + LB, + RB, + RF, + NUM + }; + + Mecanum_4(MD *md[NUM]); + Mecanum_4(MD *md_LF, MD *md_LB, MD *md_RB, MD *md_RF); + Mecanum_4(Wheel *wheel[NUM]); + + virtual void move(double x, double y, double yaw); + + +private: + Wheel *wheel[NUM]; + +}; + +#endif +