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

[workspace] Don't build libsdformat's URDF parser #16772

Merged

Conversation

jwnimmer-tri
Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri commented Mar 12, 2022

Drake has its own URDF parser that we must always use, so we should disable libsdformat's automatic transmogrification of URDF files into SDFormat files.

Don't generate sdf/sdf.hh; it's only effect is IWYU violations.

Towards #12610.

+@rpoyner-tri for feature review, please.

+@EricCousineau-TRI for platform review (as SME), please.
Should we have anyone from OpenRobotics take a look here as well?


This change is Reviewable

@jwnimmer-tri jwnimmer-tri added priority: low release notes: fix This pull request contains fixes (no new features) labels Mar 12, 2022
Copy link
Contributor

@rpoyner-tri rpoyner-tri 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 9 of 9 files at r1, all commit messages.
Reviewable status: 1 unresolved discussion, LGTM missing from assignee EricCousineau-TRI(platform) (waiting on @EricCousineau-TRI and @jwnimmer-tri)


tools/workspace/sdformat/patches/no_urdf.patch, line 1 at r1 (raw file):

Disable transmorification of URDF files into SDFormat files.

typo

Code quote:

transmorification

Drake has its own URDF parser that we must always use, so we should
disable transmogrification of URDF files into SDFormat files.

Don't generate sdf/sdf.hh; it's only effect is IWYU violations.
Copy link
Collaborator Author

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

-@EricCousineau-TRI +@sherm1 for platform review per schedule (tomorrow), please.

\CC @sammy-tri FYI for awareness.

Reviewable status: LGTM missing from assignee sherm1(platform) (waiting on @rpoyner-tri and @sherm1)

Copy link
Contributor

@rpoyner-tri rpoyner-tri left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: LGTM missing from assignee sherm1(platform) (waiting on @sherm1)

Copy link
Member

@sherm1 sherm1 left a comment

Choose a reason for hiding this comment

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

Platform :lgtm:. I BTW'd three lines with trailing blanks in case you want to fix them.

Reviewed 8 of 9 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignees rpoyner-tri(platform),sherm1(platform) (waiting on @jwnimmer-tri)


tools/workspace/sdformat/patches/no_urdf.patch, line 14 at r2 (raw file):

-#include "parser_urdf.hh"
+// #include "parser_urdf.hh"
 

BTW trailing blanks


tools/workspace/sdformat/patches/no_urdf.patch, line 30 at r2 (raw file):

   }
+#endif  // Disable URDF2SDF for Drake.
 

BTW trailing blanks


tools/workspace/sdformat/patches/no_urdf.patch, line 46 at r2 (raw file):

   }
+#endif  // Disable URDF2SDF for Drake.
 

BTW trailing blanks

Copy link
Collaborator Author

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Those blanks are how diff and patch work by default, so I'm going to leave them alone.

Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignees rpoyner-tri(platform),sherm1(platform) (waiting on @jwnimmer-tri)

@jwnimmer-tri jwnimmer-tri merged commit b8a11cb into RobotLocomotion:master Mar 15, 2022
@jwnimmer-tri jwnimmer-tri deleted the sdformat-no-uberheader branch March 15, 2022 20:29
@EricCousineau-TRI
Copy link
Contributor

Thanks! \cc @azeey

xuchenhan-tri pushed a commit to xuchenhan-tri/drake that referenced this pull request Mar 24, 2022
)

Drake has its own URDF parser that we must always use, so we should
disable transmogrification of URDF files into SDFormat files.

Don't generate sdf/sdf.hh; it's only effect is IWYU violations.
aykut-tri pushed a commit to aykut-tri/drake that referenced this pull request May 27, 2022
)

Drake has its own URDF parser that we must always use, so we should
disable transmogrification of URDF files into SDFormat files.

Don't generate sdf/sdf.hh; it's only effect is IWYU violations.
aykut-tri pushed a commit to aykut-tri/drake that referenced this pull request Jun 1, 2022
)

Drake has its own URDF parser that we must always use, so we should
disable transmogrification of URDF files into SDFormat files.

Don't generate sdf/sdf.hh; it's only effect is IWYU violations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low release notes: fix This pull request contains fixes (no new features)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants