Realtime Change of Settings

Post Reply
edraheim
Posts: 4
Joined: Tue May 21, 2013 9:58 am
Location: Wisconsin

Realtime Change of Settings

Post by edraheim » Tue Jun 04, 2013 6:53 am

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?

Thanks!
Erin

edraheim
Posts: 4
Joined: Tue May 21, 2013 9:58 am
Location: Wisconsin

Re: Realtime Change of Settings

Post by edraheim » Wed Jun 12, 2013 6:23 am

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.

NPTrackingTools.TT_Initialize();
NPTrackingTools.TT_LoadProject(PROJ_LED_RB4.ttp);
...
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?

Thanks.
Erin
Last edited by edraheim on Wed Dec 31, 1969 5:00 pm, edited 0 times in total.
Reason: typo

NaturalPoint-Dustin
Posts: 612
Joined: Tue Mar 19, 2013 5:03 pm

Re: Realtime Change of Settings

Post by NaturalPoint-Dustin » Wed Jun 12, 2013 3:33 pm

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.
Dustin
Technical Support Engineer
OptiTrack | TrackIR | SmartNav

Post Reply