メカナムのコード

Dependencies:   mbed Eigen

shared/Mecanum_4/Mecanum_4.h

Committer:
e2011220
Date:
2021-04-14
Revision:
0:ee7e9405e1c7

File content as of revision 0:ee7e9405e1c7:


#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