Interface RestAPI
access this type via: pal.control.RestAPI (provides, requires or uses)
Wrapper interface around the REST API for the perception and assembly elements of the PAL framework. Calls on this interface are translated to RESTful web server calls against the specified serverAddress and port.
Functions
RestAPI(char serverAddress[], int port)
char[] getConfig()
bool setConfig(char str[])
char[] getSystemPath()
bool addComponent(char str[])
bool remComponent(char str[])
char[] updComponent(char str[])
bool addIntercept(char intf[], char cmp[])
bool remIntercept(char intf[], char cmp[])
RestAPI(char serverAddress[], int port)
Instantiate a REST API instance which will connect to the given address and port for each call.
Get the list of configuration options from the remote server.
char[] getConfig()
Get the currently selected configuration from the remote server.
bool setConfig(char str[])
Set the current configuration at the remote server.
Get the latest batch of perception data from the remote server.
char[] getSystemPath()
Get the local system path from the remote server.
bool addComponent(char str[])
Add a new component option at the remote server (assumes str is a path present in the local file system of the remote server).
bool remComponent(char str[])
Remove a component option at the remote server (assumes str is a path present in the local file system of the remote server).
char[] updComponent(char str[])
Update a component option at the remote server with a newer version (assumes str is a path present in the local file system of the remote server).
bool addIntercept(char intf[], char cmp[])
Add an interceptor at the remote server (assumes cmp is a path present in the local file system of the remote server).
bool remIntercept(char intf[], char cmp[])
Remove an interceptor at the remote server (assumes cmp is a path present in the local file system of the remote server).
Get the list of installed interceptors at the remote server.