Skip to content

Commit 476382e

Browse files
committed
Adding bt explanation and updating
Signed-off-by: silanus23 <berkantali23@outlook.com>
1 parent dad18df commit 476382e

2 files changed

Lines changed: 100 additions & 91 deletions

File tree

migration/Kilted.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,3 +827,7 @@ If you want to use this condition node in your behavior trees:
827827
1. Ensure your controller publishes ``tracking_feedback`` messages
828828
2. Add the condition node to your BT XML with appropriate error bounds
829829
3. The node differentiates between left/right errors, allowing asymmetric tolerance
830+
831+
**Explanation for behavior tree**
832+
833+
Given behavior tree in default settings checking tracking error(deviation from path) on both sides with given max tolerance of 0.05 and working on 3Hz frequency.

plugins/index.rst

Lines changed: 96 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -533,97 +533,101 @@ Behavior Tree Nodes
533533
.. _Cancel Follow Object: https://github.com/ros-navigation/navigation2/blob/main/nav2_behavior_tree/plugins/action/follow_object_cancel_node.cpp
534534

535535

536-
+------------------------------------+--------------------+------------------------+
537-
| Condition Plugin Name | Creator | Description |
538-
+====================================+====================+========================+
539-
| `Goal Reached Condition`_ | Carl Delsey | Checks if goal is |
540-
| | | reached within tol. |
541-
+------------------------------------+--------------------+------------------------+
542-
| `Goal Updated Condition`_ |Aitor Miguel Blanco | Checks if goal is |
543-
| | | preempted. |
544-
+------------------------------------+--------------------+------------------------+
545-
| `Global Updated Goal Condition`_ | Joshua Wallace | Checks if goal is |
546-
| | | preempted in the global|
547-
| | | BT context |
548-
+------------------------------------+--------------------+------------------------+
549-
| `Initial Pose received Condition`_ | Carl Delsey | Checks if initial pose |
550-
| | | has been set |
551-
+------------------------------------+--------------------+------------------------+
552-
| `Is Stuck Condition`_ | Michael Jeronimo | Checks if robot is |
553-
| | | making progress or |
554-
| | | stuck |
555-
+------------------------------------+--------------------+------------------------+
556-
| `Is Stopped Condition`_ | Tony Najjar | Checks if robot is |
557-
| | | stopped for a duration |
558-
+------------------------------------+--------------------+------------------------+
559-
| `Transform Available Condition`_ | Steve Macenski | Checks if a TF |
560-
| | | transformation is |
561-
| | | available. When |
562-
| | | succeeds returns |
563-
| | | success for subsequent |
564-
| | | calls. |
565-
+------------------------------------+--------------------+------------------------+
566-
| `Distance Traveled Condition`_ | Sarthak Mittal | Checks is robot has |
567-
| | | traveled a given |
568-
| | | distance. |
569-
+------------------------------------+--------------------+------------------------+
570-
| `Time Expired Condition`_ | Sarthak Mittal | Checks if a given |
571-
| | | time period has |
572-
| | | passed. |
573-
+------------------------------------+--------------------+------------------------+
574-
| `Is Battery Low Condition`_ | Sarthak Mittal | Checks if battery |
575-
| | | percentage is below |
576-
| | | a specified value. |
577-
+------------------------------------+--------------------+------------------------+
578-
| `Is Path Valid Condition`_ | Joshua Wallace | Checks if a path is |
579-
| | | valid by making sure |
580-
| | | there are no LETHAL |
581-
| | | obstacles along the |
582-
| | | path. |
583-
+------------------------------------+--------------------+------------------------+
584-
| `Path Expiring Timer`_ | Joshua Wallace | Checks if the timer has|
585-
| | | expired. The timer is |
586-
| | | reset if the path gets |
587-
| | | updated. |
588-
+------------------------------------+--------------------+------------------------+
589-
| `Are Error Codes Present`_ | Joshua Wallace | Checks if the specified|
590-
| | | error codes are |
591-
| | | present. |
592-
+------------------------------------+--------------------+------------------------+
593-
| `Would A Controller Recovery Help`_| Joshua Wallace | Checks if a controller |
594-
| | | recovery could help |
595-
| | | clear the controller |
596-
| | | server error code. |
597-
+------------------------------------+--------------------+------------------------+
598-
| `Would A Planner Recovery Help`_ | Joshua Wallace | Checks if a planner |
599-
| | | recovery could help |
600-
| | | clear the planner |
601-
| | | server error code. |
602-
+------------------------------------+--------------------+------------------------+
603-
| `Would A Smoother Recovery Help`_ | Joshua Wallace | Checks if a Smoother |
604-
| | | recovery could help |
605-
| | | clear the smoother |
606-
| | | server error code. |
607-
+------------------------------------+--------------------+------------------------+
608-
| `Would A Route Recovery Help`_ | Steve Macenski | Checks if a Route |
609-
| | | recovery could help |
610-
| | | clear the route |
611-
| | | server error code. |
612-
+------------------------------------+--------------------+------------------------+
613-
| `Is Battery Charging Condition`_ | Alberto Tudela | Checks if the battery |
614-
| | | is charging. |
615-
+------------------------------------+--------------------+------------------------+
616-
| `Are Poses Near Condition`_ | Steve Macenski | Checks if 2 poses are |
617-
| | | nearby to each other. |
618-
+------------------------------------+--------------------+------------------------+
619-
| `Is Pose Occupied Condition`_ | Maurice Alexander | Checks if a pose is |
620-
| | Purnawan | occupied. |
621-
+------------------------------------+--------------------+------------------------+
622-
| `Is Goal Nearby Condition`_ | Jakub Chudziński | Checks if the robot is |
623-
| | | near the goal based on |
624-
| | | remaining path length. |
625-
+------------------------------------+--------------------+------------------------+
626-
536+
+----------------------------------------------+-------------------------+-------------------------+
537+
| Condition Plugin Name | Creator | Description |
538+
+==============================================+=========================+=========================+
539+
|| `Goal Reached Condition`_ || Carl Delsey || Checks if goal is |
540+
|| || || reached within tol. |
541+
+----------------------------------------------+-------------------------+-------------------------+
542+
|| `Goal Updated Condition`_ || Checks if goal is || |
543+
|| || || preempted. |
544+
+----------------------------------------------+-------------------------+-------------------------+
545+
|| `Global Updated Goal Condition`_ || Joshua Wallace || Checks if goal is |
546+
|| || || BT context |
547+
|| || || |
548+
+----------------------------------------------+-------------------------+-------------------------+
549+
|| `Initial Pose received Condition`_ || Carl Delsey || Checks if initial pose |
550+
|| || || has been set |
551+
+----------------------------------------------+-------------------------+-------------------------+
552+
|| `Is Stuck Condition`_ || Michael Jeronimo || Checks if robot is |
553+
|| || || making progress or |
554+
|| || || stuck |
555+
+----------------------------------------------+-------------------------+-------------------------+
556+
|| `Is Stopped Condition`_ || Tony Najjar || Checks if robot is |
557+
|| || || stopped for a duration |
558+
+----------------------------------------------+-------------------------+-------------------------+
559+
|| `Transform Available Condition`_ || Steve Macenski || Checks if a TF |
560+
|| || || transformation is |
561+
|| || || available. When |
562+
|| || || succeeds returns |
563+
|| || || success for subsequent |
564+
|| || || calls. |
565+
+----------------------------------------------+-------------------------+-------------------------+
566+
|| `Distance Traveled Condition`_ || Sarthak Mittal || Checks is robot has |
567+
|| || || traveled a given |
568+
|| || || distance. |
569+
+----------------------------------------------+-------------------------+-------------------------+
570+
|| `Time Expired Condition`_ || Sarthak Mittal || Checks if a given |
571+
|| || || time period has |
572+
|| || || passed. |
573+
+----------------------------------------------+-------------------------+-------------------------+
574+
|| `Is Battery Low Condition`_ || Sarthak Mittal || Checks if battery |
575+
|| || || percentage is below |
576+
|| || || a specified value. |
577+
+----------------------------------------------+-------------------------+-------------------------+
578+
|| `Is Path Valid Condition`_ || Joshua Wallace || Checks if a path is |
579+
|| || || valid by making sure |
580+
|| || || there are no LETHAL |
581+
|| || || obstacles along the |
582+
|| || || path. |
583+
+----------------------------------------------+-------------------------+-------------------------+
584+
|| `Path Expiring Timer`_ || Joshua Wallace || |
585+
|| || || expired. The timer is |
586+
|| || || reset if the path gets |
587+
|| || || updated. |
588+
+----------------------------------------------+-------------------------+-------------------------+
589+
|| `Are Error Codes Present`_ || Joshua Wallace || |
590+
|| || || error codes are |
591+
|| || || present. |
592+
+----------------------------------------------+-------------------------+-------------------------+
593+
|| Joshua Wallace || Checks if a controller || |
594+
|| || || recovery could help |
595+
|| || || clear the controller |
596+
|| || || server error code. |
597+
+----------------------------------------------+-------------------------+-------------------------+
598+
|| `Would A Planner Recovery Help`_ || Joshua Wallace || Checks if a planner |
599+
|| || || recovery could help |
600+
|| || || clear the planner |
601+
|| || || server error code. |
602+
+----------------------------------------------+-------------------------+-------------------------+
603+
|| `Would A Smoother Recovery Help`_ || Joshua Wallace || Checks if a Smoother |
604+
|| || || recovery could help |
605+
|| || || clear the smoother |
606+
|| || || server error code. |
607+
+----------------------------------------------+-------------------------+-------------------------+
608+
|| `Would A Route Recovery Help`_ || Steve Macenski || Checks if a Route |
609+
|| || || recovery could help |
610+
|| || || clear the route |
611+
|| || || server error code. |
612+
+----------------------------------------------+-------------------------+-------------------------+
613+
|| `Is Battery Charging Condition`_ || Alberto Tudela || Checks if the battery |
614+
|| || || is charging. |
615+
+----------------------------------------------+-------------------------+-------------------------+
616+
|| `Are Poses Near Condition`_ || Steve Macenski || Checks if 2 poses are |
617+
|| || || nearby to each other. |
618+
+----------------------------------------------+-------------------------+-------------------------+
619+
|| `Is Pose Occupied Condition`_ || Maurice Alexander || Checks if a pose is |
620+
|| || Purnawan || occupied. |
621+
+----------------------------------------------+-------------------------+-------------------------+
622+
|| `Is Goal Nearby Condition`_ || Jakub Chudziński || Checks if the robot is |
623+
|| || || near the goal based on |
624+
|| || || remaining path length. |
625+
+----------------------------------------------+-------------------------+-------------------------+
626+
|| `Is Within Path Tracking Bounds Condition`_ || Berkan Tali || Checks if Robot |
627+
|| || || is within given path |
628+
|| || || tracking bounds and |
629+
|| || || alignment tolerance. |
630+
+----------------------------------------------+-------------------------+-------------------------+
627631

