SwisTrack/Version 3/Interfacing 3rd party software

 This page refers to version 3 of SwisTrack. Unless you are still using this old version, you may want to read the documentation of the most recent version of SwisTrack.

=Introduction= On start-up SwisTrack is listening on port 3000 (i.e. localhost:3000), where it accepts socket connections. Commands can be send as single characters (case sensitive), and are given below. SwisTrack will respond with the appropriate action or will send back a string containing the response. It is important that you make sure to read the exact number of bytes from the socket, otherwise messages will get mixed up. The exact number of bytes that you can expect is given for each command.

Skeleton applications for Java, C++, and Matlab can be found in the swistrack-clients directory

=Available Commands=

Data Format
Every point (be it calibrated, or uncalibrated, trajectory, or blob) is sent as fixed precision floating point number in the format "+####.#### +####.####", and thus having a length of 21 characters (including the separating spaces). Points are concatenated to a string. There is no terminating character.