diff --git a/ros_gz_sim/launch/ros_gz_spawn_model.launch.py b/ros_gz_sim/launch/ros_gz_spawn_model.launch.py index 245edbeb..85359bb6 100644 --- a/ros_gz_sim/launch/ros_gz_spawn_model.launch.py +++ b/ros_gz_sim/launch/ros_gz_spawn_model.launch.py @@ -33,7 +33,7 @@ def generate_launch_description(): world = LaunchConfiguration('world') file = LaunchConfiguration('file') - world_string = LaunchConfiguration('world_string') + model_string = LaunchConfiguration('model_string') topic = LaunchConfiguration('topic') entity_name = LaunchConfiguration('entity_name') allow_renaming = LaunchConfiguration('allow_renaming') @@ -84,8 +84,8 @@ def generate_launch_description(): 'file', default_value=TextSubstitution(text=''), description='SDF filename') - declare_world_string_cmd = DeclareLaunchArgument( - 'world_string', + declare_model_string_cmd = DeclareLaunchArgument( + 'model_string', default_value='', description='XML string', ) @@ -125,7 +125,7 @@ def generate_launch_description(): 'gz_spawn_model.launch.py'])]), launch_arguments=[('world', world), ('file', file), - ('world_string', world_string), + ('model_string', model_string), ('topic', topic), ('entity_name', entity_name), ('allow_renaming', allow_renaming), @@ -149,7 +149,7 @@ def generate_launch_description(): ld.add_action(declare_log_level_cmd) ld.add_action(declare_world_cmd) ld.add_action(declare_file_cmd) - ld.add_action(declare_world_string_cmd) + ld.add_action(declare_model_string_cmd) ld.add_action(declare_topic_cmd) ld.add_action(declare_entity_name_cmd) ld.add_action(declare_allow_renaming_cmd)