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

Initial urdf parser plugin that parses sdformat #1

Merged
merged 152 commits into from
Nov 2, 2020
Merged

Conversation

sloretz
Copy link
Contributor

@sloretz sloretz commented Jul 15, 2020

This is ready for review.

@scpeters @IanTheEngineer FYI

requires ros2/urdf#13 (This is merged 🎉)
requires ros/resource_retriever#50 (no longer uses this)

Lots of TODOs

Signed-off-by: Shane Loretz<[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
@sloretz sloretz self-assigned this Jul 15, 2020
sloretz added 4 commits July 17, 2020 08:52
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
@ros-discourse
Copy link

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2020-07-16/15468/1

src/sdformat_urdf.cpp Outdated Show resolved Hide resolved
package.xml Outdated Show resolved Hide resolved
package.xml Outdated Show resolved Hide resolved
src/sdformat_urdf.cpp Outdated Show resolved Hide resolved
include/sdformat_urdf/sdformat_urdf.hpp Outdated Show resolved Hide resolved
src/sdformat_urdf.cpp Outdated Show resolved Hide resolved
Copy link

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

A few mostly minor things in here.

package.xml Outdated Show resolved Hide resolved
src/sdformat_urdf.cpp Outdated Show resolved Hide resolved
src/sdformat_urdf.cpp Outdated Show resolved Hide resolved
src/sdformat_urdf_plugin.cpp Outdated Show resolved Hide resolved
src/sdformat_urdf_plugin.cpp Outdated Show resolved Hide resolved
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
@sloretz
Copy link
Contributor Author

sloretz commented Oct 23, 2020

@azeey I think I addressed all changes requested. Mind having a second look? 🙇

Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

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

I have now gone through all the tests and everything looks great! I think it would be good to add a test where the inertial, visual and collision are affected by the link's pose. Correct me if I'm wrong, but the tests I have seen had all these elements in the root link so the pose of the link had no impact on the poses of these elements, or the SDFormat link had an identity pose.

sdformat_urdf/test/include/test_tools.hpp Show resolved Hide resolved
sdformat_urdf/test/joint_tests.cpp Outdated Show resolved Hide resolved
sdformat_urdf/test/geometry_tests.cpp Show resolved Hide resolved
sdformat_urdf/test/geometry_tests.cpp Show resolved Hide resolved
sdformat_urdf/test/joint_tests.cpp Show resolved Hide resolved
sdformat_urdf/test/joint_tests.cpp Show resolved Hide resolved
sdformat_urdf/test/link_tests.cpp Show resolved Hide resolved
Signed-off-by: Shane Loretz <[email protected]>
@gavanderhoorn

This comment has been minimized.

@sloretz
Copy link
Contributor Author

sloretz commented Oct 29, 2020

I think it would be good to add a test where the inertial, visual and collision are affected by the link's pose. Correct me if I'm wrong, but the tests I have seen had all these elements in the root link so the pose of the link had no impact on the poses of these elements, or the SDFormat link had an identity pose.

As in it's missing a test of a link with joint to a link having non-zero pose and non-zero inertial/visual/collision pose? Added pose_joint_all model and test in e4664a8, and fix a bug it discovered in how those poses get calculated in 6582d52

@sloretz
Copy link
Contributor Author

sloretz commented Oct 29, 2020

@azeey I think I've addressed all PR comments. Mind having another look?

Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks for iterating with me.

@sloretz sloretz merged commit efc3913 into ros2 Nov 2, 2020
@sloretz sloretz deleted the ros2-initial branch November 2, 2020 17:12
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.

7 participants