mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 02:51:20 -08:00
AutoBone: Load multiple recordings, fine-tune values and extract ratios, fix restricted values from getting stuck
This commit is contained in:
2 files changed
+93
-24
No files matched your search
@@ -18,6 +18,7 @@ import io.eiren.gui.autobone.PoseFrame;
|
||||
import io.eiren.gui.autobone.PoseRecordIO;
|
||||
import io.eiren.util.StringUtils;
|
||||
import io.eiren.util.ann.ThreadSafe;
|
||||
import io.eiren.util.collections.FastList;
|
||||
import io.eiren.vr.VRServer;
|
||||
import io.eiren.vr.processor.HumanSkeletonWithLegs;
|
||||
import io.eiren.vr.processor.HumanSkeleton;
|
||||
@@ -125,6 +126,25 @@ public class SkeletonConfig extends EJBag {
|
||||
throw new NullPointerException("Reading frames from \"" + loadRecording.getPath() + "\" failed...");
|
||||
}
|
||||
|
||||
FastList<PoseFrame> newFrames = new FastList<PoseFrame>(frames);
|
||||
int recordNumber = 1;
|
||||
for (;;) {
|
||||
File loadRecordingI = new File("ABRecording_Load" + recordNumber++ + ".abf");
|
||||
|
||||
if (loadRecordingI.exists()) {
|
||||
PoseFrame[] framesI = PoseRecordIO.readFromFile(loadRecordingI);
|
||||
|
||||
if (framesI == null) {
|
||||
throw new NullPointerException("Reading frames from \"" + loadRecordingI.getPath() + "\" failed...");
|
||||
}
|
||||
|
||||
newFrames.addAll(framesI);
|
||||
} else {
|
||||
frames = newFrames.toArray(frames);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
autoBone.setFrames(frames);
|
||||
|
||||
setText("Wait");
|
||||
|
||||
Reference in new issue
Block a user