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:
Christoph Haag 2020-05-29 01:05:37 +02:00
parent c9b692903c
commit f10b341f57
2 changed files with 0 additions and 9 deletions
src/xrt/state_trackers/oxr

View file

@ -210,9 +210,6 @@ oxr_session_get_view_pose_at(struct oxr_logger *log,
&timestamp, &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;

View file

@ -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;
}