SPIDAR API Library  0x16033101
Space Interface Device for Artificial Reality
DeviceSpec.hpp
Go to the documentation of this file.
1 
5 #ifndef SPIDAR_DEVICE_SPEC_HPP
6 #define SPIDAR_DEVICE_SPEC_HPP
7 
8 #include <cstdint>
9 #include <string>
10 
11 namespace Spidar
12 {
13 static const size_t X = 0;
14 static const size_t Y = 1;
15 static const size_t Z = 2;
16 
17 namespace Core
18 {
19 #define DEVICE_SPEC_VERSION 0x16033101
20 
25 struct DeviceSpec
26 {
27  typedef float ValueType;
28 
29  static const size_t MOTOR_COUNT = 8;
30 
31  uint32_t version;
32  std::string deviceName;
33  uint32_t deviceID;
34  uint32_t serialNumber;
35 
39 
45 
46  ValueType maxTension[MOTOR_COUNT];
47  ValueType minTension[MOTOR_COUNT];
49 
50  ValueType maxDuration;
51 
52  ValueType gripRadius;
53 
54  ValueType gripPosition[MOTOR_COUNT][3];
55  ValueType motorPosition[MOTOR_COUNT][3];
56 
60 
61 }; // end of struct DeviceSpec.
62 
63 } // end of namespace Core.
64 } // end of namespace Spidar.
65 
66 #endif // SPIDAR_DEVICE_SPEC_HPP
67 
68 // end of file.
ValueType encoderResolution[MOTOR_COUNT]
エンコーダ分解能 [pulse/r]
Definition: DeviceSpec.hpp:36
uint32_t minorLoopVelocityFilterGain
2次制御ループでのエンコーダ速度用ローパスフィルタゲイン(自然数)
Definition: DeviceSpec.hpp:58
ValueType encoderDirection[MOTOR_COUNT]
エンコーダカウント方向 1 or -1
Definition: DeviceSpec.hpp:38
float ValueType
値の型
Definition: DeviceSpec.hpp:27
uint32_t deviceID
デバイスID
Definition: DeviceSpec.hpp:33
uint32_t minorLoopForceFilterGain
2次制御ループでの張力用ローパスフィルタゲイン(自然数)
Definition: DeviceSpec.hpp:59
SPIDARライブラリのルート名前空間です.
ValueType speedConstant[MOTOR_COUNT]
モータ回転数定数 [rpm/V]
Definition: DeviceSpec.hpp:43
ValueType terminalResistance[MOTOR_COUNT]
モータ端子間抵抗 [ohm]
Definition: DeviceSpec.hpp:41
uint32_t version
ライブラリバージョン
Definition: DeviceSpec.hpp:31
ValueType torqueConstant[MOTOR_COUNT]
モータトルク定数 [Nm/A]
Definition: DeviceSpec.hpp:42
ValueType maxDuration
力提示の最大持続時間 [s]
Definition: DeviceSpec.hpp:50
ValueType majorLoopTimeConstant
1次制御ループでのローパスフィルタ時定数 [s]
Definition: DeviceSpec.hpp:57
ValueType gripPosition[MOTOR_COUNT][3]
グリップの糸接続位置 [m]
Definition: DeviceSpec.hpp:54
ValueType terminalVoltage[MOTOR_COUNT]
モータ端子間電圧 [V]
Definition: DeviceSpec.hpp:40
static const size_t MOTOR_COUNT
モータの数
Definition: DeviceSpec.hpp:29
std::string deviceName
デバイス名
Definition: DeviceSpec.hpp:32
SPIDARデバイスの情報を取得するための構造体です.
Definition: DeviceSpec.hpp:25
uint32_t serialNumber
コントローラ基板シリアル番号
Definition: DeviceSpec.hpp:34
ValueType motorPosition[MOTOR_COUNT][3]
モータの糸引き出し位置 [m]
Definition: DeviceSpec.hpp:55
ValueType pulleyRadius[MOTOR_COUNT]
プーリ半径 [m]
Definition: DeviceSpec.hpp:37
ValueType maxTension[MOTOR_COUNT]
最大張力 [N]
Definition: DeviceSpec.hpp:46
ValueType minTension[MOTOR_COUNT]
最小張力 [N]
Definition: DeviceSpec.hpp:47
ValueType noLoadCurrent[MOTOR_COUNT]
無負荷電流 [A]
Definition: DeviceSpec.hpp:44
ValueType springTension[MOTOR_COUNT]
ぜんまいばねによる張力 [N]
Definition: DeviceSpec.hpp:48
ValueType gripRadius
グリップ半径 [m]
Definition: DeviceSpec.hpp:52