Bug fix/erroneous elevator joint#191
Open
reesep5 wants to merge 4 commits into
Open
Conversation
ds58
requested changes
Sep 19, 2024
Comment on lines
+1
to
+2
| # __IMPORTANT NOTE: READ-ONLY REPO, SCS2 GOT MOVED TO GITHUB: https://github.com/ihmcrobotics/simulation-construction-set-2 __ | ||
|
|
Contributor
There was a problem hiding this comment.
What is this addition to the README?
Author
There was a problem hiding this comment.
I think this was a Sylvain addition, may not be needed
Contributor
There was a problem hiding this comment.
Could you undo all the formatting changes to this file so that the only changes are relevant to the bug fix?
Contributor
|
You have a failing test |
ds58
requested changes
Sep 19, 2024
Comment on lines
+1823
to
+1829
| List<JointDefinition> allJointsMinusRootJoint = new ArrayList<>(robotDefinition.getAllJoints()); | ||
| for (int i = 0; i < allJointsMinusRootJoint.size(); i++) | ||
| { | ||
| if(allJointsMinusRootJoint.get(i).equals(robotDefinition.getFloatingRootJointDefinition())) | ||
| allJointsMinusRootJoint.remove(i); | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
You can replace this with
List<JointDefinition> allJointsMinusRootJoint = robotDefinition.getAllJoints();
allJointsMinusRootJoin.remove(robotDefinition.getFloatingRootJointDefinition());
as robotDefinition.getAllJoints() always returns a new ArrayList
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes issue where an erroneous elevator joint gets added when changing offsets within a model, causing all of the reference frames to be incorrect.