next up previous contents
Next: 4.2.2 gloveread Up: 4.2 The Glove software Previous: 4.2 The Glove software

4.2.1 glovedata

Before any real work was begun on software applications, it was felt necessary that a library for the glove be developed. This library had a data structure glovedata which mirrored the packet of information coming from the glove, shown in table 4.1. However, there were also a number of fields that the PowerGlove did not provide but were included for flexibility and the possibility of replacing the PowerGlove with a better glovegif. It had four functions:

  
Table 4.1: Packets of information arriving from the glove.

printglove & fprintglove:
When given a glovedata structure, these function print out the data structure (printglove to STDOUT and fprintglove to a file). The output is both human-readable and machine-readable.

readglove and freadglove:
These functions complemented printglove and fprintglove by reading from STDIN (or a file in freadglove's case) and putting the information in a glovedata structure.



waleed@cse.unsw.edu.au