Skip to content

fix: Add PushRosNamespace action to navigation launch file and update… #5300

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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8d56bfd
fix: Add PushRosNamespace action to navigation launch file and update…
Jun 24, 2025
51f0ee3
fix: Reorder import statements in navigation launch file for consistency
Jun 24, 2025
19a7cbf
fix: Correct formatting of comments in navigation launch file for cla…
Jun 24, 2025
11cb8a9
fix: Add PushRosNamespace action to multiple launch files for paramet…
Jun 30, 2025
96ae141
fix: Add PushRosNamespace action to slam_launch.py for parameter name…
Jul 2, 2025
fa3378e
Adding logging for matched events and dropped messages into pub/sub o…
SteveMacenski Jun 25, 2025
e294358
Add LaunchConfigAsBool (Fixes #5233) (#5301)
nishalangovender Jun 26, 2025
b35d52c
Create claude.yml
SteveMacenski Jun 26, 2025
409a733
Update claude.yml
SteveMacenski Jun 26, 2025
260cd02
Update claude.yml
SteveMacenski Jun 26, 2025
5f7bd0a
Update claude.yml for authorized users
SteveMacenski Jun 26, 2025
c198d97
Update claude.yml
SteveMacenski Jun 26, 2025
a3ff6b9
Update claude.yml
SteveMacenski Jun 26, 2025
eb93359
Adding clear costmap around pose service option (#5309)
SteveMacenski Jun 27, 2025
659cd10
Add support for enable_lifecycle_services parameter in LifecycleNode …
SteveMacenski Jun 30, 2025
d6d01eb
fix: Rename PushRosNamespace to PushROSNamespace for consistency acro…
Jul 2, 2025
549724a
Merge branch 'ros-navigation:main' into main
OmarRebai Jul 2, 2025
0c14bf9
Merge branch 'ros-navigation:main' into main
OmarRebai Jul 7, 2025
25f0f8d
Merge remote-tracking branch 'upstream/main'
OmarRebai Jul 15, 2025
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
4 changes: 2 additions & 2 deletions nav2_bringup/launch/bringup_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from launch.conditions import IfCondition
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch_ros.actions import Node, PushROSNamespace
from launch_ros.actions import Node
from launch_ros.descriptions import ParameterFile
from nav2_common.launch import LaunchConfigAsBool, RewrittenYaml

Expand Down Expand Up @@ -150,10 +150,10 @@ def generate_launch_description() -> LaunchDescription:
# Specify the actions
bringup_cmd_group = GroupAction(
[
PushROSNamespace(namespace),
Node(
condition=IfCondition(use_composition),
name='nav2_container',
namespace=namespace,
package='rclcpp_components',
executable='component_container_isolated',
parameters=[configured_params, {'autostart': autostart}],
Expand Down
4 changes: 3 additions & 1 deletion nav2_bringup/launch/keepout_zone_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from launch.actions import DeclareLaunchArgument, GroupAction, SetEnvironmentVariable
from launch.conditions import IfCondition
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch_ros.actions import LoadComposableNodes, Node, SetParameter
from launch_ros.actions import LoadComposableNodes, Node, PushROSNamespace, SetParameter
from launch_ros.descriptions import ComposableNode, ParameterFile
from nav2_common.launch import LaunchConfigAsBool, RewrittenYaml

Expand Down Expand Up @@ -116,6 +116,7 @@ def generate_launch_description() -> LaunchDescription:
load_nodes = GroupAction(
condition=IfCondition(PythonExpression(['not ', use_composition])),
actions=[
PushROSNamespace(namespace),
SetParameter('use_sim_time', use_sim_time),
Node(
condition=IfCondition(use_keepout_zones),
Expand Down Expand Up @@ -159,6 +160,7 @@ def generate_launch_description() -> LaunchDescription:
load_composable_nodes = GroupAction(
condition=IfCondition(use_composition),
actions=[
PushROSNamespace(namespace),
SetParameter('use_sim_time', use_sim_time),
LoadComposableNodes(
target_container=container_name_full,
Expand Down
4 changes: 3 additions & 1 deletion nav2_bringup/launch/localization_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from launch.conditions import IfCondition
from launch.substitutions import (EqualsSubstitution, LaunchConfiguration, NotEqualsSubstitution,
PythonExpression)
from launch_ros.actions import LoadComposableNodes, Node, SetParameter
from launch_ros.actions import LoadComposableNodes, Node, PushROSNamespace, SetParameter
from launch_ros.descriptions import ComposableNode, ParameterFile
from nav2_common.launch import LaunchConfigAsBool, RewrittenYaml

Expand Down Expand Up @@ -110,6 +110,7 @@ def generate_launch_description() -> LaunchDescription:
load_nodes = GroupAction(
condition=IfCondition(PythonExpression(['not ', use_composition])),
actions=[
PushROSNamespace(namespace),
SetParameter('use_sim_time', use_sim_time),
Node(
condition=IfCondition(
Expand Down Expand Up @@ -168,6 +169,7 @@ def generate_launch_description() -> LaunchDescription:
load_composable_nodes = GroupAction(
condition=IfCondition(use_composition),
actions=[
PushROSNamespace(namespace),
SetParameter('use_sim_time', use_sim_time),
LoadComposableNodes(
target_container=container_name_full,
Expand Down
12 changes: 11 additions & 1 deletion nav2_bringup/launch/navigation_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from launch.actions import DeclareLaunchArgument, GroupAction, SetEnvironmentVariable
from launch.conditions import IfCondition
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch_ros.actions import LoadComposableNodes, Node, SetParameter
from launch_ros.actions import LoadComposableNodes, Node, PushROSNamespace, SetParameter
from launch_ros.descriptions import ComposableNode, ParameterFile
from nav2_common.launch import LaunchConfigAsBool, RewrittenYaml

Expand Down Expand Up @@ -65,6 +65,14 @@ def generate_launch_description() -> LaunchDescription:
'SPEED_ZONE_ENABLED': use_speed_zones,
}

# RewrittenYaml: Adds namespace to the parameters file as a root key
# Note: Make sure that all frames are correctly namespaced in the parameters file
# Do not add namespace to topics in the parameters file, as they will be remapped
# by the root key only if they are not prefixed with a forward slash.
# e.g. 'map' will be remapped to '/<namespace>/map', but '/map' will not be remapped.
# IMPORTANT: to make your yaml file dynamic you can refer to humble branch under
# nav2_bringup/launch/bringup_launch.py to see how the parameters file is configured
# using ReplaceString <robot_namespace>
configured_params = ParameterFile(
RewrittenYaml(
source_file=params_file,
Expand Down Expand Up @@ -143,6 +151,7 @@ def generate_launch_description() -> LaunchDescription:
condition=IfCondition(PythonExpression(['not ', use_composition])),
actions=[
SetParameter('use_sim_time', use_sim_time),
PushROSNamespace(namespace=namespace),
Node(
package='nav2_controller',
executable='controller_server',
Expand Down Expand Up @@ -267,6 +276,7 @@ def generate_launch_description() -> LaunchDescription:
condition=IfCondition(use_composition),
actions=[
SetParameter('use_sim_time', use_sim_time),
PushROSNamespace(namespace=namespace),
LoadComposableNodes(
target_container=container_name_full,
composable_node_descriptions=[
Expand Down
5 changes: 4 additions & 1 deletion nav2_bringup/launch/slam_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from launch.conditions import IfCondition, UnlessCondition
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node, SetParameter, SetRemap
from launch_ros.actions import Node, PushROSNamespace, SetParameter, SetRemap
from launch_ros.descriptions import ParameterFile
from nav2_common.launch import HasNodeParams, LaunchConfigAsBool, RewrittenYaml

Expand Down Expand Up @@ -89,6 +89,7 @@ def generate_launch_description() -> LaunchDescription:
# Nodes launching commands
start_map_server = GroupAction(
actions=[
PushROSNamespace(namespace),
SetParameter('use_sim_time', use_sim_time),
Node(
package='nav2_map_server',
Expand Down Expand Up @@ -120,6 +121,8 @@ def generate_launch_description() -> LaunchDescription:
start_slam_toolbox_cmd = GroupAction(

actions=[
PushROSNamespace(namespace),

# Remapping required to have a slam session subscribe & publish in optional namespaces
SetRemap(src='/scan', dst='scan'),
SetRemap(src='/tf', dst='tf'),
Expand Down
4 changes: 3 additions & 1 deletion nav2_bringup/launch/speed_zone_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from launch.actions import DeclareLaunchArgument, GroupAction, SetEnvironmentVariable
from launch.conditions import IfCondition
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch_ros.actions import LoadComposableNodes, Node, SetParameter
from launch_ros.actions import LoadComposableNodes, Node, PushROSNamespace, SetParameter
from launch_ros.descriptions import ComposableNode, ParameterFile
from nav2_common.launch import LaunchConfigAsBool, RewrittenYaml

Expand Down Expand Up @@ -116,6 +116,7 @@ def generate_launch_description() -> LaunchDescription:
load_nodes = GroupAction(
condition=IfCondition(PythonExpression(['not ', use_composition])),
actions=[
PushROSNamespace(namespace),
SetParameter('use_sim_time', use_sim_time),
Node(
condition=IfCondition(use_speed_zones),
Expand Down Expand Up @@ -159,6 +160,7 @@ def generate_launch_description() -> LaunchDescription:
load_composable_nodes = GroupAction(
condition=IfCondition(use_composition),
actions=[
PushROSNamespace(namespace),
SetParameter('use_sim_time', use_sim_time),
LoadComposableNodes(
target_container=container_name_full,
Expand Down
Loading