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

Fixing segfault in SoftSdfParser #345

Merged
merged 2 commits into from
Mar 6, 2015
Merged

Fixing segfault in SoftSdfParser #345

merged 2 commits into from
Mar 6, 2015

Conversation

mxgrey
Copy link
Member

@mxgrey mxgrey commented Mar 6, 2015

The atlasSimbicon app is failing in master because of a segfault in the SoftSdfParser. It tries to call "getTransform()" on a BodyNode that does not yet have a parent joint, and this is guaranteed to result in a segfault, because the parent joint is strictly responsible for the relative transform of its child BodyNode. The parser has been corrected to set the transform-from-parent of the FreeJoint according to the initial transform as read by the SdfParser. However, we might want to consider setting that transform to Identity and using the initial transform to set the initial joint values of the FreeJoint. Either way works, but one might be semantically preferable over the other.

I also modified the warning message for the soft boxes to be a bit more clear.

@jslee02 jslee02 added this to the Release DART 5.0 milestone Mar 6, 2015
@jslee02
Copy link
Member

jslee02 commented Mar 6, 2015

👍

Waiting to pass build tests.

jslee02 added a commit that referenced this pull request Mar 6, 2015
Fixing segfault in SoftSdfParser
@jslee02 jslee02 merged commit 6c31aee into master Mar 6, 2015
@mxgrey mxgrey deleted the grey/SoftSdfFixes branch March 18, 2015 08:58
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