You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/docs/navigation2_with_keepout_filter.rst
+91-44
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Since filter mask image was created as a copy of main map, other fields of YAML-
87
87
88
88
Each costmap filter reads incoming meta-information (such as filter type or data conversion coefficients) in a messages of ``nav2_msgs/CostmapFilterInfo`` type. These messages are being published by `Costmap Filter Info Publisher Server <https://github.com/ros-planning/navigation2/tree/main/nav2_map_server/src/costmap_filter_info>`_. The server is running as a lifecycle node. According to the `design document <https://github.com/ros-planning/navigation2/blob/main/doc/design/CostmapFilters_design.pdf>`_, ``nav2_msgs/CostmapFilterInfo`` messages are going in a pair with ``OccupancyGrid`` filter mask topic. Therefore, along with Costmap Filter Info Publisher Server there should be enabled a new instance of Map Server configured to publish filter mask.
89
89
90
-
In order to enable Keepout Filter in your configuration, both servers should be enabled as a lifecycle nodes in Python launch-file. For example, this might look as follows, though adding them as Composition Nodes to your Navigation Component Container is also possible:
90
+
In order to enable Keepout Filter in your configuration, both servers should be enabled as a lifecycle nodes in Python launch-file. It is also possible to add them as Composition Nodes to your Navigation Component Container, which might look as follows:
91
91
92
92
.. code-block:: python
93
93
@@ -96,17 +96,20 @@ In order to enable Keepout Filter in your configuration, both servers should be
96
96
from ament_index_python.packages import get_package_share_directory
97
97
98
98
from launch import LaunchDescription
99
-
from launch.actions import DeclareLaunchArgument
100
-
from launch.substitutions import LaunchConfiguration
101
-
from launch_ros.actions import Node
99
+
from launch.actions import DeclareLaunchArgument, GroupAction
100
+
from launch.conditions import IfCondition
101
+
from launch.substitutions import LaunchConfiguration, PythonExpression
102
+
from launch.substitutions import NotEqualsSubstitution
103
+
from launch_ros.actions import Node, LoadComposableNodes
104
+
from launch_ros.actions import PushRosNamespace
105
+
from launch_ros.descriptions import ComposableNode
0 commit comments