Skip to content

Commit e85d370

Browse files
committed
updated test and xml doc
1 parent 2904630 commit e85d370

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

com.unity.perception/Runtime/GroundTruth/Labelers/KeyPointLabeler.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ public class KeyPoint
165165
/// </summary>
166166
public float y;
167167
/// <summary>
168-
/// The state of the point, 0 = not present, 1 = keypoint is present
168+
/// The state of the point,
169+
/// 0 = not present,
170+
/// 1 = keypoint is present but not visible,
171+
/// 2 = keypoint is present and visible
169172
/// </summary>
170173
public int state;
171174
}

com.unity.perception/Tests/Runtime/GroundTruthTests/KeyPointGroundTruthTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public IEnumerator Keypoint_TestStaticLabeledCube()
298298
Assert.AreEqual(t.keypoints[5].y, t.keypoints[6].y);
299299

300300
for (var i = 0; i < 9; i++) Assert.AreEqual(i, t.keypoints[i].index);
301-
for (var i = 0; i < 8; i++) Assert.AreEqual(1, t.keypoints[i].state);
301+
for (var i = 0; i < 8; i++) Assert.AreEqual(2, t.keypoints[i].state);
302302
Assert.Zero(t.keypoints[8].state);
303303
Assert.Zero(t.keypoints[8].x);
304304
Assert.Zero(t.keypoints[8].y);

0 commit comments

Comments
 (0)