15from launch
import LaunchDescription
16from launch.actions
import DeclareLaunchArgument
17from launch.substitutions
import LaunchConfiguration
18from launch_ros.actions
import Node
19from ament_index_python.packages
import get_package_share_directory
23 use_sim_time = LaunchConfiguration(
"use_sim_time")
25 declare_use_sim_time_argument = DeclareLaunchArgument(
26 "use_sim_time", default_value=
"true", description=
"Use simulation/Gazebo clock"
29 xtermprefix =
"xterm -xrm 'XTerm*scrollBar: true' -xrm 'xterm*rightScrollBar: true' -hold -geometry 1000x600 -sl 10000 -e"
31 start_sync_slam_toolbox_node = Node(
33 get_package_share_directory(
"slam_toolbox") +
"/config/mapper_params_online_sync.yaml",
34 {
"use_sim_time": use_sim_time},
36 package=
"slam_toolbox",
37 executable=
"sync_slam_toolbox_node",
43 ld = LaunchDescription()
45 ld.add_action(declare_use_sim_time_argument)
46 ld.add_action(start_sync_slam_toolbox_node)
def generate_launch_description()