mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-29 04:02:05 +01:00
st/oxr: Don't assert on invalid pose
ensure_valid_position_and_orientation() inserts fallback poses when driver reported poses are invalid.
This commit is contained in:
1 parent
c9b692903c
commit
f10b341f57
2 files changed
-9
No files matched your search
@@ -210,9 +210,6 @@ oxr_session_get_view_pose_at(struct oxr_logger *log,
|
||||
×tamp, &relation);
|
||||
|
||||
// clang-format off
|
||||
// Function above always makes the pose valid.
|
||||
assert((relation.relation_flags & XRT_SPACE_RELATION_POSITION_VALID_BIT) != 0);
|
||||
assert((relation.relation_flags & XRT_SPACE_RELATION_ORIENTATION_VALID_BIT) != 0);
|
||||
*pose = relation.pose;
|
||||
|
||||
bool valid_vel = (relation.relation_flags & XRT_SPACE_RELATION_ANGULAR_VELOCITY_VALID_BIT) != 0;
|
||||
|
||||
@@ -147,12 +147,6 @@ oxr_xdev_get_pose_at(struct oxr_logger *log,
|
||||
oxr_xdev_get_relation_at(log, inst, xdev, name, at_time,
|
||||
out_pose_timestamp_ns, &relation);
|
||||
|
||||
// Function above makes them valid.
|
||||
// clang-format off
|
||||
assert((relation.relation_flags & XRT_SPACE_RELATION_POSITION_VALID_BIT) != 0);
|
||||
assert((relation.relation_flags & XRT_SPACE_RELATION_ORIENTATION_VALID_BIT) != 0);
|
||||
// clang-format on
|
||||
|
||||
out_pose->position = relation.pose.position;
|
||||
out_pose->orientation = relation.pose.orientation;
|
||||
}
|
||||
Reference in new issue
Block a user