public RenderMetadata_t(StateMessage_t state) { utime = state.utime; isCompressed = state.compressImage; camWidth = state.camWidth; camHeight = state.camHeight; camDepthScale = state.camDepthScale; cameraIDs = state.cameras.Select(obj => obj.ID).ToList(); channels = state.cameras.Select(obj => obj.channels).ToList(); }
public RenderMetadata_t(StateMessage_t state) { ntime = state.ntime; camWidth = state.camWidth; camHeight = state.camHeight; camDepthScale = state.camDepthScale; cameraIDs = state.cameras.Select(obj => obj.ID).ToList(); channels = state.cameras.Select(obj => obj.channels).ToList(); // These come from private vars generated by unity on every frame. hasCameraCollision = state.hasCameraCollision; landmarksInView = state.landmarksInView.ToList(); lidarReturn = state.lidarReturn; }