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

[WIP]: Do Not Merge: Quick and dirty way to get and return GravityForce from model #3416

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aymanhab
Copy link
Member

@aymanhab aymanhab commented Mar 1, 2023

Fixes issue #<issue_number>

Brief summary of changes

Testing I've completed

Looking for feedback on...

CHANGELOG.md (choose one)

  • no need to update because...
  • updated.

This change is Reviewable

@jsn54
Copy link

jsn54 commented Mar 20, 2023

Here is a personal comment about this PR. I think this is exactly what I need but I can't manage to test it, trying to compil this change fails. Where I am now:

  • simbody 3.7 compiles fine with VisualStudio 2017. Why 2017 ? Because compiling with 2019 fails (as is Failed to compile (Install) simbody with vs2019 simbody/simbody#717)
  • spdlog (needed by opensim) compiles fine with VS2017 too
  • opensim partially compiles vith VS2017
    VS2017-opensim-compilation.log
    When I run the opensim-core-build\Bindings\Python\Release\setup_win_python38.py locs seem correct, but at the execution step I get errors: "FileNotFoundError: [WinError 3] The specified path cannot be found: 'c:/OpenSim 4.4/bin". I really feel despaired because I'v spent much time with various version of VisualStudio, etc. Compiling python bindings only seems to be a mess...

@jsn-inrs
Copy link

Would someone please help me compile Opensim's Python bindings ? Unfortunately, #PR3414 was closed yesterday, this was an alternative way to solve the problem described in https://simtk.org/plugins/phpBB/viewtopic.php?f=91&t=15254&sid=e4de93b208ba09734d13954a9cb03480... Retrieving gravity forces through Opensim's python bindings is an essential part of my current work, but I was not able to correctly compile a swig-python module or recompile python binding because Windows compilation process is really a mess. Yet all the necessary code seems to be available... Thanks in advance !

@aymanhab
Copy link
Member Author

The PR has been updated without the need for a separate plugin, please follow the notes and check the diffs on the PR

@jsn-inrs
Copy link

jsn-inrs commented Jun 5, 2023

I tried to test this PR, but I lack skills and practice in CMake/Visual Studio to build an runable version of this PR.
The attached zip file includes :

  • the "Build_and_Test_Method.txt" file explaining how I tried to build the code
  • attached files described in the former file.
    The compilation fails. Would someone "take me by the hand" as a total newbie to help me retrieve gravity data ?
    Thanks in advance !
    MAJ-osim45-fromScratch.zip
    Actually I think I lack skills in git as well, as I've never attended a training course. I've just discovered how I should use PR (from https://www.atlassian.com/fr/git/tutorials/comparing-workflows/feature-branch-workflow) and I may not have checkout/fetch/pull the right branch. Help would be greatly appreciated... Sorry for the inconveniencing :-/

@aymanhab
Copy link
Member Author

aymanhab commented Jun 6, 2023 via email

@jsn-inrs
Copy link

jsn-inrs commented Jun 7, 2023

Thank you very much for the attention given to this PR. Please attached find a zip archive with logs about today's build trials. spdlog compiles and installs fine with VS2019 and VS2022. However, I can't compile simbody37 with those framework, and opensim's documentation states that the same compiler should be used for all elements of the process (spdlog, simbody37 and opensim) (?) so I feel quite desoriented...
20230607.zip

@aymanhab
Copy link
Member Author

@jsn-inrs
Copy link

Yes !! You did it ! Don't apologize for your bad french, it's only about Visual Studio mysteries... Well, I've downloaded this artifact (I didn't even know such thing existed) and installed it very easily. Thanks A LOT for your help and availability. Unfortunately, I don't understand what was wrong in building OpenSim on my own (M$ mysteries or my own lack of skills, surely both).
Will this PR be included in future releases ? I hope so. I also hope the paper I submitted recently will be accepted, so that you may finally understand why I've been bothering you for so long. I'll keep you in touch. Once again, thanks a lot !

@adamkewley adamkewley changed the title [WIP] Do not merge Quick and dirty way to get and return GravityForce from model [WIP]: Do Not Merge: Quick and dirty way to get and return GravityForce from model Jul 18, 2023
@nickbianco
Copy link
Member

@aymanhab, can we close this?

@aymanhab
Copy link
Member Author

This method and a couple other methods required by other users need to be added to Model then we can close this.

@aymanhab
Copy link
Member Author

Fixed by PR #3618

@aymanhab
Copy link
Member Author

@jsn-inrs the change was incoroprated into OpenSim::Model and will be included in the next release, you can check the artifacts to adjust accordingly. Thanks for your patience

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

Successfully merging this pull request may close these issues.

None yet

4 participants