Skip to content

Commit

Permalink
Use model string in ros_gz_spawn_model.launch.py
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero committed Sep 11, 2024
1 parent 7e0c94c commit 0529ab7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ros_gz_sim/launch/ros_gz_spawn_model.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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',
)
Expand Down Expand Up @@ -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),
Expand All @@ -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)
Expand Down

0 comments on commit 0529ab7

Please sign in to comment.