27
27
28
28
def generate_launch_description ():
29
29
sim_dir = get_package_share_directory ('nav2_minimal_tb4_sim' )
30
- # desc_dir = get_package_share_directory('nav2_minimal_tb4_description')
31
30
32
31
use_sim_time = LaunchConfiguration ('use_sim_time' )
33
32
namespace = LaunchConfiguration ('namespace' )
@@ -63,11 +62,6 @@ def generate_launch_description():
63
62
default_value = 'turtlebot4' ,
64
63
description = 'name of the robot' )
65
64
66
- # declare_robot_sdf_cmd = DeclareLaunchArgument(
67
- # 'robot_sdf',
68
- # default_value=os.path.join(desc_dir, 'urdf', 'standard', 'turtlebot4.urdf.xacro'),
69
- # description='Full path to robot sdf file to spawn the robot in gazebo')
70
-
71
65
bridge = Node (
72
66
package = 'ros_gz_bridge' ,
73
67
executable = 'parameter_bridge' ,
@@ -115,7 +109,6 @@ def generate_launch_description():
115
109
arguments = [
116
110
'-name' , robot_name ,
117
111
'-topic' , 'robot_description' ,
118
- # '-file', Command(['xacro', ' ', robot_sdf]), # TODO SDF file is unhappy, not sure why
119
112
'-x' , pose ['x' ], '-y' , pose ['y' ], '-z' , pose ['z' ],
120
113
'-R' , pose ['R' ], '-P' , pose ['P' ], '-Y' , pose ['Y' ]],
121
114
parameters = [{'use_sim_time' : use_sim_time }]
@@ -125,7 +118,6 @@ def generate_launch_description():
125
118
ld = LaunchDescription ()
126
119
ld .add_action (declare_namespace_cmd )
127
120
ld .add_action (declare_robot_name_cmd )
128
- # ld.add_action(declare_robot_sdf_cmd)
129
121
ld .add_action (declare_use_simulator_cmd )
130
122
ld .add_action (declare_use_sim_time_cmd )
131
123
0 commit comments