Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NHK2017_octopus NHK2017_octopus2 NHK2017_octopus2_drive 2018NHK_gakugaku_robo ... more
Diff: omni_wheel.h
- Revision:
- 1:e9b590a5b27a
- Parent:
- 0:952a0ff1bf46
--- a/omni_wheel.h Thu Sep 14 05:51:25 2017 +0000
+++ b/omni_wheel.h Sat Sep 30 05:22:22 2017 +0000
@@ -4,14 +4,60 @@
#include "mbed.h"
#include "wheel.h"
+/**
+ * 汎用オムニホイール駆動用クラス
+ */
class OmniWheel {
public:
+
+
Wheel *wheel;
+
+ /**
+ * デフォルトコンストラクタ
+ */
OmniWheel();
+
+ /**
+ * コンストラクタ
+ * @param wheelNumber 車輪数
+ */
OmniWheel(int wheelNumber);
+
+ /**
+ * XY平行移動ベクトル、回転中心とモーメントで出力を計算
+ * @param X 平行移動X
+ * @param Y 平行移動Y
+ * @param gX 回転中心座標X
+ * @param gY 回転中心座標Y
+ * @param moment 回転量
+ */
void computeXY(double X, double Y, double gX, double gY, double moment);
+
+ /**
+ * XY平行移動ベクトル、モーメントで出力を計算
+ * @param X 平行移動X
+ * @param Y 平行移動Y
+ * @param moment 回転量
+ */
void computeXY(double X, double Y, double moment);
+
+ /**
+ * rθ平行移動ベクトル、回転中心とモーメントで出力を計算
+ * @param r 平行移動スピード
+ * @param theta 平行移動角度
+ * @param gX 回転中心X
+ * @param gY 回転中心Y
+ * @param moment 回転量
+ */
void computeCircular(double r, double theta, double gX, double gY, double moment);
+
+ /**
+ * rθ平行移動ベクトル、モーメントで出力を計算
+ * @param r 平行移動スピード
+ * @param theta 平行移動角度
+ * @param moment モーメント
+ */
void computeCircular(double r, double theta, double moment);
private:
int wheelNumber;