-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug fix/erroneous elevator joint #191
base: develop
Are you sure you want to change the base?
Conversation
# __IMPORTANT NOTE: READ-ONLY REPO, SCS2 GOT MOVED TO GITHUB: https://github.com/ihmcrobotics/simulation-construction-set-2 __ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this addition to the README?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was a Sylvain addition, may not be needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you undo all the formatting changes to this file so that the only changes are relevant to the bug fix?
You have a failing test
|
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); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can replace this with
List<JointDefinition> allJointsMinusRootJoint = robotDefinition.getAllJoints();
allJointsMinusRootJoin.remove(robotDefinition.getFloatingRootJointDefinition());
as robotDefinition.getAllJoints()
always returns a new ArrayList
Fixes issue where an erroneous elevator joint gets added when changing offsets within a model, causing all of the reference frames to be incorrect.