Acquire the code needed to operate the system

The repository is here: https://gitlab.com/jmaggio14/opticoil

To Perform Offline Processing (untested as of 3/15/19)

1. Open up the recording you want in Motive

2. Right click on the Session

3. click 'Auto Label'

4. click 'Solve all assets'


TO Collect Synced data

  1. Start Motive, make sure it can connect to all cameras AND the esync
  2. In esync properties, make sure 'Source' is set to "Internal Clock". you may adjust framerate here
  3. In esync properties, set output 1 to 'RECORDING-GATE'. normal polarity
  4. open the "main.m" script in matlab
  5. Make sure Optitrack is in Capture mode
  6. Run main.m. It will take some time, but will ultimately start recording in motive
    • (if it fails, it will print out instructions)
  7. Once recording starts, you may end recording by hitting ESC on the matlab figure


TO get the rigid body into CSV form

  1. open the recording you previous took in motive
  2. run the matlab script 'optitrackcollect.m'
    • you may see a message saying that it is not collecting any data, this is normal and you may ignore it unless you have already pressed play in Motive
  3. make sure the recording is set to start from the begininng
  4. Start playback in Motive. Matlab will automatically stop when the recording has finished


If you have any issues, try restarting Motive and Matlab.

If that fails, load the settings profile contained in this repo into Motive and try again

If the coil data fails to capture, but motive is recording:

  1. Set 'Sync Input Setting' to another setting (I used SMPTE Time Code)
  2. Set 'Sync Input Setting' to back to "Internal Clock"
  3. Check if the blue light above the appropriate output on the esync is on

Equipment-Optitrack (last edited 2019-03-20 17:38:35 by JeffMaggio)

MoinMoin Appliance - Powered by TurnKey Linux