We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4189c72 commit 0181a1fCopy full SHA for 0181a1f
include/behaviortree_cpp/controls/manual_node.h
@@ -43,7 +43,7 @@ class ManualSelectorNode : public ControlNode
43
int running_child_idx_;
44
int previously_executed_idx_;
45
46
- enum NumericarStatus
+ enum NumericalStatus
47
{
48
NUM_SUCCESS = 253,
49
NUM_FAILURE = 254,
include/behaviortree_cpp/controls/parallel_node.h
@@ -47,10 +47,10 @@ class ParallelNode : public ControlNode
static PortsList providedPorts()
return {InputPort<int>(THRESHOLD_SUCCESS, -1,
50
- "number of childen which need to succeed to trigger a "
+ "number of children which need to succeed to trigger a "
51
"SUCCESS"),
52
InputPort<int>(THRESHOLD_FAILURE, 1,
53
- "number of childen which need to fail to trigger a FAILURE")};
+ "number of children which need to fail to trigger a FAILURE")};
54
}
55
56
~ParallelNode() override = default;
include/behaviortree_cpp/decorators/repeat_node.h
@@ -43,7 +43,7 @@ class RepeatNode : public DecoratorNode
- return {InputPort<int>(NUM_CYCLES, "Repeat a succesful child up to N times. "
+ return {InputPort<int>(NUM_CYCLES, "Repeat a successful child up to N times. "
"Use -1 to create an infinite loop.")};
src/bt_factory.cpp
@@ -261,12 +261,12 @@ std::unique_ptr<TreeNode> BehaviorTreeFactory::instantiateTreeNode(
261
node->setRegistrationID(ID);
262
node->config_.enums = scripting_enums_;
263
264
- auto AssignConditions = [](auto& conditions, auto& excutors) {
+ auto AssignConditions = [](auto& conditions, auto& executors) {
265
for (const auto& [cond_id, script] : conditions)
266
267
if (auto executor = ParseScript(script))
268
269
- excutors[size_t(cond_id)] = executor.value();
+ executors[size_t(cond_id)] = executor.value();
270
271
else
272
src/controls/manual_node.cpp
@@ -91,7 +91,7 @@ NodeStatus ManualSelectorNode::selectStatus() const
91
win = newwin(6, 70, 1, 1); // create a new window
92
93
mvwprintw(win, 0, 0, "No children.");
94
- mvwprintw(win, 1, 0, "Press: S to return SUCCESFULL,");
+ mvwprintw(win, 1, 0, "Press: S to return SUCCESSFUL,");
95
mvwprintw(win, 2, 0, " F to return FAILURE, or");
96
mvwprintw(win, 3, 0, " R to return RUNNING.");
97
@@ -152,7 +152,7 @@ uint8_t ManualSelectorNode::selectChild() const
152
win = newwin(children_count + 6, 70, 1, 1); // create a new window
153
154
mvwprintw(win, 0, 0, "Use UP/DOWN arrow to select the child, Enter to confirm.");
155
- mvwprintw(win, 1, 0, "Press: S to skip and return SUCCESFULL,");
+ mvwprintw(win, 1, 0, "Press: S to skip and return SUCCESSFUL,");
156
mvwprintw(win, 2, 0, " F to skip and return FAILURE, or");
157
mvwprintw(win, 3, 0, " R to skip and return RUNNING.");
158
src/controls/parallel_node.cpp
@@ -52,8 +52,8 @@ NodeStatus ParallelNode::tick()
- size_t success_childred_num = 0;
- size_t failure_childred_num = 0;
+ size_t success_children_num = 0;
+ size_t failure_children_num = 0;
57
58
const size_t children_count = children_nodes_.size();
59
@@ -88,9 +88,9 @@ NodeStatus ParallelNode::tick()
88
89
case NodeStatus::SUCCESS: {
90
skip_list_.insert(i);
- success_childred_num++;
+ success_children_num++;
- if (success_childred_num == successThreshold())
+ if (success_children_num == successThreshold())
skip_list_.clear();
haltChildren();
@@ -101,12 +101,12 @@ NodeStatus ParallelNode::tick()
101
102
case NodeStatus::FAILURE: {
103
104
- failure_childred_num++;
+ failure_children_num++;
105
106
// It fails if it is not possible to succeed anymore or if
107
// number of failures are equal to failure_threshold_
108
- if ((failure_childred_num > children_count - successThreshold()) ||
109
- (failure_childred_num == failureThreshold()))
+ if ((failure_children_num > children_count - successThreshold()) ||
+ (failure_children_num == failureThreshold()))
110
111
112
tests/gtest_ports.cpp
@@ -62,7 +62,7 @@ TEST(PortTest, Descriptions)
62
</Sequence>
63
</BehaviorTree>
64
65
- <BehaviorTree ID="SubTree" _description="this is a subtre" >
+ <BehaviorTree ID="SubTree" _description="this is a subtree" >
66
<NodeWithPorts name="third" in_port_B="99" />
67
68
0 commit comments