getTrainedSignatureActions
This method returns the list of the trained actions of a profile. For each action, you also see how many times the user trained this action.
Name | Type | Required | Description |
cortexToken | string | yes | |
detection | string | yes | Must be "mentalCommand" or "facialExpression". |
profile | string | no | The name of a profile. |
session | string | no |
If you set the session, then this method reads information from the profile that is currently loaded for the headset of this session.
If you set profile then this method reads information from the hard drive. The values you get can be different from reading from the session, especially if the profile was load, edited, and not saved yet.
The result is an object containing these fields:
Name | Type | Description |
trainedActions | array of objects | Contains 1 object for each trained action. |
totalTimesTraining | number | The total number of training the user did since the creation of this profile. |
The objects in trainedActions have 2 fields:
Name | Type | Description |
action | string | The name of the action. |
times | number | How many times the user trained this action. |
Request
Response
{
"id": 1,
"jsonrpc": "2.0",
"method": "getTrainedSignatureActions",
"params": {
"cortexToken": "xxx",
"detection": "mentalCommand",
"profile": "cortex-v2-example"
}
}
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"totalTimesTraining": 12,
"trainedActions": [
{
"action": "neutral",
"times": 1
},
{
"action": "push",
"times": 1
},
{
"action": "pull",
"times": 1
}
]
}
}
Last modified 4yr ago