Merged
Conversation
8 tasks
Skylion007
reviewed
Jun 8, 2021
eundersander
approved these changes
Jun 8, 2021
Contributor
eundersander
left a comment
There was a problem hiding this comment.
I know this class is adapted from Bullet code so I expect we don't want to modify it too much. Still, I added some comments.
|
|
||
| // parse a loaded URDF string into relevant general data structures | ||
| // return false if the string is not a valid urdf or other error causes abort | ||
| bool parseURDF(std::shared_ptr<Model>& model, |
Contributor
There was a problem hiding this comment.
Nit: kinda a strange interface to pass in a reference to a shared_ptr to be populated. How about just return a valid shared_ptr or null on failure?
Contributor
Author
There was a problem hiding this comment.
Yeah, that makes sense. Was following the parser paradigm of filling reference input variables, but perhaps the top-level API here should just return the smart pointer. Easy enough refactor. 👍
Skylion007
approved these changes
Jun 8, 2021
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.
Motivation and Context
This change introduces the
esp::io::URDFnamespace containing aParserfor xml based URDF files (using tinyxml) and aModelstruct (plus supporting datastrctures) to cache articulated object metadata before instancing. No physics simulation or Bullet implementation is included at this stage.How Has This Been Tested
Added a new C++ test
IOTest::parseURDFwith URDF parsing and validation of a test file.Types of changes
Checklist