Skip to content

Commit

Permalink
Remove deprecations using ros_gz_sim_create
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Dec 28, 2023
1 parent c610636 commit 905583e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ros_gz_sim/test/test_create_node.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
def generate_test_description():
expected_file_name = 'nonexistent/long/file_name'
create = Node(package='ros_gz_sim', executable='create',
arguments=['-world', 'default', '-file', expected_file_name], output='screen')
parameters=[{'world': 'default', 'file': expected_file_name}], output='screen')
test_create = Node(package='ros_gz_sim', executable='test_create', output='screen')
return LaunchDescription([
create,
Expand Down
6 changes: 2 additions & 4 deletions ros_gz_sim_demos/launch/joint_states.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ def generate_launch_description():
spawn = Node(
package='ros_gz_sim',
executable='create',
arguments=[
'-name', 'rrbot',
'-topic', 'robot_description',
],
parameters=[{'name': 'rrbot',
'topic': 'robot_description'}],
output='screen',
)

Expand Down
12 changes: 6 additions & 6 deletions ros_gz_sim_demos/launch/robot_description_publisher.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ def generate_launch_description():

# Spawn
spawn = Node(package='ros_gz_sim', executable='create',
arguments=[
'-name', 'my_custom_model',
'-x', '1.2',
'-z', '2.3',
'-Y', '3.4',
'-topic', '/robot_description'],
parameters=[{
'name': 'my_custom_model',
'x': 1.2,
'z': 2.3,
'Y': 3.4,
'topic': '/robot_description'}],
output='screen')

return LaunchDescription([
Expand Down

0 comments on commit 905583e

Please sign in to comment.