Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi-line strings in DeclareLaunchArgument (backport #948) #968

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions ur_moveit_config/launch/ur_moveit.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"description_package",
default_value="ur_description",
description="Description package with robot URDF/XACRO files. Usually the argument \
is not set, it enables use of a custom description.",
description="Description package with robot URDF/XACRO files. Usually the argument "
"is not set, it enables use of a custom description.",
)
)
declared_arguments.append(
Expand All @@ -312,8 +312,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"moveit_config_package",
default_value="ur_moveit_config",
description="MoveIt config package with robot SRDF/XACRO files. Usually the argument \
is not set, it enables use of a custom moveit config.",
description="MoveIt config package with robot SRDF/XACRO files. Usually the argument "
"is not set, it enables use of a custom moveit config.",
)
)
declared_arguments.append(
Expand Down Expand Up @@ -341,9 +341,9 @@ def generate_launch_description():
DeclareLaunchArgument(
"prefix",
default_value='""',
description="Prefix of the joint names, useful for \
multi-robot setup. If changed than also joint names in the controllers' configuration \
have to be updated.",
description="Prefix of the joint names, useful for "
"multi-robot setup. If changed than also joint names in the controllers' configuration "
"have to be updated.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur10.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur10e.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur16e.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur20.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur3.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur30.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur3e.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur5.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/launch/ur5e.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down
49 changes: 24 additions & 25 deletions ur_robot_driver/launch/ur_control.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@


def launch_setup(context, *args, **kwargs):

# Initialize Arguments
ur_type = LaunchConfiguration("ur_type")
robot_ip = LaunchConfiguration("robot_ip")
Expand Down Expand Up @@ -420,8 +419,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"runtime_config_package",
default_value="ur_robot_driver",
description='Package with the controller\'s configuration in "config" folder. \
Usually the argument is not set, it enables use of a custom setup.',
description='Package with the controller\'s configuration in "config" folder. '
"Usually the argument is not set, it enables use of a custom setup.",
)
)
declared_arguments.append(
Expand All @@ -435,8 +434,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"description_package",
default_value="ur_description",
description="Description package with robot URDF/XACRO files. Usually the argument \
is not set, it enables use of a custom description.",
description="Description package with robot URDF/XACRO files. Usually the argument "
"is not set, it enables use of a custom description.",
)
)
declared_arguments.append(
Expand All @@ -450,9 +449,9 @@ def generate_launch_description():
DeclareLaunchArgument(
"tf_prefix",
default_value="",
description="tf_prefix of the joint names, useful for \
multi-robot setup. If changed, also joint names in the controllers' configuration \
have to be updated.",
description="tf_prefix of the joint names, useful for "
"multi-robot setup. If changed, also joint names in the controllers' configuration "
"have to be updated.",
)
)
declared_arguments.append(
Expand All @@ -466,8 +465,8 @@ def generate_launch_description():
DeclareLaunchArgument(
"fake_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
description="Enable fake command interfaces for sensors used for simple simulations. "
"Used only if 'use_fake_hardware' parameter is true.",
)
)
declared_arguments.append(
Expand Down Expand Up @@ -517,57 +516,57 @@ def generate_launch_description():
DeclareLaunchArgument(
"tool_parity",
default_value="0",
description="Parity configuration for serial communication. Only effective, if \
use_tool_communication is set to True.",
description="Parity configuration for serial communication. Only effective, if "
"use_tool_communication is set to True.",
)
)
declared_arguments.append(
DeclareLaunchArgument(
"tool_baud_rate",
default_value="115200",
description="Baud rate configuration for serial communication. Only effective, if \
use_tool_communication is set to True.",
description="Baud rate configuration for serial communication. Only effective, if "
"use_tool_communication is set to True.",
)
)
declared_arguments.append(
DeclareLaunchArgument(
"tool_stop_bits",
default_value="1",
description="Stop bits configuration for serial communication. Only effective, if \
use_tool_communication is set to True.",
description="Stop bits configuration for serial communication. Only effective, if "
"use_tool_communication is set to True.",
)
)
declared_arguments.append(
DeclareLaunchArgument(
"tool_rx_idle_chars",
default_value="1.5",
description="RX idle chars configuration for serial communication. Only effective, \
if use_tool_communication is set to True.",
description="RX idle chars configuration for serial communication. Only effective, "
"if use_tool_communication is set to True.",
)
)
declared_arguments.append(
DeclareLaunchArgument(
"tool_tx_idle_chars",
default_value="3.5",
description="TX idle chars configuration for serial communication. Only effective, \
if use_tool_communication is set to True.",
description="TX idle chars configuration for serial communication. Only effective, "
"if use_tool_communication is set to True.",
)
)
declared_arguments.append(
DeclareLaunchArgument(
"tool_device_name",
default_value="/tmp/ttyUR",
description="File descriptor that will be generated for the tool communication device. \
The user has be be allowed to write to this location. \
Only effective, if use_tool_communication is set to True.",
description="File descriptor that will be generated for the tool communication device. "
"The user has be be allowed to write to this location. "
"Only effective, if use_tool_communication is set to True.",
)
)
declared_arguments.append(
DeclareLaunchArgument(
"tool_tcp_port",
default_value="54321",
description="Remote port that will be used for bridging the tool's serial device. \
Only effective, if use_tool_communication is set to True.",
description="Remote port that will be used for bridging the tool's serial device. "
"Only effective, if use_tool_communication is set to True.",
)
)
declared_arguments.append(
Expand Down
Loading