Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,316 changes: 1,193 additions & 123 deletions protocol/cpp/include/solarxr_protocol/generated/all_generated.h

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private FirmwareUpdateStatus() { }
*/
public static final int ERROR_AUTHENTICATION_FAILED = 11;
/**
* Could not upload the firmware to the MUC
* Could not upload the firmware to the MCU
*/
public static final int ERROR_UPLOAD_FAILED = 12;
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;

@SuppressWarnings("unused")
public final class IgnoreTrackingChecklistStepRequest extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_22_10_26(); }
public static IgnoreTrackingChecklistStepRequest getRootAsIgnoreTrackingChecklistStepRequest(ByteBuffer _bb) { return getRootAsIgnoreTrackingChecklistStepRequest(_bb, new IgnoreTrackingChecklistStepRequest()); }
public static IgnoreTrackingChecklistStepRequest getRootAsIgnoreTrackingChecklistStepRequest(ByteBuffer _bb, IgnoreTrackingChecklistStepRequest obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public IgnoreTrackingChecklistStepRequest __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

public int stepId() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; }
public boolean ignore() { int o = __offset(6); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }

public static int createIgnoreTrackingChecklistStepRequest(FlatBufferBuilder builder,
int stepId,
boolean ignore) {
builder.startTable(2);
IgnoreTrackingChecklistStepRequest.addIgnore(builder, ignore);
IgnoreTrackingChecklistStepRequest.addStepId(builder, stepId);
return IgnoreTrackingChecklistStepRequest.endIgnoreTrackingChecklistStepRequest(builder);
}

public static void startIgnoreTrackingChecklistStepRequest(FlatBufferBuilder builder) { builder.startTable(2); }
public static void addStepId(FlatBufferBuilder builder, int stepId) { builder.addByte(0, (byte) stepId, (byte) 0); }
public static void addIgnore(FlatBufferBuilder builder, boolean ignore) { builder.addBoolean(1, ignore, false); }
public static int endIgnoreTrackingChecklistStepRequest(FlatBufferBuilder builder) {
int o = builder.endTable();
return o;
}

public static final class Vector extends BaseVector {
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }

public IgnoreTrackingChecklistStepRequest get(int j) { return get(new IgnoreTrackingChecklistStepRequest(), j); }
public IgnoreTrackingChecklistStepRequest get(IgnoreTrackingChecklistStepRequest obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
}
public IgnoreTrackingChecklistStepRequestT unpack() {
IgnoreTrackingChecklistStepRequestT _o = new IgnoreTrackingChecklistStepRequestT();
unpackTo(_o);
return _o;
}
public void unpackTo(IgnoreTrackingChecklistStepRequestT _o) {
int _oStepId = stepId();
_o.setStepId(_oStepId);
boolean _oIgnore = ignore();
_o.setIgnore(_oIgnore);
}
public static int pack(FlatBufferBuilder builder, IgnoreTrackingChecklistStepRequestT _o) {
if (_o == null) return 0;
return createIgnoreTrackingChecklistStepRequest(
builder,
_o.getStepId(),
_o.getIgnore());
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;

public class IgnoreTrackingChecklistStepRequestT {
private int stepId;
private boolean ignore;

public int getStepId() { return stepId; }

public void setStepId(int stepId) { this.stepId = stepId; }

public boolean getIgnore() { return ignore; }

public void setIgnore(boolean ignore) { this.ignore = ignore; }


public IgnoreTrackingChecklistStepRequestT() {
this.stepId = 0;
this.ignore = false;
}
}

53 changes: 49 additions & 4 deletions protocol/java/src/solarxr_protocol/rpc/ResetResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,47 @@ public final class ResetResponse extends Table {

public int resetType() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; }
public int status() { int o = __offset(6); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; }
/**
* Should return the body parts reseted / being reset
*/
public int bodyParts(int j) { int o = __offset(8); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; }
public int bodyPartsLength() { int o = __offset(8); return o != 0 ? __vector_len(o) : 0; }
public ByteVector bodyPartsVector() { return bodyPartsVector(new ByteVector()); }
public ByteVector bodyPartsVector(ByteVector obj) { int o = __offset(8); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
public ByteBuffer bodyPartsAsByteBuffer() { return __vector_as_bytebuffer(8, 1); }
public ByteBuffer bodyPartsInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 8, 1); }
/**
* gives the time in seconds passed since the start of the reset
* is 0 when status == FINISHED
* starts at 0
*/
public int progress() { int o = __offset(10); return o != 0 ? bb.getInt(o + bb_pos) : 0; }
public int duration() { int o = __offset(12); return o != 0 ? bb.getInt(o + bb_pos) : 0; }

