File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
nav2_costmap_filters_demo/launch Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2222from launch .actions import DeclareLaunchArgument , GroupAction
2323from launch .conditions import IfCondition
2424from launch .substitutions import LaunchConfiguration , PythonExpression
25- from launch .substitutions import NotEqualsSubstitution
25+ # from launch.substitutions import NotEqualsSubstitution
2626from launch_ros .actions import Node , LoadComposableNodes
2727from launch_ros .actions import PushRosNamespace
2828from launch_ros .descriptions import ComposableNode
@@ -123,7 +123,10 @@ def generate_launch_description():
123123 condition = IfCondition (use_composition ),
124124 actions = [
125125 PushRosNamespace (
126- condition = IfCondition (NotEqualsSubstitution (LaunchConfiguration ('namespace' ), '' )),
126+ # condition=IfCondition(NotEqualsSubstitution(LaunchConfiguration('namespace'), '')),
127+ condition = IfCondition (PythonExpression (["'" ,
128+ LaunchConfiguration ('namespace' ),
129+ "' != ''" ,])),
127130 namespace = namespace ),
128131 LoadComposableNodes (
129132 target_container = container_name_full ,
You can’t perform that action at this time.
0 commit comments