Skip to content
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

Docs for 3880 #483

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Parameters
============== =============================

Description:
Maximum time interval in which source data is considered as valid.
Maximum time interval in which source data is considered as valid. If no new data is received within this interval, an additional warning will be displayed. Setting ``source_timeout: 0.0`` disables it. This parameter can be overriden per observation source.

:base_shift_correction:

Expand Down Expand Up @@ -285,6 +285,17 @@ Observation sources parameters

Description:
Whether to use this source for collision detection. (Can be dynamically set)

:``<source name>``.source_timeout:

============== =============================
Type Default
-------------- -----------------------------
double (node parameter ``source_timeout`` value)
============== =============================

Description:
Maximum time interval in which source data is considered as valid. If no new data is received within this interval, an additional warning will be displayed. Setting ``source_timeout: 0.0`` disables it. Overrides node parameter for each source individually, if desired.

Example
*******
Expand All @@ -310,6 +321,7 @@ Here is an example of configuration YAML for the Collision Detector.
polygon_pub_topic: "polygon_front"
observation_sources: ["scan"]
scan:
source_timeout: 0.2
type: "scan"
topic: "scan"
enabled: True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Parameters
============== =============================

Description:
Maximum time interval in which source data is considered as valid.
Maximum time interval in which source data is considered as valid. If no new data is received within this interval, the robot will be stopped. Setting ``source_timeout: 0.0`` disables this blocking mechanism. This parameter can be overriden per observation source.

:base_shift_correction:

Expand Down Expand Up @@ -423,6 +423,17 @@ Observation sources parameters

Description:
Whether to use this source for collision monitoring. (Can be dynamically set)

:``<source name>``.source_timeout:

============== =============================
Type Default
-------------- -----------------------------
double (node parameter ``source_timeout`` value)
============== =============================

Description:
Maximum time interval in which source data is considered as valid. If no new data is received within this interval, the robot will be stopped. Setting ``source_timeout: 0.0`` disables this blocking mechanism. Overrides node parameter for each source individually, if desired.


Example
Expand Down Expand Up @@ -482,6 +493,7 @@ Here is an example of configuration YAML for the Collision Monitor.
enabled: True
observation_sources: ["scan", "pointcloud"]
scan:
source_timeout: 0.2
type: "scan"
topic: "/scan"
enabled: True
Expand Down
9 changes: 9 additions & 0 deletions migration/Iron.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,12 @@ Subtrees Obtain Shared Resources
********************************

`PR #3911 <https://github.com/ros-planning/navigation2/pull/3911>`_ gives all sub-trees in BT.CPP the same shared resources as the main tree (node, shared timeouts, etc).

Collision Monitor: added watchdog mechanism based on ``source_timeout`` parameter with default blocking behavior
****************************************************************************************************************

`PR #3880 <https://github.com/ros-planning/navigation2/pull/3880>`_ adds a watchdog mechanism that stops the robot if a source data is not published yet, or if no new data is received within the `source_timeout`` parameter, or if impossible to transform data to base frame. ``source_timeout`` parameter can now be set per source: if ``source_timeout`` is not set for a source, the value of the node ``source_timeout`` parameter is used.

Additionally, this watchdog mechanism can be disabled by setting ``source_timeout: 0.0``.