Skip to content

Commit

Permalink
bt-builder-plugins: Setting default BT builder plugin to SimpleBTBuil…
Browse files Browse the repository at this point in the history
…der.

Signed-off-by: Josh Zapf <jjzapf@gmail.com>
  • Loading branch information
jjzapf committed Sep 14, 2022
1 parent a74892d commit 5aead81
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def generate_launch_description():

declare_bt_builder_plugin_cmd = DeclareLaunchArgument(
"bt_builder_plugin",
default_value="STNBTBuilder",
default_value="SimpleBTBuilder",
description="Behavior tree builder plugin.",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def generate_launch_description():

declare_bt_builder_plugin_cmd = DeclareLaunchArgument(
"bt_builder_plugin",
default_value="STNBTBuilder",
default_value="SimpleBTBuilder",
description="Behavior tree builder plugin.",
)

Expand Down
2 changes: 1 addition & 1 deletion plansys2_executor/launch/executor_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def generate_launch_description():

declare_bt_builder_plugin_cmd = DeclareLaunchArgument(
"bt_builder_plugin",
default_value="STNBTBuilder",
default_value="SimpleBTBuilder",
description="Behavior tree builder plugin.",
)

Expand Down
2 changes: 1 addition & 1 deletion plansys2_executor/src/plansys2_executor/ExecutorNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ ExecutorNode::execute(const std::shared_ptr<GoalHandleExecutePlan> goal_handle)

auto bt_builder_plugin = this->get_parameter("bt_builder_plugin").as_string();
if (bt_builder_plugin.empty()) {
bt_builder_plugin = "STNBTBuilder";
bt_builder_plugin = "SimpleBTBuilder";
}

std::shared_ptr<plansys2::BTBuilder> bt_builder;
Expand Down

0 comments on commit 5aead81

Please sign in to comment.