diff --git a/moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py b/moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py index a605bb35e2..1ba9607da6 100644 --- a/moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py +++ b/moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py @@ -229,7 +229,7 @@ def __init__(self, robot_name: str, robot_description="robot_description"): self.__urdf_file_path = self.__config_dir_path / ( self.__robot_name + ".urdf" ) - self.__srdf_filename = self.__config_dir_path / ( + self.__srdf_file_path = self.__config_dir_path / ( self.__robot_name + ".srdf" ) else: @@ -246,7 +246,7 @@ def __init__(self, robot_name: str, robot_description="robot_description"): "relative_path" ] ) - self.__srdf_filename = Path( + self.__srdf_file_path = Path( setup_assistant_yaml["moveit_setup_assistant_config"]["SRDF"][ "relative_path" ] @@ -283,7 +283,7 @@ def robot_description_semantic( self.__moveit_configs.robot_description_semantic = { self.__robot_description + "_semantic": load_xacro( - self._package_path / (file_path or self.__srdf_filename), + self._package_path / (file_path or self.__srdf_file_path), mappings=mappings, ) }