Page 1 of 1

Realtime Change of Settings

Posted: Tue Jun 04, 2013 6:53 am
by edraheim
We are using the Tracking Tools APIs to access camera data in a custom built client application. One of the things we need to do is adjust camera settings and tracking/rigid body settings within the application.
We need to be able to do the following with the cameras:
1 - Turn LEDs on and off
2 - Adjust the LEDs - continuous and pulsing settings.
Just to confirm, we can do this with the TT_SetCameraSettings API, correct?

We need to be able to change the following settings for the rigid bodies:
1 - Dynamic constraints
2 - Dynamic overrides
3 - Min marker count
4 - Static Constraints
5 - Flexibility
6 - Marker max deflection
7 - Hit count
8 - Min marker roundness
9 - Min marker size
10- Max marker size
11- Residual

I am assuming we can only set these within Motive, export the trackable data and then load in the files as needed in our application (via the TT_LoadTrackables or TT_AddTrackables APIs). Is this a valid assumption or is there another way to change these settings?

Also, would it be possible to have a call with someone to ensure all questions are asked and answered correctly?


Re: Realtime Change of Settings

Posted: Wed Jun 12, 2013 6:23 am
by edraheim
After additional investigation, I found the TT_SetTrackableSettings API which should update the Rigid Body settings. Unfortunately, my small testing isn't working when trying to change the settings via the API call. I can use the APIs to track a rigid body by initializing and then loading the necessary tracking file.

This project has the MinimumMarkerCount = 4. When I try to change the MinimumMarkerCount = 3 via the TT_SetTrackableSettings API call, the cameras stop tracking the rigid body. Should I be able to adjust the settings via this API?


Re: Realtime Change of Settings

Posted: Wed Jun 12, 2013 3:33 pm
by NaturalPoint-Dustin
Hello Erin,

Are you using a read, modify, write sequence, similar to the following:

cTrackableSettings settings;

TT_TrackableSettings( 0, settings ); // get current settings for the first rigid body in the system
settings.MinimumMarkerCount = 3; // change minimum marker count
TT_SetTrackableSettings( 0, settings ); // apply new settings

If you are already doing this, then there must be something else going on, in which case I will need to consult with the developer.

Please let us know if this resolves the issue you're seeing.