SONY

mocopi mobile SDK
読み取り中…
検索中…
一致する文字列を見つけられません
Mocopi.Mobile.Sdk.Common 名前空間

クラス

class  ConstMocopiMobileSdk
 mocopi Mobile SDKで使用する定数をまとめたクラス

 

列挙型

enum  EnumRunMode { Default = 0 , Stub = 1 }
 mocopi Mobile SDK自体の動作モードを選択する。
[詳解]
 
enum  EnumTargetBodyType : int { FullBody = 0 , UpperBody = 4 , LowerBody = 5 }
 mocopiセンサーのトラッキングタイプ。
[詳解]
 
enum  EnumCallbackStatus { Success , Error , Disconnected }
 MocopiManager クラスのコールバック関数の結果。
[詳解]
 
enum  EnumCalibrationCallbackStatus {
  Stay , StepForward , Success , Warning ,
  Error , Cancel , CancelFailed
}
 MocopiManager クラスのキャリブレーションのコールバック関数の結果。
[詳解]
 
enum  EnumParts {
  Head = MocopiSdkPluginConst.PartsIndex.HEAD , LeftUpperArm = MocopiSdkPluginConst.PartsIndex.LEFT_UPPER_ARM , LeftWrist = MocopiSdkPluginConst.PartsIndex.LEFT_WRIST , RightUpperArm = MocopiSdkPluginConst.PartsIndex.RIGHT_UPPER_ARM ,
  RightWrist = MocopiSdkPluginConst.PartsIndex.RIGHT_WRIST , Hip = MocopiSdkPluginConst.PartsIndex.HIP , LeftUpperLeg = MocopiSdkPluginConst.PartsIndex.LEFT_UPPER_LEG , RightUpperLeg = MocopiSdkPluginConst.PartsIndex.RIGHT_UPPER_LEG ,
  LeftAnkle = MocopiSdkPluginConst.PartsIndex.LEFT_FOOT , RightAnkle = MocopiSdkPluginConst.PartsIndex.RIGHT_FOOT
}
 mocopiセンサーが接続可能な部位の一覧。
[詳解]
 
enum  SensorParts {
  Head = MocopiSdkPluginConst.PartsIndex.HEAD , LeftWrist = MocopiSdkPluginConst.PartsIndex.LEFT_WRIST , RightWrist = MocopiSdkPluginConst.PartsIndex.RIGHT_WRIST , Hip = MocopiSdkPluginConst.PartsIndex.HIP ,
  LeftAnkle = MocopiSdkPluginConst.PartsIndex.LEFT_FOOT , RightAnkle = MocopiSdkPluginConst.PartsIndex.RIGHT_FOOT
}
 mocopiセンサー本体の部位ラベル一覧。
[詳解]
 
enum  EnumHeightUnit { Meter = 0 , Inch = 1 }
 身長設定する際の単位。
[詳解]
 
enum  EnumAuthorizationStatus { ON = 0 , OFF = 1 , DISABLE = 2 }
 OS設定と権限を表すステータス。
[詳解]
 
enum  EnumOsSettingType { Bluetooth = 0 , Location = 1 }
 OS設定の種別。
[詳解]
 
enum  EnumPermissionType { Bluetooth = 0 , Location = 1 , ExternalStorage = 3 }
 アプリに対する権限の種別。
[詳解]
 
enum  EnumSensorStatus {
  Discovery = 1 , PairedPart = 1 << 1 , UnpairedPart = 1 << 2 , Connected = 1 << 3 ,
  ConnectError = 1 << 4 , Disconnecting = 1 << 5 , Disconnected = 1 << 6 , DisableDisconnection = 1 << 7 ,
  SafeBattery = 1 << 8 , LowBattery = 1 << 9 , BatteryError = 1 << 10 , AllSensorReady = 1 << 11 ,
  AllSensorReadyError = 1 << 12 , FirmwareLatest = 1 << 13 , FirmwareOlder = 1 << 14 , FirmwareNewer = 1 << 15 ,
  FirmwareError = 1 << 16
}
 各mocopiセンサーのステータス。
[詳解]
 
enum  EnumFirmwareStatus { Error = 0 , Latest = 1 , Older = 2 , Newer = 3 }
 mocopiセンサーに搭載されているファームウェアのステータス。
[詳解]
 
enum  EnumRecordingMotionAllStatus : int {
  RecordingCompleted , RecordingStarted , ErrorRecordingAlreadyStarted , ErrorRecordingNotStarted ,
  ErrorRecordingNotStopped , ErrorStartRecordingFailed , ErrorStorageNoSpace , ErrorWritingFailed ,
  ErrorCurrentlyConverting , ErrorMotionCreationFailed , ErrorRecordableTimeReached
}
 モーション記録のステータス。
