|
4 | 4 | from ament_index_python.packages import get_package_share_directory |
5 | 5 | from launch import LaunchDescription |
6 | 6 | from launch.substitutions import LaunchConfiguration, Command, IfElseSubstitution |
7 | | -from launch.actions import DeclareLaunchArgument, OpaqueFunction, IncludeLaunchDescription |
| 7 | +from launch.actions import ( |
| 8 | + DeclareLaunchArgument, |
| 9 | + OpaqueFunction, |
| 10 | + IncludeLaunchDescription, |
| 11 | +) |
8 | 12 | from launch_ros.actions import Node |
9 | 13 | from launch_ros.parameter_descriptions import ParameterValue |
10 | 14 | from launch.launch_description_sources import PythonLaunchDescriptionSource |
11 | 15 |
|
| 16 | + |
12 | 17 | def launch_setup(context): |
13 | 18 | use_sim_time = LaunchConfiguration("use_sim_time") |
14 | 19 | x = LaunchConfiguration("x") |
@@ -101,7 +106,7 @@ def launch_setup(context): |
101 | 106 | { |
102 | 107 | "name_space": gz_namespace, |
103 | 108 | "pose_frame_id": "earth", |
104 | | - "twist_frame_id": [gz_namespace,"/base_link"], |
| 109 | + "twist_frame_id": [gz_namespace, "/base_link"], |
105 | 110 | }, |
106 | 111 | ], |
107 | 112 | ) |
@@ -160,7 +165,11 @@ def generate_launch_description(): |
160 | 165 | declared_arguments.append(DeclareLaunchArgument("P", default_value="0")) |
161 | 166 | declared_arguments.append(DeclareLaunchArgument("Y", default_value="0")) |
162 | 167 | declared_arguments.append(DeclareLaunchArgument("sensor", default_value="camera")) |
163 | | - declared_arguments.append(DeclareLaunchArgument("namespace", description="Namespace to use", default_value="drone0")) |
| 168 | + declared_arguments.append( |
| 169 | + DeclareLaunchArgument( |
| 170 | + "namespace", description="Namespace to use", default_value="drone0" |
| 171 | + ) |
| 172 | + ) |
164 | 173 |
|
165 | 174 | return LaunchDescription( |
166 | 175 | declared_arguments + [OpaqueFunction(function=launch_setup)] |
|
0 commit comments