You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defresolve_ros_path(path_str: str) ->str:
"""Resolve a ROS path to an absolute path."""ifpath_str.startswith("package://"):
path=pathlib.Path(path_str)
package_name=path.parts[1]
relative_path=pathlib.Path(*path.parts[2:])
package_path=resolve_ros1_package(package_name) orresolve_ros2_package(package_name)
ifpackage_pathisNone:
raiseValueError(
f"Could not resolve {path}."f"Replace with relative / absolute path, source the correct ROS environment, or install {package_name}."
)
returnstr(package_path/relative_path)
elifpath_str.startswith("file://"):
returnpath_str[len("file://") :]
else:
returnpath_str# This should be from the relative path of the urdf file otherwise it's going to be read from the current working dir
Just a heads up that relative ros path is not well implemented.
The text was updated successfully, but these errors were encountered:
Just a heads up that relative ros path is not well implemented.
The text was updated successfully, but these errors were encountered: