Up:Tutorial?


Writing SIGVerse Controller with Python

Writing services for Sigverse with Python

To write services e.g. controlling objects or avatar using mouse/wii/ joystick, Sigverse offers the utility of SigService. The SigService is written on client side in C++ using Visual Studio and the data between SigService to SigServer and vice-versa is transferred using sockets. I have made an utility to write the main functionality of SigService using Python modules and embed those modules inside C++ code written in Visual Studio. This gives an advantage since many functionality for human-computer interface e.g. mouse/wii/joystick/speech recognition/text-to-speech etc is already written in Python and just require embedding with SigService socket interface.

To use such utility, user needs to install and compile boost.python with Visual Studio.

The following tutorial creates a SigService that sends mouse movement to Sigserver. The mouse movement is captured using GUI and functions created with PyGame. The relative positions of left mouse clicks are captured and sent to the Sigserver. The controller codes receives those values of relative positions and tool is moved. The moving tool hits the target object.

The SIGServices already developed. Easy to use!!

The following SIGServices are developed using Python. You can use them with your project very easily. You don't need to have boost.python installed and compiled in Visual Studio in order to use them.

But if you need to change the SIGService itself, you shall need to have it installed and compiled with Visual Studio.

Tutorial?

This page is managed by Raghvendra Jain. If you have any questions regarding these tutorials and need some help in using Sigverse with Python, please feel free to contact him at his email:

jain[At]nii[dot]ac[dot]jp

Counter: 3557, today: 1, yesterday: 1

Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2014-02-06 (Thu) 13:36:55 (2727d)