[詳解]
 
enum  EnumRecordingMotionStatus : int {
  RecordingStarted , RecordingStopped , Converting , ConvertingCompleted ,
  RecordingCompleted , Error
}
 モーション記録のステータス(簡易版)。
[詳解]
 
enum  EnumSensorConnectionErrorStatus : int {
  ConnectionFailed = -1 , RemovedPairingKey = 0 , BondingFailed = 1 , NotBonded = 2 ,
  NotFoundSensor = 3 , NotStartSensor = 4 , BluetoothOff = MocopiSdkPluginConst.SENSOR_CONNECTION_ERROR_CODE + 0x05 , ConnectSensorFailed = MocopiSdkPluginConst.SENSOR_CONNECTION_ERROR_CODE + 0x06
}
 センサー接続エラー時のコールバックステータス
[詳解]
 
enum  EnumSensorConnectedStably : int { Failed = 1 , Succeeded = 2 }
 mocopiセンサー接続時のキャリブレーション処理結果。
[詳解]
 
enum  EnumNotificationReason : int {
  AcceptDisconnectedSensor = 0 , DisplayedPairingScreen = 1 , DisplayedSensorConnectionScreen = 2 , DisplayedCalibrationScreen = 3 ,
  DisplayedTrackingScreen = 4 , DisplayedRecordingMotionScreen = 5 , AuthorizationNotAllowed = 6 , EndPairingSettings = 7 ,
  IncorrectFirmwareVersion = 8 , CalibrationFailsContinuously = 9 , TurnedOffBluetooth = 10 , TurnedOffLocation = 11
}
 Prefabからの通知。
[詳解]
 
enum  EnumCalibrationStatus : int {
  CalibrationCompleted = MocopiSdkPluginConst.CALIBRATION_SUCCESS_CODE , CalibrationFailed = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x00 , InsufficientStorageFreeSpace = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x10 , NotEnoughSensorData = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x20 ,
  StepTimeTooShort = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x31 , InsufficientCalibrationSamples = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x32 , InvalidPreferencePointValue = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x40 , InvalidMaximumMovementPointValue = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x41 ,
  InvalidEndPointValue = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x42 , StepTimeTooLong = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x43 , InvalidStepYawValue = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x44 , EarlyToStep = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x50 ,
  LateToStep = MocopiSdkPluginConst.CALIBRATION_ERROR_CODE + 0x60 , InvalidStepAngleValue = MocopiSdkPluginConst.CALIBRATION_WARNING_CODE + 0x70
}
 キャリブレーション実施結果のステータス。
[詳解]
 
enum  EnumMotionStreamingStatus {
  Reading = 0 , Stopped = 1 , ReadingFrame = 2 , StartFailed = 3 ,
  StopFailed = 4 , ReadingFrameFailed = 5
}
 BVH読み込みステータス
[詳解]
 
enum  EnumFirmwareVersionResultForStableCalibration { Supported = 0 , NotSupported = 1 , Error = 2 }
 StableCalibrationサポート状態
[詳解]
 

列挙型詳解

◆ EnumAuthorizationStatus

OS設定と権限を表すステータス。

MocopiManager クラス内部で使用する、OS設定(Bluetooth/位置情報)の状態を管理するために使用する。
基本ユーザーは使用しない。

列挙値
ON 

設定On or 権限許可されている。

OFF 

設定Off or 権限が許可されていない。

DISABLE 

(iOSのみ)判定不可能

◆ EnumCalibrationCallbackStatus

MocopiManager クラスのキャリブレーションのコールバック関数の結果。

MocopiManager クラスキャリブレーション実施時のコールバック関数の結果を判断する際に使用する。
キャリブレーションは、静止 -> 1歩前進 -> 静止 -> 成功 の流れが正常系。

列挙値
Stay 

初期姿勢を促す状態。

StepForward 

1歩前進を促す状態。

Success 

キャリブレーションに成功。

Warning 

キャリブレーション警告。

Error 

キャリブレーションに失敗。

Cancel 

キャリブレーションをキャンセル。

CancelFailed 

キャリブレーションのキャンセルに失敗。

◆ EnumCalibrationStatus

キャリブレーション実施結果のステータス。

列挙値
CalibrationCompleted 

キャリブレーション完了。

CalibrationFailed 

キャリブレーション失敗。

InsufficientStorageFreeSpace 

ストレージの空き容量不足によるキャリブレーション失敗。

NotEnoughSensorData 

mocopiセンサーのデータが不十分なためキャリブレーション失敗。

