This resource represents general sensor configuration in SENSR.
The general sensor configuration contains parameters which are shared between all sensors in SENSR (e.g. algo_node.base_to_origin).
GET§
-
/settings/sensor/list§
Get the list of supported config-ids and config data types in /settings/sensor resource
- Parameters
- node-uri : ID of algo node which the desired config is located. (If you use one algo node it is normally
algo_0000
. and there is one more special algo node calledcommon
). - config-id : ID of config (optional)
- node-uri : ID of algo node which the desired config is located. (If you use one algo node it is normally
- Return code
- 200 OK
- 400 BAD REQ
- List of the types that SENSR API supports natively
Example§
$ curl -X GET 'localhost:9080/settings/sensor/list?node-uri=algo_0000?config-id=algo_node' ** Respond ** { "base_to_origin": { "tx": "Float", "ty": "Float" }, "sensor_to_base": { "tz": "Float", "qw": "Float", "qx": "Float", "qy": "Float", "qz": "Float" } }
- Parameters
-
/settings/sensor§
Get an actual value of the desired config
- Parameters
- node-uri : same as node-uri in /settings/sensor/list
- config-id : Id of the desired config
- Return code
- 200 OK
- 400 BAD REQ
Example§
$ curl -X GET 'localhost:9080/settings/sensor?node-uri=algo_0000&config-id=algo_node' ** Respond ** { "base_to_origin": { "tx": 0.0, "ty": 0.0 }, "sensor_to_base": { "tz": 0.0, "qw": 1.0, "qx": 0.0, "qy": 0.0, "qz": 0.0 } }
- Parameters
POST§
-
/settings/sensor§
Update the value of the desired config
- Parameters
- node-uri : same as node-uri in /settings/sensor/list
- config-id : Id of the desired config
- Return code
- 200 OK
- 400 BAD REQ
Example§
$ curl -X POST 'localhost:9080/settings/sensor?node-uri=algo_0000&config-id=algo_node' --data '{ "base_to_origin": { "tx": 0.0, "ty": 0.0 }, "sensor_to_base": { "tz": 0.0, "qw": 1.0, "qx": 0.0, "qy": 0.0, "qz": 0.0 } }' ** Respond ** 200 OK
- Parameters