mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 05:06:31 +00: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:
parent
c9b692903c
commit
f10b341f57
src/xrt/state_trackers/oxr
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue