@@ -8,20 +8,17 @@ using namespace BT;
8
8
*/
9
9
10
10
/* *
11
- * You can optinally add a model to a SubTrees, in this case "MySub".
12
- * We are telling to the factory that the callee should remap
13
- * two mandatory inputs, called :
11
+ * You can optionally add a model to a SubTrees, in this case, "MySub".
12
+ * We are telling the factory that the callee should remap
13
+ * two mandatory inputs, and two outputs :
14
14
*
15
15
* - sub_in_value (that has the default value 42)
16
16
* - sub_in_name (no default)
17
- *
18
- * Similarly, there are two output values:
19
- *
20
17
* - sub_out_result (default remapping to port {output})
21
18
* - sub_out_state (no default)
22
19
*
23
- * The callee MUST specify those remapping that have
24
- * no default value.
20
+ * The callee (parent tree, including the subtree) MUST specify those
21
+ * remapping which have no default value.
25
22
*/
26
23
27
24
// clang-format off
@@ -47,8 +44,8 @@ static const char* xml_subtree = R"(
47
44
)" ;
48
45
49
46
/* *
50
- * Here, when calling "MySub", only in_name and out_state are explicitly
51
- * remapped. Will we use the default values for the other two.
47
+ * Here, when calling "MySub", only `sub_in_name` and `sub_out_state` are explicitly
48
+ * remapped. We will use the default values for the other two.
52
49
*/
53
50
54
51
static const char * xml_maintree = R"(
@@ -78,7 +75,7 @@ int main()
78
75
StdCoutLogger logger (tree);
79
76
tree.tickWhileRunning ();
80
77
81
- // We expect the sequence to be succesful .
78
+ // We expect the sequence to be successful .
82
79
83
80
// The full remapping was:
84
81
//
0 commit comments