Skip to content
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

Arm26 CMC example: missing files #1050

Closed
nickbianco opened this issue Nov 6, 2018 · 15 comments
Closed

Arm26 CMC example: missing files #1050

nickbianco opened this issue Nov 6, 2018 · 15 comments
Assignees
Milestone

Comments

@nickbianco
Copy link
Member

Steps to reproduce

Ran the CMC example on confluence with the arm26 model.

Expected result

Normal coordinate tracking behavior.

Actual result

Weird tracking result

In the second main section labeled "Changing the Desired Kinematics", the tutorial asks you to modify the inverse kinematics results by replacing the shoulder elevation column with the values from the elbow flexion column. Upon doing this, towards the end of the time window this happens:
image

I tried setting the shoulder elevation to half the elbow flexion values and that worked fine. But the original instructions should also work since shoulder elevation can range [-90, 180] degrees while elbow flexion is restricted to [0, 130].

Missing control constraints file.

In addition to the tracking error, the sample control constraints file that the confluence example references is missing from the Arm26 CMC subdirectory.

Environment and GUI version

Windows 10, Artifact 2018-11-02-e6f8d11e, AppVeyor build 1.0.1942

@nickbianco nickbianco added this to the 20181105 milestone Nov 6, 2018
@aseth1
Copy link
Member

aseth1 commented Nov 6, 2018

@nickbianco can you run the example in 3.3 and verify that the same behavior is occurring. I saw similar behavior just running forward dynamics in 4.0 where the muscle points seemed to default to the origin when the state is NaN and that is a bug! But, the simulation was also returning NaN in 3.3 so the result may not be a bug although not the best example to be putting out there.

@nickbianco
Copy link
Member Author

@aseth1 just tested on 3.3 and I get a similar error. Towards the end of the simulation the disappears, and the whole model disappears if you try to rotate it.

@aymanhab
Copy link
Member

aymanhab commented Nov 6, 2018 via email

@nickbianco
Copy link
Member Author

Alright. For now we could remove the section from the confluence example where the user edits the kinematics by hand.

@jenhicks
Copy link
Member

jenhicks commented Nov 6, 2018

Make sure the issue of drawing paths with NaNs is still open

@aymanhab
Copy link
Member

aymanhab commented Nov 6, 2018

File is also missing in 3.3 distribution

@aymanhab
Copy link
Member

aymanhab commented Nov 6, 2018

#762

@chrisdembia
Copy link
Member

Should we move this issue out of the sprint then?

@nickbianco
Copy link
Member Author

The actuator constraints are missing in 3.3, but it would be nice to include in the 4.0 distribution. The confluence tutorial would benefit from having the actuator constraints section.

@nickbianco
Copy link
Member Author

I created the control constraints file if someone with a GUI environment wants to create a PR:
arm26_ControlConstraints.txt

@nickbianco
Copy link
Member Author

@jimmyDunne do yo thang

@nickbianco nickbianco changed the title Arm26 CMC example: weird tracking behavior + missing files Arm26 CMC example: missing files Nov 7, 2018
@chrisdembia
Copy link
Member

This is in progress only because we need to update the opensim-models submodule in opensim-gui.

@carmichaelong
Copy link
Member

Looks like the file is correctly placed into /Models/Arm26/ComputedMuscleControl, and the example can be done.

It also looks like it is not in the reference folder (/Models/Arm26/OutputReference/ComputedMuscleControl), but all the other files for setup are in there. Should this file also be added to the corresponding CMC OutputReference folder?

@chrisdembia
Copy link
Member

Should this file also be added to the corresponding CMC OutputReference folder?

Interesting... I don't think we should have a duplicate in the repo but maybe CMake should put a copy in OutputReference.

@carmichaelong
Copy link
Member

Moving this to verified on windows and started a new issue with things to do beyond 4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants