Skip to content

Fix declaration of providedPorts method in tutorial#64

Open
Subh85330 wants to merge 1 commit intoBehaviorTree:masterfrom
Subh85330:patch-1
Open

Fix declaration of providedPorts method in tutorial#64
Subh85330 wants to merge 1 commit intoBehaviorTree:masterfrom
Subh85330:patch-1

Conversation

@Subh85330
Copy link

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 PortsList MyCustomNode::providedPorts();

Or if namespace BT is not opened

staticBT::PortsList MyCustomNode::providedPorts();

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant