-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skeleton Constraints #1222
base: main
Are you sure you want to change the base?
Skeleton Constraints #1222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking really good, overall good quality code. I think my suggestions could help to keep things maintainable for the future.
server/core/src/main/java/dev/slimevr/tracking/processor/skeleton/HumanSkeleton.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/trackers/TrackerResetsHandler.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/skeleton/HumanSkeleton.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/skeleton/HumanSkeleton.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/skeleton/HumanSkeleton.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/Constraint.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/Constraint.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/Constraint.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/Bone.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope these changes were what you had in mind! If they are not don't hesitate to let me know.
server/core/src/main/java/dev/slimevr/tracking/processor/Constraint.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/Constraint.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/Constraint.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/skeleton/HumanSkeleton.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/skeleton/HumanSkeleton.kt
Outdated
Show resolved
Hide resolved
server/core/src/main/java/dev/slimevr/tracking/processor/skeleton/HumanSkeleton.kt
Outdated
Show resolved
Hide resolved
I tested not excluding hinge constraints from correction but it causes the lower leg bone to consistently become off-kilter by 5-15 degrees after a little moving around so I am leaving them excluded for now :( |
14ad368
to
df842a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better, see my previous comments as I've replied to some for why changes are requested. P.S. If possible, merging from main is preferred to update PRs after reviews as otherwise it clobbers history, if it's not possible then it's fine, just makes it a little difficult. Perhaps a quick beta can be done with this to ensure none of the changes have broken anything. TY for the fixes!
server/core/src/main/java/dev/slimevr/tracking/processor/Constraint.kt
Outdated
Show resolved
Hide resolved
…raint.kt Co-authored-by: Butterscotch! <bscotchvanilla@gmail.com>
I can merge after reviews in the future, I didn't realize it messed it up until after I did it. I'll make a beta soon, thanks for the suggestions they made the code heaps better! |
Pl.ease rebase SolarXR |
# Conflicts: # server/core/src/main/java/dev/slimevr/protocol/rpc/settings/RPCSettingsBuilder.java
Just updating on this, I did test the beta myself and it appears to be fine, personally I think it's good to be merged besides SolarXR issues? Unsure what the status of SolarXR stuff is because I know the spine yaw correct PR got merged first. |
Is SolarXR an issue? I belive the unused values for spine yaw comp are just replaced with dummies as of currently. |
SolarXR should be fine yeah I didn't realize Eiren filled it in. |
please fix lint |
Done! |
Adds constraints to the joints of the skeleton allowing for unrealistic joint angles to be clamped to more reasonable values and for extreme drift to be compensated for.