Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed a few typos related to SubtreeWrapper. #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/behaviortree_cpp_v3/decorators/subtree_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SubtreeNode : public DecoratorNode
};

/**
* @brief The TransparentSubtreeNode is a way to wrap an entire Subtree.
* @brief The SubtreeWrapperNode is a way to wrap an entire Subtree.
* It does NOT have a separated BlackBoard and does not need ports remapping.
*/
class SubtreeWrapperNode : public DecoratorNode
Expand Down
2 changes: 1 addition & 1 deletion src/basic_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ NodeType convertFromString<NodeType>(StringView str)
if( str == "Condition" ) return NodeType::CONDITION;
if( str == "Control" ) return NodeType::CONTROL;
if( str == "Decorator" ) return NodeType::DECORATOR;
if( str == "SubTree" || str == "Subtree" ) return NodeType::SUBTREE;
if( str == "SubTree" || str == "SubtreeWrapper" ) return NodeType::SUBTREE;
return NodeType::UNDEFINED;
}

Expand Down
2 changes: 1 addition & 1 deletion src/decorators/subtree_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BT::NodeStatus BT::SubtreeNode::tick()
BT::SubtreeWrapperNode::SubtreeWrapperNode(const std::string &name) :
DecoratorNode(name, {} )
{
setRegistrationID("TransparentSubtree");
setRegistrationID("SubtreeWrapper");
}

BT::NodeStatus BT::SubtreeWrapperNode::tick()
Expand Down