Skip to content

Commit 5e06fdf

Browse files
committed
Changed formatting based on PR feedback
1 parent a4f19d7 commit 5e06fdf

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

nav2_bringup/launch/cloned_multi_tb3_simulation_launch.py

+16-20
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@
2020

2121
from ament_index_python.packages import get_package_share_directory
2222
from launch import LaunchDescription
23-
from launch.actions import (AppendEnvironmentVariable, DeclareLaunchArgument,
24-
ExecuteProcess, GroupAction,
25-
IncludeLaunchDescription, LogInfo, OpaqueFunction,
26-
RegisterEventHandler)
23+
from launch.actions import (
24+
AppendEnvironmentVariable,
25+
DeclareLaunchArgument,
26+
ExecuteProcess,
27+
GroupAction,
28+
IncludeLaunchDescription,
29+
LogInfo,
30+
OpaqueFunction,
31+
RegisterEventHandler,
32+
)
2733
from launch.conditions import IfCondition
2834
from launch.event_handlers import OnShutdown
2935
from launch.launch_description_sources import PythonLaunchDescriptionSource
@@ -51,12 +57,7 @@ def generate_robot_actions(context, *args, **kwargs):
5157
group = GroupAction(
5258
[
5359
LogInfo(
54-
msg=[
55-
'Launching namespace=',
56-
robot_name,
57-
' init_pose=',
58-
str(init_pose),
59-
]
60+
msg=['Launching namespace=', robot_name, ' init_pose=', str(init_pose),]
6061
),
6162
IncludeLaunchDescription(
6263
PythonLaunchDescriptionSource(
@@ -70,8 +71,7 @@ def generate_robot_actions(context, *args, **kwargs):
7071
),
7172
IncludeLaunchDescription(
7273
PythonLaunchDescriptionSource(
73-
os.path.join(bringup_dir, 'launch',
74-
'tb3_simulation_launch.py')
74+
os.path.join(bringup_dir, 'launch', 'tb3_simulation_launch.py')
7575
),
7676
launch_arguments={
7777
'namespace': robot_name,
@@ -96,8 +96,7 @@ def generate_robot_actions(context, *args, **kwargs):
9696
)
9797

9898
bringup_cmd_group.append(group)
99-
bringup_cmd_group.append(
100-
LogInfo(msg=['number_of_robots=', str(len(robots_list))]))
99+
bringup_cmd_group.append(LogInfo(msg=['number_of_robots=', str(len(robots_list))]))
101100
return bringup_cmd_group
102101

103102

@@ -217,12 +216,10 @@ def generate_launch_description():
217216
ld.add_action(remove_temp_sdf_file)
218217

219218
ld.add_action(
220-
LogInfo(condition=IfCondition(log_settings),
221-
msg=['map yaml: ', map_yaml_file])
219+
LogInfo(condition=IfCondition(log_settings), msg=['map yaml: ', map_yaml_file])
222220
)
223221
ld.add_action(
224-
LogInfo(condition=IfCondition(log_settings),
225-
msg=['params yaml: ', params_file])
222+
LogInfo(condition=IfCondition(log_settings), msg=['params yaml: ', params_file])
226223
)
227224
ld.add_action(
228225
LogInfo(
@@ -237,8 +234,7 @@ def generate_launch_description():
237234
)
238235
)
239236
ld.add_action(
240-
LogInfo(condition=IfCondition(log_settings),
241-
msg=['autostart: ', autostart])
237+
LogInfo(condition=IfCondition(log_settings), msg=['autostart: ', autostart])
242238
)
243239
ld.add_action(OpaqueFunction(function=generate_robot_actions))
244240

nav2_common/nav2_common/launch/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
from .has_node_params import HasNodeParams
16+
from .parse_multirobot_pose import ParseMultiRobotPose
1617
from .replace_string import ReplaceString
1718
from .rewritten_yaml import RewrittenYaml
1819

0 commit comments

Comments
 (0)