This resource demonstrates the interaction with algo node configurations in SENSR.
A node configuration has configs related to algo node setup. (e.g. username
, bin
...)
GET§
-
/settings/node/list§
Get the list of available config-ids and config data types of an algo node.
- Parameters
- Return code
- 200 OK
- List of the types that SENSR API supports natively
Example§
$ curl -X GET 'localhost:9080/settings/node/list' ** Respond ** [ { "uid": "String", "ip": "String", "name": "String", "bin": "String", "rosbag_path": "String", "username": "String", "preset": "String" } ]
-
/settings/node§
Get an actual config of the desired algo node
- Parameters
- node-uri : ID of algo node.
- Return code
- 200 OK
- 400 BAD REQ
Example§
$ curl -X GET 'localhost:908/settings/node?node-uri=algo_0000' ** Respond ** { "uid": "algo_0000", "ip": "127.0.0.1", "name": "algo", "bin": "", "rosbag_path": "/home/seoulrobotics/Downloads/data_out.bag", "username": "", "preset": "outdoor" }
- Parameters
POST§
-
/settings/node§
Update the config of the desired algo node (ip address should be unique.)
If you do not pass any node-uri, this command returns the full node-uris in SENSR.- Parameters
- node-uri : ID of algo node.
- Return code
- 200 OK
- 400 BAD REQ
Example§
$ curl -X POST 'localhost:9080/settings/node?node-uri=algo_0000' --data '{ "uid": "algo_0000", "ip": "127.0.0.1", "name": "localhost", "bin": "", "rosbag_path": "", "username": "", "preset": "outdoor" }' ** Respond ** 200 OK
- Parameters
PUT§
-
/settings/node§
Adds a new algo node. If this command was successful, the uid of the new algo node is returned.
Please call POST command to the newly added node.
Because the default config of the newly added node are not proper in most cases. And Please call /commands/apply-change too.- Parameters
- ip : Ip address of a new algo node.
- Return code
- 200 OK
- 400 BAD REQ
Example§
$ curl -X PUT 'localhost:9080/settings/node?ip=192.168.0.100' ** Respond ** "algo_0001"
- Parameters