Repository navigation
Conversation
saikishor
left a comment
There was a problem hiding this comment.
What kind of usecases are you looking at with this API?
Should we add explicit tests?
As explained in #245, I'm using
|
|
Sorry I missed #245 |
|
we are very near the freeze date, but we can still release this to Lyrical after the release since it is not a breaking change. apologies that it has not been merged yet |
|
Tick the box to add this pull request to the merge queue (same as
|
|
I currently don't have the time to put effort into unit tests. Of course, that would be nice to have. On the other hand, the function has been part of the API for ages. |
Ok, I'll try to implement them and see if I can push them to your branch. I understand it is a part of the API, from now on, I prefer to have clear tests for any public API. That's the only reason
Forget about them. @ahcorde launches them on the jenkins before merging :( |
| URDFDOM_DLLAPI bool parsePoseInternal(Pose &pose, tinyxml2::XMLElement* xml, | ||
| const urdf_export_helpers::URDFVersion version); |
There was a problem hiding this comment.
@rhaschke The pose.hpp is present in the src folder, how will you be able to use this, if it is not present on the include headers?
There was a problem hiding this comment.
Good point. Before the rebase, I had duplicated the declaration in public urdf_parser.hpp. To avoid the duplication, I removed it from the public header without noticing that pose.hpp isn't installed.
Obviously, pose.hpp should be removed and the declaration moved into urdf_parser.hpp. Do you agree?
PS: Thanks for adding unit tests.
There was a problem hiding this comment.
Obviously, pose.hpp should be removed and the declaration moved into
urdf_parser.hpp.
Done.
|
@rhaschke I couldn't push the changes here, I opened PR on top of yours here: ubi-agni#1 |
|
Thanks a lot. Merged. |
Sorry for the delay. Seems like DCO is not happy for some reason, can you signoff commits |
Partially reverts 9a1f5b4 Signed-off-by: Robert Haschke <rhaschke@techfak.uni-bielefeld.de>
and remove pose.hpp Signed-off-by: Robert Haschke <rhaschke@techfak.uni-bielefeld.de>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com> Signed-off-by: Robert Haschke <rhaschke@techfak.uni-bielefeld.de>
Sure. Done. |
| URDFDOM_DLLAPI ModelInterfaceSharedPtr parseURDF(const std::string &xml_string); | ||
| URDFDOM_DLLAPI ModelInterfaceSharedPtr parseURDFFile(const std::string &path); | ||
|
|
||
| URDFDOM_DLLAPI bool parsePose(Pose &pose, tinyxml2::XMLElement* xml, |
There was a problem hiding this comment.
I'll note that this adds a tinyxml2 type back into our public API, but it is a pointer with a forward declaration, so it doesn't require tinyxml2.h
I don't see an easy way to change that, or a need to change it, just wanted to note it
parsePoseis a very useful helper function that should be kept public.Partially reverts 9a1f5b4
Fixes #245