FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Correction for named Functor As it was creating confusion and may mislead new learners. by Subh85330 · Pull Request #65 · BehaviorTree/btcpp_website · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .md  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions docs/tutorial-basics/tutorial_01_first_tree.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ As you can see:
It must always return a `NodeStatus`, i.e. RUNNING, SUCCESS or FAILURE.

Alternatively, we can use __dependency injection__ to create a TreeNode given
a function pointer (i.e. "functor").
a function pointer.

The functor must have this signature:
The Functions (to use as a function pointer) must have this signature:

``` cpp
BT::NodeStatus myFunction(BT::TreeNode& self)
Expand Down Expand Up @@ -98,7 +98,7 @@ private:

```

We can build a `SimpleActionNode` from any of these functors:
We can build a `SimpleActionNode` from any of these functions:

- CheckBattery()
- GripperInterface::open()
Expand Down

Back | FazBrowse Home | New Git URL