628632
.. _Goal Reached Condition: https://github.com/ros-navigation/navigation2/tree/main/nav2_behavior_tree/plugins/condition/goal_reached_condition.cpp
629633
.. _Goal Updated Condition: https://github.com/ros-navigation/navigation2/tree/main/nav2_behavior_tree/plugins/condition/goal_updated_condition.cpp
@@ -646,6 +650,7 @@ Behavior Tree Nodes
646650
.. _Are Poses Near Condition: https://github.com/ros-navigation/navigation2/tree/main/nav2_behavior_tree/plugins/condition/are_poses_near_condition.cpp
647651
.. _Is Pose Occupied Condition: https://github.com/ros-navigation/navigation2/tree/main/nav2_behavior_tree/plugins/condition/is_pose_occupied_condition.cpp
648652
.. _Is Goal Nearby Condition: https://github.com/ros-navigation/navigation2/tree/main/nav2_behavior_tree/plugins/condition/is_goal_nearby_condition.cpp
653+
.. _Is Within Path Tracking Bounds Condition: https://github.com/ros-navigation/navigation2/tree/main/nav2_behavior_tree/plugins/condition/is_within_path_tracking_bounds_condition.cpp
649654

650655
+--------------------------+---------------------+----------------------------------+
651656
| Decorator Plugin Name | Creator | Description |

0 commit comments

Comments
 (0)