public static int createResetResponse(FlatBufferBuilder builder,
int resetType,
int status) {
builder.startTable(2);
int status,
int bodyPartsOffset,
int progress,
int duration) {
builder.startTable(5);
ResetResponse.addDuration(builder, duration);
ResetResponse.addProgress(builder, progress);
ResetResponse.addBodyParts(builder, bodyPartsOffset);
ResetResponse.addStatus(builder, status);
ResetResponse.addResetType(builder, resetType);
return ResetResponse.endResetResponse(builder);
}

public static void startResetResponse(FlatBufferBuilder builder) { builder.startTable(2); }
public static void startResetResponse(FlatBufferBuilder builder) { builder.startTable(5); }
public static void addResetType(FlatBufferBuilder builder, int resetType) { builder.addByte(0, (byte) resetType, (byte) 0); }
public static void addStatus(FlatBufferBuilder builder, int status) { builder.addByte(1, (byte) status, (byte) 0); }
public static void addBodyParts(FlatBufferBuilder builder, int bodyPartsOffset) { builder.addOffset(2, bodyPartsOffset, 0); }
public static int createBodyPartsVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); }
public static int createBodyPartsVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); }
public static void startBodyPartsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
public static void addProgress(FlatBufferBuilder builder, int progress) { builder.addInt(3, progress, 0); }
public static void addDuration(FlatBufferBuilder builder, int duration) { builder.addInt(4, duration, 0); }
public static int endResetResponse(FlatBufferBuilder builder) {
int o = builder.endTable();
return o;
Expand All @@ -51,13 +79,30 @@ public void unpackTo(ResetResponseT _o) {
_o.setResetType(_oResetType);
int _oStatus = status();
_o.setStatus(_oStatus);
int[] _oBodyParts = new int[bodyPartsLength()];
for (int _j = 0; _j < bodyPartsLength(); ++_j) {_oBodyParts[_j] = bodyParts(_j);}
_o.setBodyParts(_oBodyParts);
int _oProgress = progress();
_o.setProgress(_oProgress);
int _oDuration = duration();
_o.setDuration(_oDuration);
}
public static int pack(FlatBufferBuilder builder, ResetResponseT _o) {
if (_o == null) return 0;
int _bodyParts = 0;
if (_o.getBodyParts() != null) {
byte[] __bodyParts = new byte[_o.getBodyParts().length];
int _j = 0;
for (int _e : _o.getBodyParts()) { __bodyParts[_j] = (byte) _e; _j++;}
_bodyParts = createBodyPartsVector(builder, __bodyParts);
}
return createResetResponse(
builder,
_o.getResetType(),
_o.getStatus());
_o.getStatus(),
_bodyParts,
_o.getProgress(),
_o.getDuration());
}
}

