-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing save_skel_state to actually save skel_state. (#179)
Summary: Pull Request resolved: #179 In this function, there was some really suspicious-looking code, namely this: const Eigen::Quaternionf localRotation{ joint_params[iFrame].coeff(iJoint, 3), joint_params[iFrame].coeff(iJoint, 4), joint_params[iFrame].coeff(iJoint, 5), joint_params[iFrame].coeff(iJoint, 6), }; Digging into why this function worked at all given how wrong the above code is revealed that we were actually completely ignoring the skeleton state passed into this function and just constructing a brand new skeleton state from the joint parameters. This seems non-ideal to me since it violates the contract: if you pass in skel_states that don't match the joint parameters you won't get what you expect. Therefore let's rewrite this function to work directly from the skel_state, which means we can toss out the joint parameters altogether. This lets us delete a bunch of skel_state_to_joint_params calls. Also fixing the API to be less annoying (use buffers instead of lists of buffers), since this appears to be what everyone wants anyways. Reviewed By: yutingye, jeongseok-meta Differential Revision: D67655918 fbshipit-source-id: 53b5c125924b4f7ebb9f834d233489394ea874c8
- Loading branch information
1 parent
5b62455
commit 8859b1a
Showing
5 changed files
with
57 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters