Skip to content

Commit

Permalink
reverted changes to localization_launch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
john-chrosniak committed Dec 4, 2024
1 parent 01bf9dc commit b68157b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions nav2_bringup/launch/localization_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ def generate_launch_description():
actions=[
SetParameter("use_sim_time", use_sim_time),
Node(
condition=IfCondition(EqualsSubstitution(LaunchConfiguration('map'), '')),
package='nav2_map_server',
executable='map_server',
name='map_server',
output='screen',
respawn=use_respawn,
respawn_delay=2.0,
parameters=[configured_params],
arguments=['--ros-args', '--log-level', log_level],
remappings=remappings),
Node(
condition=IfCondition(NotEqualsSubstitution(LaunchConfiguration('map'), '')),
package='nav2_map_server',
executable='map_server',
name='map_server',
Expand Down Expand Up @@ -149,6 +161,19 @@ def generate_launch_description():
SetParameter("use_sim_time", use_sim_time),
LoadComposableNodes(
target_container=container_name,
condition=IfCondition(EqualsSubstitution(LaunchConfiguration('map'), '')),
composable_node_descriptions=[
ComposableNode(
package='nav2_map_server',
plugin='nav2_map_server::MapServer',
name='map_server',
parameters=[configured_params],
remappings=remappings),
],
),
LoadComposableNodes(
target_container=container_name,
condition=IfCondition(NotEqualsSubstitution(LaunchConfiguration('map'), '')),
composable_node_descriptions=[
ComposableNode(
package='nav2_map_server',
Expand Down

0 comments on commit b68157b

Please sign in to comment.