update slam_gmapping/slam_gmapping/launch/slam_gmapping.launch.py
This commit is contained in:
@@ -9,7 +9,6 @@ import launch_ros.actions
|
|||||||
|
|
||||||
|
|
||||||
def generate_launch_description():
|
def generate_launch_description():
|
||||||
use_sim_time = launch.substitutions.LaunchConfiguration('use_sim_time', default='true')
|
|
||||||
|
|
||||||
rviz_config_dir = os.path.join(
|
rviz_config_dir = os.path.join(
|
||||||
get_package_share_directory('slam_gmapping'),
|
get_package_share_directory('slam_gmapping'),
|
||||||
@@ -18,14 +17,13 @@ def generate_launch_description():
|
|||||||
|
|
||||||
return LaunchDescription([
|
return LaunchDescription([
|
||||||
launch_ros.actions.Node(
|
launch_ros.actions.Node(
|
||||||
package='slam_gmapping', executable='slam_gmapping', output='screen', parameters=[{'use_sim_time':use_sim_time}]),
|
package='slam_gmapping', executable='slam_gmapping', output='screen'),
|
||||||
|
|
||||||
launch_ros.actions.Node(
|
launch_ros.actions.Node(
|
||||||
package='rviz2',
|
package='rviz2',
|
||||||
executable='rviz2',
|
executable='rviz2',
|
||||||
name='rviz2',
|
name='rviz2',
|
||||||
arguments=['-d', rviz_config_dir],
|
arguments=['-d', rviz_config_dir],
|
||||||
parameters=[{'use_sim_time': use_sim_time}],
|
|
||||||
output='screen'),
|
output='screen'),
|
||||||
|
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user