このエラーを解消するためには、エラー対象のmocopiセンサーを再接続する必要があります。

StepTimeTooShort 

歩いたかどうかの判定が取れないくらい動いていないためキャリブレーション失敗。

InsufficientCalibrationSamples 

キャリブレーション時間が短い(停止状態に入るのが遅い)ためキャリブレーション失敗。

InvalidPreferencePointValue 

停止状態になる前に歩いているためキャリブレーション失敗。

InvalidMaximumMovementPointValue 

停止・歩く・停止のステータスが取れていないためキャリブレーション失敗。

InvalidEndPointValue 

キャリブレーションの終了判定に失敗したためキャリブレーション失敗

StepTimeTooLong 

歩きすぎてしまっているためキャリブレーション失敗。

InvalidStepYawValue 

踏み出す時にセンサーが回っているためキャリブレーション失敗。

EarlyToStep 

一歩踏み出している時間が短い(踏み出しが早い)ためキャリブレーション失敗。

LateToStep 

一歩踏み出している時間が長い(踏み出しが遅い)ためキャリブレーション失敗。

InvalidStepAngleValue 

成功しているが、踏み出す時にセンサーが30度以上回っている。

◆ EnumCallbackStatus

MocopiManager クラスのコールバック関数の結果。

列挙値
Success 

成功

Error 

失敗

Disconnected 

切断

◆ EnumFirmwareStatus

mocopiセンサーに搭載されているファームウェアのステータス。

列挙値
Error 

mocopiセンサーのファームウェアバージョン取得に失敗 または不正なバージョン。

Latest 

mocopiセンサーのファームウェアバージョンが最新の状態(mocopiセンサーのファームウェアバージョン == SDK)。

Older 

mocopiセンサーのファームウェアバージョンを更新する必要がある状態(mocopiセンサーのファームウェアバージョン < SDK)。

Newer 

mocopiセンサーのファームウェアバージョンがSDKよりも新しい状態(mocopiセンサーのファームウェアバージョン > SDK)。

◆ EnumFirmwareVersionResultForStableCalibration

StableCalibrationサポート状態

列挙値
Supported 

StableCalibrationのサポート対象。

NotSupported 

StableConnectionのサポート対象外。

Error 

エラー。

◆ EnumHeightUnit

身長設定する際の単位。

列挙値
Meter 

メートルを使用(m)。

Inch 

フィート/インチを使用(Feet/Inch)。

◆ EnumMotionStreamingStatus

BVH読み込みステータス

列挙値
Reading 

BVH読み込み中

Stopped 

BVH読み込みを中止

ReadingFrame 

フレームを読み込み中。

StartFailed 

BVH読み込みの開始に失敗。

StopFailed 

BVH読み込みの中断に失敗。

ReadingFrameFailed 

フレームの読み込みに失敗。

◆ EnumNotificationReason

Prefabからの通知。

列挙値
AcceptDisconnectedSensor 

mocopiセンサーが切断されたことを受信。

DisplayedPairingScreen 

ペアリング画面の表示。

DisplayedSensorConnectionScreen 

mocopiセンサー接続画面の表示。

DisplayedCalibrationScreen 

キャリブレーション画面の表示。

DisplayedTrackingScreen 

トラッキング画面の表示。

DisplayedRecordingMotionScreen 

モーション記録画面の表示。

AuthorizationNotAllowed 

OS権限が許可されていない。

EndPairingSettings 

ペアリング設定が完了。

IncorrectFirmwareVersion 

mocopiセンサーのファームウェアバージョンが最新でない。

CalibrationFailsContinuously 

キャリブレーションに一定回数、連続失敗。

TurnedOffBluetooth 

OSのBluetooth設定がOFF。

TurnedOffLocation 

OSの位置情報設定がOFF。

◆ EnumOsSettingType

OS設定の種別。

列挙値
Bluetooth 

Bluetooth

Location 

位置情報

◆ EnumParts

mocopiセンサーが接続可能な部位の一覧。

列挙値
Head 


LeftUpperArm 

左上腕

LeftWrist 

左手首

RightUpperArm 

右上腕

RightWrist 

右手首

Hip 


LeftUpperLeg 

左太腿

RightUpperLeg 

右太腿

LeftAnkle 

左足首

RightAnkle 

右足首

◆ EnumPermissionType

アプリに対する権限の種別。

列挙値
Bluetooth 

Bluetooth

Location 

位置情報

ExternalStorage 

ストレージ利用

◆ EnumRecordingMotionAllStatus

モーション記録のステータス。

列挙値
RecordingCompleted 

モーション記録結果の保存が完了。

RecordingStarted 

モーション記録を開始。

ErrorRecordingAlreadyStarted 

