Skip to content

Commit

Permalink
sync with main and use ros_diff_drive in case name changes (#2472)
Browse files Browse the repository at this point in the history
Co-authored-by: YOUSSEF LAHROUNI <youssef.lahrouni@proioxrobots.com>
  • Loading branch information
2 people authored and SteveMacenski committed Sep 14, 2021
1 parent 5618b02 commit c9af557
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def main():
tree = ET.parse(sdf_file_path)
root = tree.getroot()
for plugin in root.iter('plugin'):
# TODO(orduno) Handle case if an sdf file from non-turtlebot is provided
if 'turtlebot3_diff_drive' in plugin.attrib.values():
if 'ros_diff_drive' in plugin.get('filename'):
# The only plugin we care for now is 'diff_drive' which is
# broadcasting a transform between`odom` and `base_footprint`
break
Expand Down

0 comments on commit c9af557

Please sign in to comment.