~~NOTOC~~ {{template>summary |title=plhm (Polhemus Communication Utility)| |participants=[[people:Stephen Sinclair]]\\ [[people:Michael Collicutt]]\\ [[people:Mark T. Marshall]]| |funding=| |license=GNU General Public License v2 or later| |period=2009--2012| |status=| |image=:projects:placeholder.png| |caption=| }} ===== Introduction ===== This is a small C library ''libplhm'' to encapsulate communication with Polhemus motion tracking devices. These devices communicate with a computer using a USB serial port or RS232 port. Included is a small program plhm which can be used to request data from the device, and record this to a file or send it across the network using the [[http://opensoundcontrol.org|Open Sound Control]] protocol. We needed such a program to record motion tracking data during experimental sessions in our lab for studying musical gesture, and for communicating with [[http://cycling74.com|Max/MSP]] and [[http://puredata.info|Pure Data]] to interact with real-time sound synthesis. The result is this small driver that can be used for any purpose. The protocol has been derived from documentation from [[http://polhemus.com/|Polhemus]], available in the [[http://www.polhemus.com/polhemus_editor/assets/LIBERTY%20Rev%20F%20URM03PH156.pdf|Liberty Manual]]. Run ''plhm --help'' to get information on usage. ===== Download ===== The latest source release is available in our download directory: * http://idmil.org/pub/software/plhm/ The in-development source code which is currently usable may be tracked at [[http://github.com/radarsat1/plhm|github]]. Note that in the current state this library covers only a minimum amount of device functionality, is only tested on the Polhemus Liberty, and only works under Linux. However, it is able to detect the number of stations plugged in, and record data in either continuous or polled mode. {{tag>mocap Polhemus Software}}