Experiment Issue ‐ PhaseSpace Turns on Briefly, then Turns Off - Carleton-SRCL/SPOT GitHub Wiki

This usually means that the StreamData.exe executable is trying to assign LED IDs that don't exist. Check the following code chunk in the StreamData.cc file (located in SPOT/PhaseSpace_Server/StreamData.cc):

uint32_t tracker_id_RED = 0;
owl.createTracker(tracker_id_RED, "rigid", "RED_rigid");

/* Assign markers to the rigid body and indicate their positions
 w.r.t the centre of mass (obtained from calibration text file) */
owl.assignMarker(tracker_id_RED, 5, "5", tracker_id_RED_5_pos_string); // top left
owl.assignMarker(tracker_id_RED, 3, "3", tracker_id_RED_3_pos_string); // top right
owl.assignMarker(tracker_id_RED, 1, "1", tracker_id_RED_1_pos_string); // bottom right
owl.assignMarker(tracker_id_RED, 7, "7", tracker_id_RED_7_pos_string); // bottom left 

uint32_t tracker_id_BLACK = 2;
owl.createTracker(tracker_id_BLACK, "rigid", "BLACK_rigid");

/* Assign markers to the rigid body and indicate their positions
 w.r.t the centre of mass (obtained from calibration text file) */
owl.assignMarker(tracker_id_BLACK,  13, "13", tracker_id_BLACK_29_pos_string); // top left
owl.assignMarker(tracker_id_BLACK,  11, "11", tracker_id_BLACK_27_pos_string); // top right
owl.assignMarker(tracker_id_BLACK,  9, "9", tracker_id_BLACK_25_pos_string); // bottom right
owl.assignMarker(tracker_id_BLACK,  15, "15", tracker_id_BLACK_31_pos_string); // bottom left

uint32_t tracker_id_BLUE = 3;

owl.createTracker(tracker_id_BLUE, "rigid", "BLUE_rigid");

/* Assign markers to the rigid body and indicate their positions
 w.r.t the centre of mass (obtained from calibration text file) */
owl.assignMarker(tracker_id_BLUE, 16, "16", tracker_id_BLUE_8_pos_string); // top left
owl.assignMarker(tracker_id_BLUE, 22, "22", tracker_id_BLUE_14_pos_string); // top right
owl.assignMarker(tracker_id_BLUE, 20, "20", tracker_id_BLUE_12_pos_string); // bottom right
owl.assignMarker(tracker_id_BLUE, 18, "18", tracker_id_BLUE_10_pos_string); // bottom left

Check that the ID's match those found when simply viewing the LEDs in either the MasterClient application or the web client. If the ID's do not match, then it means that some have been re-assigned. Change the ID's in the StreamData.cc, recompile the code, and deploy the new StreamData.exe.