Skip to content

Commit

Permalink
Change double quotes for single quotes in launchers for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
RPS98 committed Apr 24, 2024
1 parent 7917623 commit f4719f8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
18 changes: 9 additions & 9 deletions launch/as2_platform_dji_psdk.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

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

import os
from ament_index_python.packages import get_package_share_directory
Expand Down Expand Up @@ -77,19 +77,19 @@ def generate_launch_description() -> LaunchDescription:
default_value=platform_config_file,
description='Platform configuration file'),
Node(
package="as2_platform_dji_psdk",
executable="as2_platform_dji_psdk_node",
name="platform",
package='as2_platform_dji_psdk',
executable='as2_platform_dji_psdk_node',
name='platform',
namespace=LaunchConfiguration('namespace'),
output="screen",
output='screen',
emulate_tty=True,
arguments=['--ros-args', '--log-level',
LaunchConfiguration('log_level')],
parameters=[
*as2_utils.launch_configuration('config_file',
default_value=platform_config_file),
{
"control_modes_file": LaunchConfiguration('control_modes_file'),
'control_modes_file': LaunchConfiguration('control_modes_file'),
}
]
)
Expand Down
38 changes: 19 additions & 19 deletions launch/wrapper.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

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

import lifecycle_msgs.msg
from launch_ros.actions import LifecycleNode
from launch_ros.events.lifecycle import ChangeState
from launch_ros.substitutions import FindPackageShare
from launch_ros.actions import LifecycleNode
import lifecycle_msgs.msg
import launch
from launch.actions import EmitEvent, DeclareLaunchArgument
from launch import LaunchDescription
from launch.substitutions import LaunchConfiguration, EnvironmentVariable, PathJoinSubstitution
import launch


def generate_launch_description() -> LaunchDescription:
Expand Down Expand Up @@ -70,25 +70,25 @@ def generate_launch_description() -> LaunchDescription:

# Prepare the wrapper node
wrapper_node = LifecycleNode(
package="psdk_wrapper",
executable="psdk_wrapper_node",
name="psdk_wrapper_node",
package='psdk_wrapper',
executable='psdk_wrapper_node',
name='psdk_wrapper_node',
namespace=LaunchConfiguration('namespace'),
output="screen",
output='screen',
emulate_tty=True,
parameters=[
{
"link_config_file_path": LaunchConfiguration('link_config_file_path'),
"hms_return_codes_path": LaunchConfiguration('hms_return_codes_path'),
"tf_frame_prefix": LaunchConfiguration('tf_frame_prefix'),
'link_config_file_path': LaunchConfiguration('link_config_file_path'),
'hms_return_codes_path': LaunchConfiguration('hms_return_codes_path'),
'tf_frame_prefix': LaunchConfiguration('tf_frame_prefix'),
},
LaunchConfiguration('psdk_params_file_path'),
],
remappings=[
("psdk_ros2/gps_position_fused", "sensor_measurements/gps"),
("psdk_ros2/imu", "sensor_measurements/imu"),
("psdk_ros2/main_camera_stream",
"sensor_measurements/main_camera/image_raw"),
('psdk_ros2/gps_position_fused', 'sensor_measurements/gps'),
('psdk_ros2/imu', 'sensor_measurements/imu'),
('psdk_ros2/main_camera_stream',
'sensor_measurements/main_camera/image_raw'),
]
)

Expand Down Expand Up @@ -124,7 +124,7 @@ def generate_launch_description() -> LaunchDescription:
default_value=hms_return_codes_file,
description='Path to JSON file with known DJI return codes'),
DeclareLaunchArgument('tf_frame_prefix',
default_value="",
default_value='',
description='TF frame prefix'),
])

Expand Down

0 comments on commit f4719f8

Please sign in to comment.