-
Notifications
You must be signed in to change notification settings - Fork 35
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
Motion playback enforces coordinate range (clamped) not enforced during forward simulation #540
Comments
Possibly related to #534. |
@aseth1 Loading the resulting states file from running FD tool and saving results to a file produced identical curve to the one shown above, Is there a better way to compare? Also running the FD tool as described produces the following message in the shell: AssemblySolver::track() attempt Failed: SimTK Exception thrown at Assembler.cpp:973: |
The GUI calls setStateVariableValue generically on all states, when the call is made with a Coordinate that is clamped, the clamping is enforced even if enforceConstraints is set to false. Would that explain? @aseth1 @tkuchida @chrisdembia Should we be using a different call that sets the Y vector directly? We know these are states at this point. |
@aymanhab |
The bigger issue with A simpler/faster solution is to convert files and motions into states (StatesTrajectory) and then have it render at a given time rate (where changing a factor affects player speed). |
Made a build where clamping is enforced only if enforceConstraints and the issue has been fixed, but no rush to put it in until we have a consensus. |
Naming is more robust for a single transaction and that can be done once with |
I'm wary about using the I'm fine with either (a) only clamping in |
What I would really like is a way to easily directly write to |
Steps to reproduce
Expected result
Contact sphere (foot) does not penetrate the floor on playback and joint angles are identical to the forward simulation.
Actual result
Note that the foot goes through the floor because pin2 does not flex enough. Instead of reaching -131 degrees the playback restricts the coordinate to -114.5 degrees (-2 rad). This is not an issue with the assembly.
Environment and GUI version
The text was updated successfully, but these errors were encountered: