SDK

Post Reply
intern01
Posts: 1
Joined: Tue May 24, 2016 2:54 am

SDK

Post by intern01 »

Hello everybody

I m a student, i m currently doing an internship in a Hospital in France (i'm french).
My aim is to synchronize different acquisitions software, and one of them is Motive. I need to start the acquisition at the same time.

I'm quite a newbie but i m currently code a mouse with C# (.net framework) to control the others software and i would like to use the motive's SDK. (i could use a mouse as well but there is a SDK it would be great to use it)

But i have a big issue with it though, the winformtestApp works fine, but the winformsSampleVS2010 don't. I tried different way but the form can be launch.

" string strServerIP = textBoxServer.Text;
returnCode = m_NatNet.Initialize(strLocalIP, strServerIP);"

strServerIP is highlighted when i try to debugged it.

I just need the "record" button on my winform to start it a the same time with the others software.

Sorry for my bad english...

Thanks
steven.andrews
NaturalPoint Employee
NaturalPoint Employee
Posts: 720
Joined: Mon Jan 19, 2015 11:52 am

Re: SDK

Post by steven.andrews »

Hello intern01,

Thank you for reaching out to the community regarding your questions.
It sounds like you just need to trigger Motive to start and stop recordings remotely.

If you check the NatNet documentation, page 14 contains a number of commands that can be sent to Motive, including starting and stopping a recording. You do not need everything the WinForms sample includes, so you may have an easier time starting your own simple project to trigger recordings remotely.
http://www.optitrack.com/static/documen ... 0Guide.pdf

It is also possible to send a UDP trigger to Motive, which would not require the use of the NatNet SDK.
http://wiki.optitrack.com/index.php?tit ... Triggering


Cheers,
Steven
--
Steven Andrews
OptiTrack | Senior Customer Support Engineer
Post Reply