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

Fix Point Kinematics Reporter Variable Error #3966

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexbeattie42
Copy link
Contributor

@alexbeattie42 alexbeattie42 commented Nov 13, 2024

Brief summary of changes

Fix Point Kinematics Reporter Variable Error

Testing I've completed

Tested locally

Looking for feedback on...

CHANGELOG.md (choose one)


This change is Reviewable

@nickbianco
Copy link
Member

Good find @alexbeattie42! Could you add a changelog entry, since this could affect behavior for users who might not have realized that setRelativeToBody was working incorrectly.

It would be nice to add some unittests for PointKinematics in testAnalyzeTool.cpp, if you're feeling up for it.

@alexbeattie42
Copy link
Contributor Author

I can try to take a look at adding some test cases. I'm not very familiar with the testing framework used in the project (I believe it's catch2) but I'll give it a shot.

@nickbianco
Copy link
Member

Thanks @alexbeattie42! Catch2 is pretty straight-forward, but let me know if you have any questions.

@alexbeattie42 alexbeattie42 force-pushed the point-kinematics branch 2 times, most recently from f5635ce to c31fc25 Compare December 17, 2024 14:38
@alexbeattie42
Copy link
Contributor Author

@nickbianco can you take another look?

Copy link
Member

@nickbianco nickbianco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of nits, but otherwise LGTM. Nice job @alexbeattie42!

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @alexbeattie42)


Applications/Analyze/test/testPointKinematics.cpp line 100 at r1 (raw file):

    std::string coordinates_file_name = "subject01_walk1_ik.mot";

    OpenSim::Model model(model_name);

Minor: remove all explicit OpenSim namespace usages (here and below) since you have using namespace OpenSim above. Mostly for consistency in this file.

Suggestion:

    Model model(model_name);

Applications/Analyze/test/testPointKinematics.cpp line 164 at r1 (raw file):

    OpenSim::AnalyzeTool roundTrip(output_file_name);
    roundTrip.run();
    

nit: remove blank line


Applications/Analyze/test/testPointKinematics.cpp line 165 at r1 (raw file):

    roundTrip.run();
    
}

nit: Add newline character at EOF

Copy link
Contributor Author

@alexbeattie42 alexbeattie42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nickbianco Thanks! I have resolved the issues.

Reviewable status: 2 of 4 files reviewed, all discussions resolved (waiting on @nickbianco)

Copy link
Member

@nickbianco nickbianco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @alexbeattie42)

@alexbeattie42
Copy link
Contributor Author

@nickbianco Is there anything I still need to do to get this merged?

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.

2 participants