[Paraview] Controlling RenderView using Wiimote and VRPlugin

Pat Marion pat.marion at kitware.com
Thu Feb 28 19:58:58 EST 2013


Hi Travis,

If you should decide that the VRPN is not the right fit for your
application, you can have a look at the MobileRemoteControl plugin.  This
plugin can be found in the paraview master branch, and it is in the
ParaView v.3.98.1 source code and binary distribution.

You should be able to use this plugin as is, as long as your application
conforms to the very simple socket communication protocol it expects.  To
use it:

Your application is the client, the plugin in ParaView is the server.  You
application connects to the socket that is opened by the mobile remote
control plugin.
Your client code receives an integer (value of 1), then you send an integer
(value of 4), then send camera state as 9 floats:  Position[3],
FocalPoint[3], ViewUp[3].  You can see the server loop in the Run() method
at the bottom of this file:

http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Plugins/MobileRemoteControl/pqRemoteControlThread.cxx;h=bcfec0343922e7325ea5110cbadb59cf39169a38;hb=HEAD

You can build or download ParaView 3.98.1, load the "Mobile Remote Control"
plugin, then just click Start in the panel, and it will display the server
ip and port number that your application should connect to.  This plugin
was designed to support remote control by KiwiViewer, an iOS/Android app
(which will be released next week, look for the release announcement soon!)

Pat



that is now included in the paraview master branch and packaged in ParaView
v3.98.1.  This plugin is based off the socket plugin, but is improved and
should no

On Fri, Mar 1, 2013 at 8:09 AM, Aashish Chaudhary <
aashish.chaudhary at kitware.com> wrote:

> If you using the VRPN to read the Wiimote data, then it should
> be straightforward.
>
> The simplest example is vtkVRTrackStyle which handle a single tracker
> input. Have a look at it here:
>
>
> http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Plugins/VR/vtkVRTrackStyle.h;h=7d73c7c5282b2c166223ee2bdd235f2cfb9d8356;hb=HEAD
>
> I could provide more help if needed. Let me know if you have any
> questions.
>
> Thanks,
>
>
>
> On Thu, Feb 28, 2013 at 4:41 PM, Bueter, Travis J. (S&T-Student) <
> tjbxv7 at mail.mst.edu> wrote:
>
>>  Hi,****
>>
>> ** **
>>
>> I am currently trying to create a way of controlling the camera in
>> ParaView using the Joystick of a Wiimote (WiiC library). I had previously
>> attempted this by using Pat Marion’s socket plugin to send camera changes
>> through the python shell but ran into a problem with sending too many
>> Render() commands. It was suggested to me by Pat Marion and the Kitware
>> employees I met at SuperComputing 2012 to use the VRPlugin to accomplish
>> this. So after a 3 month hiatus from my project, I have finally gotten back
>> to it but am currently lost in documentation. I have no idea where to begin
>> with writing the code for a custom device and then connecting to and
>> writing the camera changes to the VRPN server for ParaView. If someone
>> could point me in the right direction of documentation that explains how to
>> create a custom device/interaction for the VRPlugin/VRPN or some examples
>> of such user created applications I would greatly appreciate it! ****
>>
>> ** **
>>
>> Thanks,****
>>
>> ** **
>>
>> *Travis J. Bueter*
>>
>> ----------------------------------------------------------------------***
>> *
>>
>> *Missouri University of Science and Technology - Junior*
>>
>> B.S. Computer Engineering/Computer Science****
>>
>> tjbxv7 at mail.mst.edu****
>>
>> (573)-238-5843****
>>
>> ** **
>>
>> IT Research Support Service****
>>
>> Treasurer – MS&T Robotics Competition Team****
>>
>> ----------------------------------------------------------------------***
>> *
>>
>> ** **
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
>
> --
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130301/766e0161/attachment.htm>


More information about the ParaView mailing list