-
Notifications
You must be signed in to change notification settings - Fork 293
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
Add Support for SDF #1763
base: master
Are you sure you want to change the base?
Add Support for SDF #1763
Conversation
Signed-off-by: Aarav Gupta <[email protected]>
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.
Can you please add a test with an example SDF here: https://github.com/ros-controls/ros2_control/blob/master/hardware_interface/test/test_component_parser.cpp?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1763 +/- ##
==========================================
- Coverage 86.79% 86.74% -0.06%
==========================================
Files 116 116
Lines 10715 10719 +4
Branches 981 982 +1
==========================================
- Hits 9300 9298 -2
- Misses 1062 1067 +5
- Partials 353 354 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Aarav Gupta <[email protected]>
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.
@Amronos The changes look good to me. Can you add that SDF parsing is also supported through robot_description topic in the release_notes.rst?.
Sorry for not pointing out earlier
Signed-off-by: Aarav Gupta <[email protected]>
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.
LGTM
This is great! Thanks @Amronos |
Fixes #632
I have modified
hardware_interface/src/component_parser.cpp
to add support for SDF models.To test this out, something like the following SDF file can be passed to
robot_state_publisher
instead of a URDF file alongside using it to spawn the robot into the gazebo world. I do plan to make a PR intogz_ros2_control_demos
to add a demo for this.