Skip to content

Commit

Permalink
Use xacro file to plumb namespace into gz topics (#4450)
Browse files Browse the repository at this point in the history
This also removes the `use_simulator` launch argument since it's not
needed by spawn_tb3.launch.py

Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey authored Jun 19, 2024
1 parent 523a075 commit ad04118
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nav2_bringup/launch/tb3_simulation_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def generate_launch_description():

declare_robot_sdf_cmd = DeclareLaunchArgument(
'robot_sdf',
default_value=os.path.join(sim_dir, 'urdf', 'gz_waffle.sdf'),
default_value=os.path.join(sim_dir, 'urdf', 'gz_waffle.sdf.xacro'),
description='Full path to robot sdf file to spawn the robot in gazebo',
)

Expand Down Expand Up @@ -241,7 +241,6 @@ def generate_launch_description():
PythonLaunchDescriptionSource(
os.path.join(sim_dir, 'launch', 'spawn_tb3.launch.py')),
launch_arguments={'namespace': namespace,
'use_simulator': use_simulator,
'use_sim_time': use_sim_time,
'robot_name': robot_name,
'robot_sdf': robot_sdf,
Expand Down

0 comments on commit ad04118

Please sign in to comment.