File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ class GuiType(enum.Enum):
3535# Use 1 or 2 to launch fullscreen on the corresponding monitor
3636# Use `None` to launch in windowed mode
3737TWO_MONITOR_CONFIG : dict [GuiType , int | None ] = {
38- GuiType .PILOT : None ,
39- GuiType .LIVESTREAM : 1 ,
38+ GuiType .PILOT : 1 ,
39+ GuiType .LIVESTREAM : None ,
4040 GuiType .DEBUG : None ,
4141}
4242THREE_MONITOR_CONFIG : dict [GuiType , int | None ] = {
43- GuiType .PILOT : 2 ,
44- GuiType .LIVESTREAM : 1 ,
43+ GuiType .PILOT : 1 ,
44+ GuiType .LIVESTREAM : 2 ,
4545 GuiType .DEBUG : None ,
4646}
4747
Original file line number Diff line number Diff line change 11from pathlib import Path
22
33from ament_index_python .packages import get_package_share_directory
4- from launch .actions import IncludeLaunchDescription
4+ from launch .actions import GroupAction , IncludeLaunchDescription
55from launch .launch_description import LaunchDescription
66from launch .launch_description_sources import PythonLaunchDescriptionSource
7+ from launch_ros .actions import PushRosNamespace
78
89
910def generate_launch_description () -> LaunchDescription :
1011 surface_path = get_package_share_directory ('surface_main' )
12+ gui_path = get_package_share_directory ('gui' )
1113
1214 all_launch = IncludeLaunchDescription (
1315 PythonLaunchDescriptionSource (
1416 [str (Path (surface_path ) / 'launch' / 'surface_all_nodes_launch.py' )]
1517 ),
18+ )
19+
20+ livestream_launch = IncludeLaunchDescription (
21+ PythonLaunchDescriptionSource ([str (Path (gui_path ) / 'launch' / 'pilot_launch.py' )]),
1622 launch_arguments = [('gui' , 'livestream' )],
1723 )
1824
25+ namespace_launch = GroupAction (actions = [PushRosNamespace ('surface' ), livestream_launch ])
26+
1927 return LaunchDescription (
2028 [
2129 all_launch ,
30+ namespace_launch ,
2231 ]
2332 )
You can’t perform that action at this time.
0 commit comments