モーション記録が既に開始されている。

ErrorRecordingNotStarted 

モーション記録が開始されていない。

ErrorRecordingNotStopped 

モーション記録が停止されていない。

ErrorStartRecordingFailed 

モーション記録開始に失敗。

ErrorStorageNoSpace 

ストレージ容量の不足により、モーション記録の保存に失敗。

ErrorWritingFailed 

モーション記録の保存にあたり、書き込み処理に失敗。

ErrorCurrentlyConverting 

モーション記録の書き込み処理の途中。

ErrorMotionCreationFailed 

BVHファイルの生成に失敗。

ErrorRecordableTimeReached 

最大記録時間に到達。

◆ EnumRecordingMotionStatus

モーション記録のステータス(簡易版)。

列挙値
RecordingStarted 

モーション記録開始。

RecordingStopped 

モーション記録停止。

Converting 

モーション記録結果の保存中。

ConvertingCompleted 

モーション記録結果の保存が完了。

RecordingCompleted 

BVHファイルの書き込み完了。

Error 

モーション記録のフローの内、いずれかのフェーズでエラーが発生。

◆ EnumRunMode

mocopi Mobile SDK自体の動作モードを選択する。

列挙値
Default 

実動作(mocopiセンサーの使用)。

Stub 

Stubモード UnityEditor等のデバッグ用。センサーの動作部分をStub実装した状態で動作する。

◆ EnumSensorConnectedStably

mocopiセンサー接続時のキャリブレーション処理結果。

列挙値
Failed 

mocopiセンサーキャリブレーションの失敗。

Succeeded 

mocopiセンサーキャリブレーションの成功。

◆ EnumSensorConnectionErrorStatus

センサー接続エラー時のコールバックステータス

列挙値
ConnectionFailed 

mocopiセンサーとの接続に失敗。

RemovedPairingKey 

mocopiセンサーのペアリングキーが存在しない。

BondingFailed 

mocopiセンサーとのペアリング時の接続に失敗。

NotBonded 

mocopiセンサーと接続済み。

NotFoundSensor 

mocopiセンサーが見つからない。

NotStartSensor 

mocopiセンサーの準備がまだできていない。

BluetoothOff 

デバイスのBluetooth設定がOFF状態。

ConnectSensorFailed 

ConnectSensorの戻り値がfalse。

◆ EnumSensorStatus

各mocopiセンサーのステータス。

列挙値
Discovery 

mocopiセンサーが発見されている。

PairedPart 

mocopiセンサーがいずれかの部位に紐づけされている。

UnpairedPart 

mocopiセンサーに紐づけられていた部位が解除。

Connected 

mocopiセンサーがいずれかの部位に接続。

ConnectError 

mocopiセンサーとの接続に失敗。

Disconnecting 

mocopiセンサーとの接続解除実施中。

Disconnected 

mocopiセンサーとの接続解除。

DisableDisconnection 

mocopiセンサーとの接続解除できない状態。

SafeBattery 

mocopiセンサーの電池残量が十分。

LowBattery 

mocopiセンサーの電池残量が少ない。

BatteryError 

mocopiセンサーの電池残量の取得に失敗。

AllSensorReady 

接続モードに対して、すべてのmocopiセンサーが接続されている。

AllSensorReadyError 

接続モードに対して、すべてのmocopiセンサーが未接続。

FirmwareLatest 

mocopiセンサーのファームウェアバージョンが最新の状態(mocopiセンサーのファームウェアバージョン == SDK)。

FirmwareOlder 

mocopiセンサーのファームウェアバージョンを更新する必要がある状態(mocopiセンサーのファームウェアバージョン < SDK)。

FirmwareNewer 

mocopiセンサーのファームウェアバージョンがSDKよりも新しい状態(mocopiセンサーのファームウェアバージョン > SDK)。

FirmwareError 

mocopiセンサーのファームウェアバージョンの取得が失敗 または不正なバージョン。

◆ EnumTargetBodyType

mocopiセンサーのトラッキングタイプ。

列挙値
FullBody 

mocopiセンサーの6点接続モード。これが基本となる接続モードとなる。部位は頭、腰、両手首、両足。

UpperBody 

6点接続モード。部位は頭、腰、両手首、両手。
6-points connection mode. parts:head, waist, wrists, hands

LowerBody 

mocopiセンサーの下半身6点接続モード。VR用の接続モードとなる。部位は頭、腰、両太腿、両足。

◆ SensorParts

mocopiセンサー本体の部位ラベル一覧。

列挙値
Head 


LeftWrist 

左手首

RightWrist 

右手首

Hip 


LeftAnkle 

左足

RightAnkle 

右足