From 6a3c62763b08e186f3d15ed63a1ea6dda1878606 Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Tue, 8 Oct 2024 08:37:00 +0800 Subject: [PATCH] Remove unnecessary environment variable setting (#20) Signed-off-by: Luca Della Vedova --- ionic_demo/launch/ionic_moveit_demo_launch.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/ionic_demo/launch/ionic_moveit_demo_launch.py b/ionic_demo/launch/ionic_moveit_demo_launch.py index 52556b2..dd31622 100644 --- a/ionic_demo/launch/ionic_moveit_demo_launch.py +++ b/ionic_demo/launch/ionic_moveit_demo_launch.py @@ -12,30 +12,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -from pathlib import Path - -from ament_index_python.packages import get_package_share_directory, get_package_prefix from launch_ros.actions import Node from launch_ros.substitutions import FindPackageShare, FindPackagePrefix from launch_xml.launch_description_sources import XMLLaunchDescriptionSource from launch import LaunchDescription -from launch.actions import AppendEnvironmentVariable, IncludeLaunchDescription +from launch.actions import IncludeLaunchDescription from launch.launch_description_sources import PythonLaunchDescriptionSource from launch.substitutions import Command, FindExecutable, PathJoinSubstitution, TextSubstitution def generate_launch_description(): - rmf_demo_assets_dir = Path(get_package_share_directory('rmf_demos_assets')) / 'models' - rmf_plugins_dir = Path(get_package_prefix('rmf_robot_sim_gz_plugins')) / 'lib' / 'rmf_robot_sim_gz_plugins' - - set_resource_path_vars = AppendEnvironmentVariable( - 'GZ_SIM_RESOURCE_PATH', str(rmf_demo_assets_dir) - ) - set_plugin_path_vars = AppendEnvironmentVariable( - 'GZ_SIM_SYSTEM_PLUGIN_PATH', str(rmf_plugins_dir) - ) - coke_can_string = \ ''' @@ -49,8 +36,6 @@ def generate_launch_description(): ''' return LaunchDescription([ - set_resource_path_vars, - set_plugin_path_vars, IncludeLaunchDescription( PythonLaunchDescriptionSource([ PathJoinSubstitution([