Closed DLu closed 3 years ago
Rather than all the ugliness of os.path.join I would much rather write simpler python in my launch files, so rather than
os.path.join
import os from ament_index_python.packages import get_package_share_directory ... bringup_dir = get_package_share_directory('testpkg') urdf_path = os.path.join(bringup_dir, 'urdf', 'doggo.urdf')
you could just write
from ament_index_python.packages import get_package_share_path ... urdf_path = get_package_share_path('testpkg') / 'urdf/doggo.urdf'
@audrow Linter is happy and now there's a test.
Thanks for the PR @DLu!
Rather than all the ugliness of
os.path.join
I would much rather write simpler python in my launch files, so rather thanyou could just write