Skip to content

Commit 8c8c973

Browse files
authored
Merge pull request #11736 from rhbourke/patch-1
Add note about target_position requirement for NavigationAgent Avoidance
1 parent c2720f8 commit 8c8c973

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tutorials/navigation/navigation_using_navigationagents.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ This velocity vector should be used to move the NavigationAgent's parent node in
112112

113113
Only other agents on the same map that are registered for avoidance themself will be considered in the avoidance calculation.
114114

115+
.. note::
116+
117+
The NavigationAgent **must** be supplied with a ``target_position`` attribute,
118+
even if you are only using the agent for avoidance. Otherwise, the ``safe_velocity``
119+
received from the ``velocity_computed`` signal will always be the zero vector.
120+
115121
The following NavigationAgent properties are relevant for avoidance:
116122

117123
- The property ``height`` is available in 3D only. The height together with the current global y-axis position of the agent determines the vertical placement of the agent in the avoidance simulation. Agents using the 2D avoidance will automatically ignore other agents or obstacles that are below or above them.

0 commit comments

Comments
 (0)