type | C++ | Python | Java |
---|---|---|---|
integer | int | Python integer | int |
boolean | bool | Python boolean | Boolean |
float | float | Python float | Float |
List | vector<ALValue> | [] | Java array [] |
String | std::string | Python string | String |
Binary | ALValue | String | byte[] |
Variant | ALValue | Use python type | jnaoqi Variant |
! | 注意 ALMemory only stores 4-byte integers and 4-byte floats. This is not a problem for C++ as it uses the same representation, but Python integers and floats are 8 bytes (or more for big ints). This may lead to a loss of precision when storing values. |
関数 ... | 機能 ... |
---|---|
ALMemoryProxy::getDataPtr | 素早い、ポインタへのアクセス 注意: スレッドセーフでもアトミックでもありません |
ALMemoryProxy::getData | スレッドセーフなアクセス モジュールがリモートでもローカルでも使えます |
関数 ... | 監視する対象 ... |
---|---|
ALMemoryProxy::subscribeToEvent | イベント |
ALMemoryProxy::subscribeToMicroEvent | マイクロイベント |
関数 ... | 利用法 ... |
---|---|
ALMemoryProxy::raiseMicroEvent | 値の格納と通知. |
ALMemoryProxy::raiseEvent | 値の格納と通知、値の履歴とタイムスタンプの格納 |
ALMemoryProxy::declareEvent | モジュールと変数のリンク モジュールが変数を監視している場合、モジュールはプロセスを一度だけ実行します。 例えば、FaceDetectedを監視すると、自動的にALFaceDetectionモジュールを実行します。監視を止めるとモジュールは止まります。 |