From affdb76c3e72e0f82469679e67cb658b3e58110f Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Tue, 7 May 2024 14:11:20 -0500 Subject: [PATCH] Fix flake8 Signed-off-by: Addisu Z. Taddese --- .../launch/cart_example_effort.launch.py | 14 +++++++------- .../launch/cart_example_position.launch.py | 14 +++++++------- .../launch/cart_example_velocity.launch.py | 14 +++++++------- .../launch/diff_drive_example.launch.py | 14 +++++++------- .../gripper_mimic_joint_example_effort.launch.py | 14 +++++++------- .../gripper_mimic_joint_example_position.launch.py | 14 +++++++------- .../launch/pendulum_example_effort.launch.py | 14 +++++++------- .../launch/pendulum_example_position.launch.py | 14 +++++++------- .../launch/tricycle_drive_example.launch.py | 14 +++++++------- 9 files changed, 63 insertions(+), 63 deletions(-) diff --git a/gz_ros2_control_demos/launch/cart_example_effort.launch.py b/gz_ros2_control_demos/launch/cart_example_effort.launch.py index 2f0c6bad..8d6b4fe9 100644 --- a/gz_ros2_control_demos/launch/cart_example_effort.launch.py +++ b/gz_ros2_control_demos/launch/cart_example_effort.launch.py @@ -30,15 +30,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_cart_effort.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_cart_effort.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -51,8 +51,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", - "-name", "cart", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', + '-name', 'cart', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess( diff --git a/gz_ros2_control_demos/launch/cart_example_position.launch.py b/gz_ros2_control_demos/launch/cart_example_position.launch.py index 03896e25..14391bb4 100644 --- a/gz_ros2_control_demos/launch/cart_example_position.launch.py +++ b/gz_ros2_control_demos/launch/cart_example_position.launch.py @@ -30,15 +30,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_cart_position.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_cart_position.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -51,8 +51,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", - "-name", "cart", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', + '-name', 'cart', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess( diff --git a/gz_ros2_control_demos/launch/cart_example_velocity.launch.py b/gz_ros2_control_demos/launch/cart_example_velocity.launch.py index 5694dd16..3406e35d 100644 --- a/gz_ros2_control_demos/launch/cart_example_velocity.launch.py +++ b/gz_ros2_control_demos/launch/cart_example_velocity.launch.py @@ -30,15 +30,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_cart_velocity.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_cart_velocity.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -51,8 +51,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", - "-name", "cart", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', + '-name', 'cart', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess( diff --git a/gz_ros2_control_demos/launch/diff_drive_example.launch.py b/gz_ros2_control_demos/launch/diff_drive_example.launch.py index 84bce494..f91560d3 100644 --- a/gz_ros2_control_demos/launch/diff_drive_example.launch.py +++ b/gz_ros2_control_demos/launch/diff_drive_example.launch.py @@ -30,15 +30,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_diff_drive.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_diff_drive.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -51,8 +51,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", "-name", - "diff_drive", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', '-name', + 'diff_drive', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess( diff --git a/gz_ros2_control_demos/launch/gripper_mimic_joint_example_effort.launch.py b/gz_ros2_control_demos/launch/gripper_mimic_joint_example_effort.launch.py index eab09938..dbeae8db 100644 --- a/gz_ros2_control_demos/launch/gripper_mimic_joint_example_effort.launch.py +++ b/gz_ros2_control_demos/launch/gripper_mimic_joint_example_effort.launch.py @@ -33,15 +33,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_gripper_mimic_joint_effort.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_gripper_mimic_joint_effort.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -54,8 +54,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", "-name", - "gripper", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', '-name', + 'gripper', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess( diff --git a/gz_ros2_control_demos/launch/gripper_mimic_joint_example_position.launch.py b/gz_ros2_control_demos/launch/gripper_mimic_joint_example_position.launch.py index 2b196a35..6e932da5 100644 --- a/gz_ros2_control_demos/launch/gripper_mimic_joint_example_position.launch.py +++ b/gz_ros2_control_demos/launch/gripper_mimic_joint_example_position.launch.py @@ -33,15 +33,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_gripper_mimic_joint_position.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_gripper_mimic_joint_position.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -54,8 +54,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", "-name", - "gripper", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', '-name', + 'gripper', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess( diff --git a/gz_ros2_control_demos/launch/pendulum_example_effort.launch.py b/gz_ros2_control_demos/launch/pendulum_example_effort.launch.py index a9a54f8e..d09ae2f9 100644 --- a/gz_ros2_control_demos/launch/pendulum_example_effort.launch.py +++ b/gz_ros2_control_demos/launch/pendulum_example_effort.launch.py @@ -30,15 +30,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_pendulum_effort.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_pendulum_effort.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -51,8 +51,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", - "-name", "cart", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', + '-name', 'cart', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess( diff --git a/gz_ros2_control_demos/launch/pendulum_example_position.launch.py b/gz_ros2_control_demos/launch/pendulum_example_position.launch.py index a95af408..24045420 100644 --- a/gz_ros2_control_demos/launch/pendulum_example_position.launch.py +++ b/gz_ros2_control_demos/launch/pendulum_example_position.launch.py @@ -30,15 +30,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_pendulum_position.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_pendulum_position.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -51,8 +51,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", - "-name", "cart", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', + '-name', 'cart', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess( diff --git a/gz_ros2_control_demos/launch/tricycle_drive_example.launch.py b/gz_ros2_control_demos/launch/tricycle_drive_example.launch.py index 084967aa..5fe7bd6d 100644 --- a/gz_ros2_control_demos/launch/tricycle_drive_example.launch.py +++ b/gz_ros2_control_demos/launch/tricycle_drive_example.launch.py @@ -30,15 +30,15 @@ def generate_launch_description(): # Get URDF via xacro robot_description_content = Command( [ - PathJoinSubstitution([FindExecutable(name="xacro")]), - " ", + PathJoinSubstitution([FindExecutable(name='xacro')]), + ' ', PathJoinSubstitution( - [FindPackageShare("gz_ros2_control_demos"), - "urdf", "test_tricycle_drive.xacro.urdf"] + [FindPackageShare('gz_ros2_control_demos'), + 'urdf', 'test_tricycle_drive.xacro.urdf'] ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {'robot_description': robot_description_content} node_robot_state_publisher = Node( package='robot_state_publisher', @@ -51,8 +51,8 @@ def generate_launch_description(): package='ros_gz_sim', executable='create', output='screen', - arguments=["-topic", "robot_description", "-name", - "tricyle", "-allow_renaming", "true"], + arguments=['-topic', 'robot_description', '-name', + 'tricyle', '-allow_renaming', 'true'], ) load_joint_state_broadcaster = ExecuteProcess(