18 changes: 18 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/ResetResponseT.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
public class ResetResponseT {
private int resetType;
private int status;
private int[] bodyParts;
private int progress;
private int duration;

public int getResetType() { return resetType; }

Expand All @@ -19,10 +22,25 @@ public class ResetResponseT {

public void setStatus(int status) { this.status = status; }

public int[] getBodyParts() { return bodyParts; }

public void setBodyParts(int[] bodyParts) { this.bodyParts = bodyParts; }

public int getProgress() { return progress; }

public void setProgress(int progress) { this.progress = progress; }

public int getDuration() { return duration; }

public void setDuration(int duration) { this.duration = duration; }


public ResetResponseT() {
this.resetType = 0;
this.status = 0;
this.bodyParts = null;
this.progress = 0;
this.duration = 0;
}
}

6 changes: 5 additions & 1 deletion protocol/java/src/solarxr_protocol/rpc/RpcMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ private RpcMessage() { }
public static final byte DetectStayAlignedRelaxedPoseRequest = 69;
public static final byte ResetStayAlignedRelaxedPoseRequest = 70;
public static final byte SerialTrackerCustomCommandRequest = 71;
public static final byte VRCConfigSettingToggleMute = 72;
public static final byte TrackingChecklistRequest = 73;
public static final byte TrackingChecklistResponse = 74;
public static final byte IgnoreTrackingChecklistStepRequest = 75;

public static final String[] names = { "NONE", "HeartbeatRequest", "HeartbeatResponse", "ResetRequest", "ResetResponse", "AssignTrackerRequest", "SettingsRequest", "SettingsResponse", "ChangeSettingsRequest", "ClearDriftCompensationRequest", "RecordBVHRequest", "RecordBVHStatus", "SkeletonConfigRequest", "ChangeSkeletonConfigRequest", "SkeletonResetAllRequest", "SkeletonConfigResponse", "OpenSerialRequest", "CloseSerialRequest", "SetWifiRequest", "SerialUpdateResponse", "AutoBoneProcessRequest", "AutoBoneProcessStatusResponse", "AutoBoneEpochResponse", "OverlayDisplayModeRequest", "OverlayDisplayModeChangeRequest", "OverlayDisplayModeResponse", "SerialTrackerRebootRequest", "SerialTrackerGetInfoRequest", "SerialTrackerFactoryResetRequest", "SerialDevicesRequest", "SerialDevicesResponse", "NewSerialDeviceResponse", "StartWifiProvisioningRequest", "StopWifiProvisioningRequest", "WifiProvisioningStatusResponse", "ServerInfosRequest", "ServerInfosResponse", "LegTweaksTmpChange", "LegTweaksTmpClear", "TapDetectionSetupNotification", "SetPauseTrackingRequest", "StatusSystemRequest", "StatusSystemResponse", "StatusSystemUpdate", "StatusSystemFixed", "ClearMountingResetRequest", "HeightRequest", "HeightResponse", "AutoBoneApplyRequest", "AutoBoneStopRecordingRequest", "AutoBoneCancelRecordingRequest", "SaveFileNotification", "TrackingPauseStateRequest", "TrackingPauseStateResponse", "SerialTrackerGetWifiScanRequest", "UnknownDeviceHandshakeNotification", "AddUnknownDeviceRequest", "ForgetDeviceRequest", "FirmwareUpdateRequest", "FirmwareUpdateStatusResponse", "FirmwareUpdateStopQueuesRequest", "SettingsResetRequest", "MagToggleRequest", "MagToggleResponse", "ChangeMagToggleRequest", "RecordBVHStatusRequest", "VRCConfigStateRequest", "VRCConfigStateChangeResponse", "EnableStayAlignedRequest", "DetectStayAlignedRelaxedPoseRequest", "ResetStayAlignedRelaxedPoseRequest", "SerialTrackerCustomCommandRequest", };
public static final String[] names = { "NONE", "HeartbeatRequest", "HeartbeatResponse", "ResetRequest", "ResetResponse", "AssignTrackerRequest", "SettingsRequest", "SettingsResponse", "ChangeSettingsRequest", "ClearDriftCompensationRequest", "RecordBVHRequest", "RecordBVHStatus", "SkeletonConfigRequest", "ChangeSkeletonConfigRequest", "SkeletonResetAllRequest", "SkeletonConfigResponse", "OpenSerialRequest", "CloseSerialRequest", "SetWifiRequest", "SerialUpdateResponse", "AutoBoneProcessRequest", "AutoBoneProcessStatusResponse", "AutoBoneEpochResponse", "OverlayDisplayModeRequest", "OverlayDisplayModeChangeRequest", "OverlayDisplayModeResponse", "SerialTrackerRebootRequest", "SerialTrackerGetInfoRequest", "SerialTrackerFactoryResetRequest", "SerialDevicesRequest", "SerialDevicesResponse", "NewSerialDeviceResponse", "StartWifiProvisioningRequest", "StopWifiProvisioningRequest", "WifiProvisioningStatusResponse", "ServerInfosRequest", "ServerInfosResponse", "LegTweaksTmpChange", "LegTweaksTmpClear", "TapDetectionSetupNotification", "SetPauseTrackingRequest", "StatusSystemRequest", "StatusSystemResponse", "StatusSystemUpdate", "StatusSystemFixed", "ClearMountingResetRequest", "HeightRequest", "HeightResponse", "AutoBoneApplyRequest", "AutoBoneStopRecordingRequest", "AutoBoneCancelRecordingRequest", "SaveFileNotification", "TrackingPauseStateRequest", "TrackingPauseStateResponse", "SerialTrackerGetWifiScanRequest", "UnknownDeviceHandshakeNotification", "AddUnknownDeviceRequest", "ForgetDeviceRequest", "FirmwareUpdateRequest", "FirmwareUpdateStatusResponse", "FirmwareUpdateStopQueuesRequest", "SettingsResetRequest", "MagToggleRequest", "MagToggleResponse", "ChangeMagToggleRequest", "RecordBVHStatusRequest", "VRCConfigStateRequest", "VRCConfigStateChangeResponse", "EnableStayAlignedRequest", "DetectStayAlignedRelaxedPoseRequest", "ResetStayAlignedRelaxedPoseRequest", "SerialTrackerCustomCommandRequest", "VRCConfigSettingToggleMute", "TrackingChecklistRequest", "TrackingChecklistResponse", "IgnoreTrackingChecklistStepRequest", };

public static String name(int e) { return names[e]; }
}
Expand Down
16 changes: 16 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/RpcMessageHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,22 @@ public void unpackTo(RpcMessageHeaderT _o) {
_oMessageValue = message(new solarxr_protocol.rpc.SerialTrackerCustomCommandRequest());
_oMessage.setValue(_oMessageValue != null ? ((solarxr_protocol.rpc.SerialTrackerCustomCommandRequest) _oMessageValue).unpack() : null);
break;
case solarxr_protocol.rpc.RpcMessage.VRCConfigSettingToggleMute:
_oMessageValue = message(new solarxr_protocol.rpc.VRCConfigSettingToggleMute());
_oMessage.setValue(_oMessageValue != null ? ((solarxr_protocol.rpc.VRCConfigSettingToggleMute) _oMessageValue).unpack() : null);
break;
case solarxr_protocol.rpc.RpcMessage.TrackingChecklistRequest:
_oMessageValue = message(new solarxr_protocol.rpc.TrackingChecklistRequest());
_oMessage.setValue(_oMessageValue != null ? ((solarxr_protocol.rpc.TrackingChecklistRequest) _oMessageValue).unpack() : null);
break;
case solarxr_protocol.rpc.RpcMessage.TrackingChecklistResponse:
_oMessageValue = message(new solarxr_protocol.rpc.TrackingChecklistResponse());
_oMessage.setValue(_oMessageValue != null ? ((solarxr_protocol.rpc.TrackingChecklistResponse) _oMessageValue).unpack() : null);
break;
case solarxr_protocol.rpc.RpcMessage.IgnoreTrackingChecklistStepRequest:
_oMessageValue = message(new solarxr_protocol.rpc.IgnoreTrackingChecklistStepRequest());
_oMessage.setValue(_oMessageValue != null ? ((solarxr_protocol.rpc.IgnoreTrackingChecklistStepRequest) _oMessageValue).unpack() : null);
break;
default: break;
}
_o.setMessage(_oMessage);
Expand Down
8 changes: 8 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/RpcMessageUnion.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ public RpcMessageUnion() {
public solarxr_protocol.rpc.DetectStayAlignedRelaxedPoseRequestT asDetectStayAlignedRelaxedPoseRequest() { return (solarxr_protocol.rpc.DetectStayAlignedRelaxedPoseRequestT) value; }
public solarxr_protocol.rpc.ResetStayAlignedRelaxedPoseRequestT asResetStayAlignedRelaxedPoseRequest() { return (solarxr_protocol.rpc.ResetStayAlignedRelaxedPoseRequestT) value; }
public solarxr_protocol.rpc.SerialTrackerCustomCommandRequestT asSerialTrackerCustomCommandRequest() { return (solarxr_protocol.rpc.SerialTrackerCustomCommandRequestT) value; }
public solarxr_protocol.rpc.VRCConfigSettingToggleMuteT asVRCConfigSettingToggleMute() { return (solarxr_protocol.rpc.VRCConfigSettingToggleMuteT) value; }
public solarxr_protocol.rpc.TrackingChecklistRequestT asTrackingChecklistRequest() { return (solarxr_protocol.rpc.TrackingChecklistRequestT) value; }
public solarxr_protocol.rpc.TrackingChecklistResponseT asTrackingChecklistResponse() { return (solarxr_protocol.rpc.TrackingChecklistResponseT) value; }
public solarxr_protocol.rpc.IgnoreTrackingChecklistStepRequestT asIgnoreTrackingChecklistStepRequest() { return (solarxr_protocol.rpc.IgnoreTrackingChecklistStepRequestT) value; }

public static int pack(FlatBufferBuilder builder, RpcMessageUnion _o) {
switch (_o.type) {
Expand Down Expand Up @@ -166,6 +170,10 @@ public static int pack(FlatBufferBuilder builder, RpcMessageUnion _o) {
case RpcMessage.DetectStayAlignedRelaxedPoseRequest: return solarxr_protocol.rpc.DetectStayAlignedRelaxedPoseRequest.pack(builder, _o.asDetectStayAlignedRelaxedPoseRequest());
case RpcMessage.ResetStayAlignedRelaxedPoseRequest: return solarxr_protocol.rpc.ResetStayAlignedRelaxedPoseRequest.pack(builder, _o.asResetStayAlignedRelaxedPoseRequest());
case RpcMessage.SerialTrackerCustomCommandRequest: return solarxr_protocol.rpc.SerialTrackerCustomCommandRequest.pack(builder, _o.asSerialTrackerCustomCommandRequest());
case RpcMessage.VRCConfigSettingToggleMute: return solarxr_protocol.rpc.VRCConfigSettingToggleMute.pack(builder, _o.asVRCConfigSettingToggleMute());
case RpcMessage.TrackingChecklistRequest: return solarxr_protocol.rpc.TrackingChecklistRequest.pack(builder, _o.asTrackingChecklistRequest());
case RpcMessage.TrackingChecklistResponse: return solarxr_protocol.rpc.TrackingChecklistResponse.pack(builder, _o.asTrackingChecklistResponse());
case RpcMessage.IgnoreTrackingChecklistStepRequest: return solarxr_protocol.rpc.IgnoreTrackingChecklistStepRequest.pack(builder, _o.asIgnoreTrackingChecklistStepRequest());
default: return 0;
}
}
Expand Down
Loading