#include <HISpidar4.h>
Inherits Spr::HIForceDevice3D.
Collaboration diagram for Spr::HISpidar4:
SPIDARの定数の設定例 Init(dev, motPos, 0.5776, 2.924062107079e-5f, 0.5f, 20.0f); // モータの取り付け位置. モータが直方体に取り付けられている場合は, #define PX 0.265f // x方向の辺の長さ/2 #define PY 0.265f // y方向の辺の長さ/2 #define PZ 0.265f // z方向の辺の長さ/2 Vec3f motorPos[][4] = // モータの取り付け位置(中心を原点とする){ {Vec3f(-PX, PY, PZ), Vec3f( PX, PY,-PZ), Vec3f(-PX,-PY,-PZ), Vec3f( PX,-PY, PZ)}, {Vec3f( PX, PY, PZ), Vec3f(-PX, PY,-PZ), Vec3f( PX,-PY,-PZ), Vec3f(-PX,-PY, PZ)} }; // 1ニュートン出すためのDAの出力電圧[V/N] // maxon: 0.008[m] / 0.0438[Nm/A] / 0.5[A/V] = 0.365296803653 // 千葉精機: 0.008[m] / 0.0277[Nm/A] / 0.5[A/V] = 0.5776 sp->VoltPerNewton(0.5776f); // 1カウントの長さ [m/plus] 実測値: 2.924062107079e-5f sp->LenPerPlus(2.924062107079e-5f); // 最小張力 [N] sp->MinForce(0.5f); // 最大張力 [N] sp->MaxForce(20.0f);
Definition at line 44 of file HISpidar4.h.
|
出力可能な力を計算し、その出力の得点を計算する.
|
|
位置を計算するための行列の初期化
|
|
デバイスの初期化(使用前に呼ぶ)
|
|
デバイスの初期化(使用前に呼ぶ)
|
|
キャリブレーションの前に行う処理
Reimplemented from Spr::HIHapticDevice. Definition at line 83 of file HISpidar4.h. |
|
キャリブレーション
Reimplemented from Spr::HIHapticDevice. |
|
最低張力を出力
|
|
力の出力
Reimplemented from Spr::HIForceDevice3D. Definition at line 89 of file HISpidar4.h. |
|
デバイスの目標力出力を設定する
Implements Spr::HIForceDevice3D. Definition at line 90 of file HISpidar4.h. |
|
デバイスの状態を更新する.
Reimplemented from Spr::HIForceDevice6D. |
|
デバイスの実際の提示力を返す
Implements Spr::HIForceDevice6D. |
|
デバイスの現在位置を返す
Implements Spr::HIForceDevice6D. Definition at line 96 of file HISpidar4.h. |
|
位置を計算するための定数
Definition at line 51 of file HISpidar4.h. |
|
位置を計算するための行列
Definition at line 53 of file HISpidar4.h. |
|
モータ
Definition at line 59 of file HISpidar4.h. |
|
デバイスのタイプ
Reimplemented from Spr::HIForceDevice3D. Definition at line 75 of file HISpidar4.h. |