Skip to content

Commit 555e1ce

Browse files
committed
Merge branch 'release/5.11.0' into 'main'
Release 5.11.0 See merge request xr/integrations/unityplugin!273
2 parents efe1add + cc426f9 commit 555e1ce

File tree

24 files changed

+9669
-11470
lines changed

24 files changed

+9669
-11470
lines changed

.gitlab/merge_request_templates/default.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ _These tasks are for the merge request creator to tick off when creating a merge
2020
- [ ] Ensure documentation requirements are met e.g., public API is commented.
2121
- [ ] Consider any licensing/other legal implications for this MR e.g. notices required by any new libraries.
2222
- [ ] Add any relevant labels such as `breaking` to this MR.
23+
- [ ] If this MR closes a Jira issue, make sure the fix version on the JIRA issue is set to the correct one.
2324

2425
## Reviewer Tasks
2526

2627
_Add any instructions or tasks for the reviewer such as specific test considerations before this can be merged._
2728

28-
[Use emojis in review threads to communicate intent and help contributors.](../../CONTRIBUTING.md#review-threads)
29+
[Use emojis in review threads to communicate intent and help contributors.](https://gitlab.ultrahaptics.com/xr/integrations/unityplugin/-/blob/develop/CONTRIBUTING.md#review-threads)
2930

3031
- [ ] Code reviewed.
3132
- [ ] Non-code assets e.g. Unity assets/scenes reviewed.

.gitlab/merge_request_templates/lightweight.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ _These tasks are for the merge request creator to tick off when creating a merge
1313
- [ ] Pair review with a member of the QA team.
1414
- [ ] Add any release testing considerations to the MR for the next release.
1515
- [ ] Consider any licensing/other legal implications for this MR e.g. notices required by any new libraries.
16+
- [ ] If this MR closes a Jira issue, make sure the fix version on the JIRA issue is set to the correct one.
1617

1718
## Reviewer Tasks
1819

1920
_Add any instructions or tasks for the reviewer such as specific test considerations before this can be merged._
2021

21-
[Use emojis in review threads to communicate intent and help contributors.](../../CONTRIBUTING.md#review-threads)
22+
[Use emojis in review threads to communicate intent and help contributors.](https://gitlab.ultrahaptics.com/xr/integrations/unityplugin/-/blob/develop/CONTRIBUTING.md#review-threads)
2223

2324
- [ ] Code reviewed.
2425
- [ ] Non-code assets e.g. Unity assets/scenes reviewed.

.gitlab/merge_request_templates/release.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@
22

33
This merge request template is for release merge requests.
44

5-
## Summary
6-
7-
_Summary of the purpose of this merge request._
8-
95
## Release Tasks
106

117
_These tasks are for the merge request creator to tick off when creating a merge request._
128

139
- [ ] Run through the pre-release steps on [Confluence](https://ultrahaptics.atlassian.net/wiki/spaces/SV/pages/3665625233). The rest of the process continues after this merge request is merged.
1410
- [ ] Check any relevant CHANGELOG files have been updated.
1511
- [ ] Ensure documentation requirements are met e.g., public API is commented.
16-
- [ ] Consider any licensing/other legal implications for this MR e.g. notices required by any new libraries.
17-
- [ ] Add any relevant labels such as `breaking` to this MR.
1812
- [ ] Ensure package.json files are updated with new package versions and any changes dependency versions.
1913
- [ ] If this is a major release, action any `Obsolete` items and other breaking considerations.
2014
- [ ] Check that additional release tasks for each MR contributing to this release have been considered.
@@ -25,6 +19,6 @@ _This task list should be populated from MRs contributing to this release. Can i
2519

2620
- [ ]
2721

28-
## Closes JIRA Issue
22+
## JIRA Release
2923

30-
_If this MR closes any JIRA issues list them below in the form `Closes PROJECT-#`_
24+
_Link to the Jira release for this version. See the [releases page](https://ultrahaptics.atlassian.net/projects/UNITY?selectedItem=com.atlassian.jira.jira-projects-plugin:release-page)._

Packages/Tracking OpenXR/CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
[docs-website]: https://docs.ultraleap.com/ "Ultraleap Docs"
88

9+
## [1.0.0-pre.5] - unreleased
10+
11+
### Added
12+
13+
- Added support for `XR_ULTRALEAP_hand_tracking_elbow` which provides elbow tracking if supported on the system.
14+
15+
### Known issues
16+
17+
- Currently the Ultraleap Hand Tracking feature for OpenXR requires the New and Legacy input systems to be enabled, to simultaneously use OpenXR and the Ultraleap Unity Plugin's features.
18+
- The OpenXR Leap Provider does not currently support the following hand properties (and will return fixed values):
19+
- Hand and Finger: `FrameId`
20+
- Hand: `Confidence`
21+
- Hand: `GrabAngle`
22+
- Hand and Finger: `Id` & `HandId` will always return `0` and `1` for the left and right hand respectively
23+
- Hand and Finger: `TimeVisible`
24+
- Finger: `IsExtended`
25+
926
## [1.0.0-pre.4] - 10/06/2022
1027

1128
### Fixed
1229

13-
- Fixed Hand data provided via the OpenXR Leap Provider was always relative to the scene origin. It now respects any parent transforms applied to the main camera and works correctly with `Tracked Pose Driver`
30+
- Fixed Hand data provided via the OpenXR Leap Provider was always relative to the scene origin. It now respects any parent transforms applied to the main camera and works correctly with `Tracked Pose Driver`.
1431

1532
### Known issues
1633

Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:2ae7ce5306e1613c1eb213bf59b9ebf557f800934e349a9048e0c409263c5601
3-
size 33280
2+
oid sha256:08702946b030636824c139d682f3cb25ed02d35d044a6173ac0fd5242dcd3667
3+
size 34816

Packages/Tracking OpenXR/Runtime/Scripts/HandTracker.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private HandTracker(Handedness handedness)
3434
/// The current <see cref="HandJointSet"/> that this tracker is tracking.
3535
/// </summary>
3636
[PublicAPI]
37-
public HandJointSet JointSet => HandJointSet.Default;
37+
public HandJointSet JointSet => _handTracking.JointSet;
3838

3939
/// <summary>
4040
/// The number of joints in the <see cref="JointSet"/> that this tracker is tracking.
@@ -143,6 +143,7 @@ public enum HandJoint
143143
Elbow
144144
}
145145

146+
[PublicAPI]
146147
public enum HandJointSet
147148
{
148149
/// <summary>
@@ -154,7 +155,7 @@ public enum HandJointSet
154155
/// Default hand-set with the addition of the elbow joint on the forearm.
155156
/// <remarks>This requires the Ultraleap extension <code>XR_ULTRALEAP_hand_tracking_forearm</code></remarks>
156157
/// </summary>
157-
HandWithForearm = 1000149000
158+
[PublicAPI] HandWithForearm = 1000149000
158159
}
159160

160161
/// <summary>

Packages/Tracking OpenXR/Runtime/Scripts/HandTrackingFeature.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Ultraleap.Tracking.OpenXR
2424
Desc = "Articulated hands using XR_EXT_hand_tracking",
2525
Category = FeatureCategory.Feature,
2626
Required = false,
27-
OpenxrExtensionStrings = "XR_EXT_hand_tracking",
27+
OpenxrExtensionStrings = "XR_EXT_hand_tracking XR_ULTRALEAP_hand_tracking_forearm",
2828
BuildTargetGroups = new[] {BuildTargetGroup.Standalone, BuildTargetGroup.Android}
2929
)]
3030
#endif
@@ -59,7 +59,7 @@ private static class Native
5959
internal static extern void OnAppSpaceChange(ulong xrSpace);
6060

6161
[DllImport(NativeDLL, EntryPoint = NativePrefix + "CreateHandTrackers", ExactSpelling = true)]
62-
internal static extern int CreateHandTrackers();
62+
internal static extern int CreateHandTrackers(HandJointSet jointSet);
6363

6464
[DllImport(NativeDLL, EntryPoint = NativePrefix + "DestroyHandTrackers", ExactSpelling = true)]
6565
internal static extern int DestroyHandTrackers();
@@ -94,6 +94,10 @@ protected override bool OnInstanceCreate(ulong xrInstance)
9494
return false;
9595
}
9696

97+
JointSet = OpenXRRuntime.IsExtensionEnabled("XR_ULTRALEAP_hand_tracking_forearm")
98+
? HandJointSet.HandWithForearm
99+
: HandJointSet.Default;
100+
97101
if (OpenXRRuntime.GetExtensionVersion("XR_EXT_hand_tracking") < 4)
98102
{
99103
Debug.LogWarning("XR_EXT_hand_tracking is not at least version 4, disabling Hand Tracking");
@@ -105,7 +109,7 @@ protected override bool OnInstanceCreate(ulong xrInstance)
105109

106110
protected override void OnSubsystemStart()
107111
{
108-
int result = Native.CreateHandTrackers();
112+
int result = Native.CreateHandTrackers(JointSet);
109113
if (IsResultFailure(result))
110114
{
111115
Debug.LogError($"Failed to create hand-trackers: {Native.ResultToString(result)}");
@@ -132,6 +136,8 @@ internal bool LocateHandJoints(Handedness handedness, FrameTime frameTime, HandJ
132136
return Convert.ToBoolean(isActive);
133137
}
134138

139+
internal HandJointSet JointSet { get; private set; }
140+
135141
// All OpenXR error codes are negative.
136142
private static bool IsResultFailure(int result) => result < 0;
137143

Packages/Tracking OpenXR/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.ultraleap.tracking.openxr",
3-
"version": "1.0.0-pre.4",
3+
"version": "1.0.0-pre.5",
44
"displayName": "Ultraleap Tracking OpenXR",
55
"description": "Support for OpenXR Hand Tracking",
66
"unity": "2020.3",

Packages/Tracking Preview/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "com.ultraleap.tracking.preview",
3-
"version": "5.10.0",
3+
"version": "5.11.0",
44
"description": "Ultraleap Tracking Preview",
55
"displayName": "Ultraleap Tracking Preview",
6-
"unity": "2019.4",
6+
"unity": "2020.3",
77
"license": "Apache-2.0",
88
"dependencies": {
9-
"com.ultraleap.tracking": "5.9.0"
9+
"com.ultraleap.tracking": "5.10.0"
1010
},
1111
"keywords": [
1212
"ultraleap",
@@ -26,7 +26,7 @@
2626
"description": "A collection of examples for the Preview package",
2727
"path": "Examples~"
2828
},
29-
{
29+
{
3030
"displayName": "OVR Provider",
3131
"description": "An experimental compatibility layer to connect Ultraleap interactions with Oculus hand tracking through a Provider",
3232
"path": "OVR Provider~"

0 commit comments

Comments
 (0)