15 from pathlib
import Path
17 from ament_index_python.packages
import get_package_share_directory
19 from launch
import LaunchDescription
20 from launch.actions
import DeclareLaunchArgument
21 from launch.actions
import GroupAction
22 from launch.substitutions
import LaunchConfiguration
23 from launch_ros.actions
import Node
25 from launch_ros.actions
import SetParameter
29 example_dir = get_package_share_directory(
'beluga_example')
30 example_dir_path = Path(example_dir)
32 declare_display_config = DeclareLaunchArgument(
34 default_value=str(example_dir_path /
'rviz' /
'rviz.rviz'),
35 description=
'A display config file (.rviz) to load.',
38 load_nodes = GroupAction(
40 SetParameter(
'use_sim_time',
True),
48 LaunchConfiguration(
'display_config'),
54 return LaunchDescription([declare_display_config, load_nodes])