NIW OSC Namespace Specifications

Message Address Argument Types Description
Server Updates
/niw/server/update/tile/x/y i Single integer value to be updated in the server for the tile x/y.
/niw/server/update/row/y (24) i 24 integer values to be updated in the server for the row y.
/niw/server/update/column/x (24) i 24 integer values to be updated in the server for the column x.
/niw/server/update/ (144) i 144 integer values to completely update the data for all tiles in the server.
Push Request
/niw/server/push/user/defined/tree s (optional) i (optional) Builds a data filtering and analysis tree as specified by the osc address, e.g user/defined/tree. The output of the leaf of the tree is sent to the sender (client). The return namespace and port are respectively specified by the 2 optional argument. The first argument, a String, defines the return name space, e.g. "my/namespace" yield a return namespace of /niw/client/my/namespace. The default namespace is an empty string "", resulting in the full return namespace /niw/client. The second argument, an integer, defines the return port. If not specified, the default port is 14923.

See below for valid tree nodes.
Valid Tree Nodes
/niw/server/push/avg - Average Node, downsamples the data and provides averaging over the down-sampling window.
/niw/server/push/biquad - Discreet BiQuad filter.
/niw/server/push/low - Discreent Low-Pass filter.
/niw/server/push/rowy - Truncates all data from the stream except from row y.
/niw/server/push/tilesum - Converts data from a per-sensor basis to a per-tile basis. Only a row filter can be connected after a tilesum filter.
/niw/server/push/VtoF - Converts inverted voltage data to force data, mapping calculated by Yon.
/niw/server/push/invert - Inverts inbound voltage data since increased pressure is correlated with decreased voltage in the raw gluion output. This should usually be your first filter.
/niw/server/push/zero - Output of the filter is zero when the inputs match those recorded during calibration. Used to return zero force when there is nothing on the floor.
/niw/server/push/normalize - Normalizes the data between 0 and 1. Requires extensive calibration to be used.
Configure Request
/niw/server/push/path/to/configured/node (variable) Allows various parameters to be set for the filter node found in the data tree at the point specified by path/to/configured/node. See specific details below.
Configurable Nodes
/niw/server/push/avg i Sets the downsampling rate of the average filter, e.g. passing 12 means that only 1 in 12 frames will be propagated downstream.
/niw/server/push/biquad (5) f Set the 5 parameters of the BiQuad filter in the order b0, b1, b2, a0 and a1.
/niw/server/push/low f Sets the alpha value for the Low-Pass filter. An alpha of 0 has an infinitely low cutoff frequency and alpha of 1 has an infinitely high cutoff frequency.
/niw/server/push/VtoF (5) f Sets the 5 coefficients of the polynomial mapping form voltage to force in the order of last to highest power.
/niw/server/push/zero - Triggers the auto-calibration sequence for the zero filter. It records a small amount of data (~10 seconds) and uses it as a baseline value.
/niw/server/push/normalize s If "start" is passed, the filter enters calibration mode, recording the highest pressures on each tile for normalization. Otherwise if something else is passed the filter ends calibration mode.
Other Server Messages
/niw/server/disconnect - Removes the client from the table of active clients.
Client Messages
/niw/client/my/return/namespace (variable) Send the requested data to the client. The namespace is specified optionally during the original push request. The data sent is also a function of the original push request.
PanoServer Commands (Google Street View Server)
/panoid/id s The panoID of a single google street view point to be displayed.
/panoid/latlong ff The float values of the latitude and longitude to display street view at.
/panoid/blank - Clears the display.
/panoid/slide i The number of the slide to be displayed.
/panoid/ticker s The string of text to be displayed in the ticker.