-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
workspace: Upgrade libsdformat to latest release 9.2.0 #13201
workspace: Upgrade libsdformat to latest release 9.2.0 #13201
Conversation
91e2d5f
to
d43e764
Compare
@EricCousineau-TRI As of libsdformat 9.2, calling Doing |
Gotcha, will try it out. |
Code in question, I believe: drake/multibody/parsing/detail_scene_graph.cc Lines 434 to 449 in 13e0024
|
Sorry, I should have hyperlinked it. For me, it was: drake/multibody/parsing/detail_scene_graph.cc Line 472 in 13e0024
But probably, both sites are broken anyway. |
I think the assumption in the following comment is incorrect: drake/multibody/parsing/detail_scene_graph.cc Lines 470 to 474 in 13e0024
A |
I think the behavior change is caused by the following line of code that adds an empty |
reverting the behavior change in gazebosim/sdformat#268, and available for discussion about how to reduce the brittleness of the afore-mentioned code |
Gotcha. It's stated in the spec (1.7) as being optional: So in this case, just change the logic to not require them? Also, for solving this acute PR, I will push (fast-forward) onto Jeremy's current branch, but with your PR's commit to see if it solves the issue without changes to Drake. After that, will file an additional PR to Drake that makes it less brittle, without the workspace bump. Both should pass, and should be able to be merged independently. EDIT: Example failure: |
Steve's PR fixes the failure in |
Thanks for the investigation and fixes, @scpeters and @EricCousineau-TRI. I'm not surprised Drake's parser was brittle. It's possible that @amcastro-tri's intent was to subset the domain of valid inputs -- that Drake would only accept a subset of the files that sdformat specifies. I agree that doing so is suboptimal in this case, even though for other cases it's fine in general for Drake to only support a subset of sdformat. |
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 are correct @jwnimmer-tri. And I do agree my solution was brittle. I believe that comes from the time when we were not able to extend the specification with custom tags, and therefore I "hacked" a solution for which, as you pointed out, I only allow a subset of what the specification allows (or used to).
Double-checking with you guys, are the default values for when those tags are not present documented? I remember having a hard time finding those defaults back in the day. Though sdformat improved a lot!
Reviewable status: needs platform reviewer assigned, needs at least two assigned reviewers, labeled "do not merge"
Yes the "1.0" defaults are documented http://sdformat.org/spec?ver=1.7&elem=collision#ode_mu |
d43e764
to
fb99481
Compare
Er, for simplicity, I'm going to close this in lieu of #13206. |
fb99481
to
2573c8b
Compare
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.
Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers, labeled "do not merge" (waiting on @jwnimmer-tri)
tools/workspace/sdformat/3bbd303.patch, line 32 at r1 (raw file):
index 4e5abcbf..4dc66a1d 100644 --- src/Converter.cc +++ src/Converter.cc
nit The commits here did not state how this patch was generated, and it was not a simple one-liner.
Can the exact process used to generate this patch be documented in the commit message?
I had to futz around with it; best I came up with:
cd sdformat/
ls
git checkout 3bbd303
git format-patch -p HEAD~
# Manually strip leading `a/` and `b/`
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.
Reviewable status: 2 unresolved discussions, needs platform reviewer assigned, needs at least two assigned reviewers, labeled "do not merge" (waiting on @jwnimmer-tri)
tools/workspace/sdformat/3bbd303.patch, line 36 at r1 (raw file):
#include "sdf/Types.hh" #include "Converter.hh"
Also, this is not the exact same patch?
Seem my version here:
aa80320
2573c8b
to
e7f105d
Compare
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.
Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers, labeled "do not merge" (waiting on @EricCousineau-TRI)
tools/workspace/sdformat/3bbd303.patch, line 32 at r1 (raw file):
Previously, EricCousineau-TRI (Eric Cousineau) wrote…
nit The commits here did not state how this patch was generated, and it was not a simple one-liner.
Can the exact process used to generate this patch be documented in the commit message?I had to futz around with it; best I came up with:
cd sdformat/ ls git checkout 3bbd303 git format-patch -p HEAD~ # Manually strip leading `a/` and `b/`
Done. I added a comment atop the file, and put back the a/ b/.
tools/workspace/sdformat/3bbd303.patch, line 36 at r1 (raw file):
Previously, EricCousineau-TRI (Eric Cousineau) wrote…
Also, this is not the exact same patch?
Seem my version here:
aa80320
The patch in this PR matches upstream (other than excluding some files) exactly.
The patch currently on Drake master is not identical to upstream, because it did not apply cleanly to 9.1.0.
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.
Reviewed 1 of 3 files at r1, 2 of 2 files at r2.
Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers, labeled "do not merge" (waiting on @jwnimmer-tri)
a discussion (no related file):
Requires merge of #13206
tools/workspace/sdformat/3bbd303.patch, line 32 at r1 (raw file):
Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
Done. I added a comment atop the file, and put back the a/ b/.
OK Thanks!
tools/workspace/sdformat/3bbd303.patch, line 36 at r1 (raw file):
Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
The patch in this PR matches upstream (other than excluding some files) exactly.
The patch currently on Drake master is not identical to upstream, because it did not apply cleanly to 9.1.0.
OK I don't agree with removing "unnecessary files" as that ultimately "corrupts" the patch, but meh for now. At least it's mentioned in the above text.
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.
Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers, labeled "do not merge" (waiting on @EricCousineau-TRI)
tools/workspace/sdformat/3bbd303.patch, line 36 at r1 (raw file):
Previously, EricCousineau-TRI (Eric Cousineau) wrote…
OK I don't agree with removing "unnecessary files" as that ultimately "corrupts" the patch, but meh for now. At least it's mentioned in the above text.
My recollection is that the CMakeLists.txt had a ton of merge conflicts when applied against 9.1.0.
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.
Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers, labeled "do not merge" (waiting on @EricCousineau-TRI)
tools/workspace/sdformat/3bbd303.patch, line 36 at r1 (raw file):
Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
My recollection is that the CMakeLists.txt had a ton of merge conflicts when applied against 9.1.0.
OK Ah, I misread. I though it was that the patch was massaged for merge conflicts, then other irrelevant files were moved.
e7f105d
to
5e80c01
Compare
Improve traceability comments on Converter cherry-pick patch.
5e80c01
to
d75d2f0
Compare
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.
Dismissed @EricCousineau-TRI from a discussion.
Reviewable status: needs platform reviewer assigned, needs at least two assigned reviewers
+@sherm1 for both reviews per schedule (tomorrow), please. |
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.
x 2 pending answer to one question
Reviewed 1 of 3 files at r1, 2 of 2 files at r2.
Reviewable status: 1 unresolved discussion (waiting on @jwnimmer-tri)
tools/workspace/sdformat/3bbd303.patch, line 36 at r3 (raw file):
index 4e5abcbf..4dc66a1d 100644 --- a/src/Converter.cc +++ b/src/Converter.cc
BTW its not clear to me (as an infrequent patch
user) what was gained by adding the a/
and b/
prefixes and then removing them with -p1
. Consider saying something about that in the opening comment.
tools/workspace/sdformat/repository.bzl, line 12 at r3 (raw file):
repository = "osrf/sdformat", commit = "sdformat9_9.2.0", sha256 = "0e42001d92aa2c089c7d0c4ea6a30db2beeff0af3a9a357e7ccd0a4e1131cae7", # noqa
Where did this sha come from? I thrashed around on osrf/sdformat github and managed to locate the 9.1.0 one but failed to locate this one.
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.
Reviewable status:
complete! all discussions resolved, LGTM from assignee sherm1(platform)
tools/workspace/sdformat/3bbd303.patch, line 36 at r3 (raw file):
Previously, sherm1 (Michael Sherman) wrote…
BTW its not clear to me (as an infrequent
patch
user) what was gained by adding thea/
andb/
prefixes and then removing them with-p1
. Consider saying something about that in the opening comment.
It's just to make Eric happy. It's not better or worse.
tools/workspace/sdformat/repository.bzl, line 12 at r3 (raw file):
Previously, sherm1 (Michael Sherman) wrote…
Where did this sha come from? I thrashed around on osrf/sdformat github and managed to locate the 9.1.0 one but failed to locate this one.
For everything under tools/workspace/....
the answer for "what should the sha256 be" is always "leave it blank, run a build, get an error, and paste the suggestion here"..
tools/workspace/sdformat/3bbd303.patch, line 36 at r3 (raw file): Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
OK I kinda agree with Sherm in that there should be raw command line for the starting bits. But meh overall. |
tools/workspace/sdformat/repository.bzl, line 12 at r3 (raw file): Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
Oh, that's a checksum rather than a commit id! No wonder I couldn't find it. |
Improve traceability comments on Converter cherry-pick patch, and make it look more like what
git format-patch
would show.This change is