Skip to content

Commit 55a1a67

Browse files
committed
rename
1 parent 0a08f78 commit 55a1a67

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

examples/t13_plugin_action.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include "t13_custom_type.hpp"
22
#include "behaviortree_cpp/bt_factory.h"
33

4-
class ShowVector : public BT::SyncActionNode
4+
class PrintVector : public BT::SyncActionNode
55
{
66
public:
7-
ShowVector(const std::string& name, const BT::NodeConfig& config)
7+
PrintVector(const std::string& name, const BT::NodeConfig& config)
88
: BT::SyncActionNode(name, config)
99
{
1010
}
@@ -23,13 +23,13 @@ class ShowVector : public BT::SyncActionNode
2323
}
2424
};
2525

26-
// Function used to register ShowVector automatically, when
26+
// Function used to register PrintVector automatically, when
2727
// loading the plugin.
28-
// Remember that is mandatory to add to toy CMakeLists.txtx file
29-
// this:
28+
// Remember that it is mandatory to add to the CMakeLists.txt file this:
29+
//
3030
// target_compile_definitions(<target_name> PRIVATE BT_PLUGIN_EXPORT)
3131
//
3232
BT_REGISTER_NODES(factory)
3333
{
34-
factory.registerNodeType<ShowVector>("ShowVector");
34+
factory.registerNodeType<PrintVector>("PrintVector");
3535
}

examples/t13_plugin_executor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ static const char* xml_text = R"(
88
<BehaviorTree ID="MainTree">
99
<Sequence>
1010
<Script code="vect:='1,2,3,4'"/>
11-
<ShowVector value="{vect}"/>;
11+
<PrintVector value="{vect}"/>;
1212
<SubTree ID="MySub" v4="{vect}"/>
1313
</Sequence>
1414
</BehaviorTree>
1515
1616
<BehaviorTree ID="MySub">
17-
<ShowVector value="{v4}"/>;
17+
<PrintVector value="{v4}"/>;
1818
</BehaviorTree>
1919
</root>
2020
)";

0 commit comments

Comments
 (0)