From 9eb9d83c5445fa4dc468763847d243113561bcc0 Mon Sep 17 00:00:00 2001 From: Subham Date: Thu, 12 Mar 2026 00:06:08 +0530 Subject: [PATCH] Fix declaration of providedPorts method in tutorial There was a type that caused confusion in understanding the concepts Earlier : static MyCustomNode::PortsList providedPorts(); This was incorrect because PortsList is not in MyCustomNode, it is inside the namespace BT, and since it is declared using namespace BT, This should be as follows static MyCustomNode::PortsList providedPorts(); --- docs/tutorial-basics/tutorial_02_basic_ports.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial-basics/tutorial_02_basic_ports.md b/docs/tutorial-basics/tutorial_02_basic_ports.md index 3046952..83e5caa 100644 --- a/docs/tutorial-basics/tutorial_02_basic_ports.md +++ b/docs/tutorial-basics/tutorial_02_basic_ports.md @@ -99,7 +99,7 @@ When a custom TreeNode has input and/or output ports, these ports must be declared in the __static__ method: ``` cpp -static MyCustomNode::PortsList providedPorts(); +static PortsList MyCustomNode::providedPorts(); ``` The input from the port `message` can be read using the template method