Skip to content

Commit f4719f8

Browse files
committed
Change double quotes for single quotes in launchers for flake8
1 parent 7917623 commit f4719f8

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

launch/as2_platform_dji_psdk.launch.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3131
# POSSIBILITY OF SUCH DAMAGE.
3232

33-
__authors__ = "Rafael Pérez Seguí"
34-
__copyright__ = "Copyright (c) 2022 Universidad Politécnica de Madrid"
35-
__license__ = "BSD-3-Clause"
36-
__version__ = "0.1.0"
33+
__authors__ = 'Rafael Pérez Seguí'
34+
__copyright__ = 'Copyright (c) 2022 Universidad Politécnica de Madrid'
35+
__license__ = 'BSD-3-Clause'
36+
__version__ = '0.1.0'
3737

3838
import os
3939
from ament_index_python.packages import get_package_share_directory
@@ -77,19 +77,19 @@ def generate_launch_description() -> LaunchDescription:
7777
default_value=platform_config_file,
7878
description='Platform configuration file'),
7979
Node(
80-
package="as2_platform_dji_psdk",
81-
executable="as2_platform_dji_psdk_node",
82-
name="platform",
80+
package='as2_platform_dji_psdk',
81+
executable='as2_platform_dji_psdk_node',
82+
name='platform',
8383
namespace=LaunchConfiguration('namespace'),
84-
output="screen",
84+
output='screen',
8585
emulate_tty=True,
8686
arguments=['--ros-args', '--log-level',
8787
LaunchConfiguration('log_level')],
8888
parameters=[
8989
*as2_utils.launch_configuration('config_file',
9090
default_value=platform_config_file),
9191
{
92-
"control_modes_file": LaunchConfiguration('control_modes_file'),
92+
'control_modes_file': LaunchConfiguration('control_modes_file'),
9393
}
9494
]
9595
)

launch/wrapper.launch.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@
3030
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3131
# POSSIBILITY OF SUCH DAMAGE.
3232

33-
__authors__ = "Rafael Pérez Seguí"
34-
__copyright__ = "Copyright (c) 2022 Universidad Politécnica de Madrid"
35-
__license__ = "BSD-3-Clause"
36-
__version__ = "0.1.0"
33+
__authors__ = 'Rafael Pérez Seguí'
34+
__copyright__ = 'Copyright (c) 2022 Universidad Politécnica de Madrid'
35+
__license__ = 'BSD-3-Clause'
36+
__version__ = '0.1.0'
3737

38-
import lifecycle_msgs.msg
39-
from launch_ros.actions import LifecycleNode
4038
from launch_ros.events.lifecycle import ChangeState
4139
from launch_ros.substitutions import FindPackageShare
40+
from launch_ros.actions import LifecycleNode
41+
import lifecycle_msgs.msg
42+
import launch
4243
from launch.actions import EmitEvent, DeclareLaunchArgument
4344
from launch import LaunchDescription
4445
from launch.substitutions import LaunchConfiguration, EnvironmentVariable, PathJoinSubstitution
45-
import launch
4646

4747

4848
def generate_launch_description() -> LaunchDescription:
@@ -70,25 +70,25 @@ def generate_launch_description() -> LaunchDescription:
7070

7171
# Prepare the wrapper node
7272
wrapper_node = LifecycleNode(
73-
package="psdk_wrapper",
74-
executable="psdk_wrapper_node",
75-
name="psdk_wrapper_node",
73+
package='psdk_wrapper',
74+
executable='psdk_wrapper_node',
75+
name='psdk_wrapper_node',
7676
namespace=LaunchConfiguration('namespace'),
77-
output="screen",
77+
output='screen',
7878
emulate_tty=True,
7979
parameters=[
8080
{
81-
"link_config_file_path": LaunchConfiguration('link_config_file_path'),
82-
"hms_return_codes_path": LaunchConfiguration('hms_return_codes_path'),
83-
"tf_frame_prefix": LaunchConfiguration('tf_frame_prefix'),
81+
'link_config_file_path': LaunchConfiguration('link_config_file_path'),
82+
'hms_return_codes_path': LaunchConfiguration('hms_return_codes_path'),
83+
'tf_frame_prefix': LaunchConfiguration('tf_frame_prefix'),
8484
},
8585
LaunchConfiguration('psdk_params_file_path'),
8686
],
8787
remappings=[
88-
("psdk_ros2/gps_position_fused", "sensor_measurements/gps"),
89-
("psdk_ros2/imu", "sensor_measurements/imu"),
90-
("psdk_ros2/main_camera_stream",
91-
"sensor_measurements/main_camera/image_raw"),
88+
('psdk_ros2/gps_position_fused', 'sensor_measurements/gps'),
89+
('psdk_ros2/imu', 'sensor_measurements/imu'),
90+
('psdk_ros2/main_camera_stream',
91+
'sensor_measurements/main_camera/image_raw'),
9292
]
9393
)
9494

@@ -124,7 +124,7 @@ def generate_launch_description() -> LaunchDescription:
124124
default_value=hms_return_codes_file,
125125
description='Path to JSON file with known DJI return codes'),
126126
DeclareLaunchArgument('tf_frame_prefix',
127-
default_value="",
127+
default_value='',
128128
description='TF frame prefix'),
129129
])
130130

0 commit comments

Comments
 (0)