Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Faconti <[email protected]>
  • Loading branch information
facontidavide committed Jan 25, 2024
1 parent 3d35add commit 4a22d68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions nav2_behavior_tree/src/generate_nav2_tree_nodes_xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ int main()
std::vector<std::string> plugins_list;
boost::split(plugins_list, nav2::details::BT_PLUGIN_LIST, boost::is_any_of(";"));

for (const auto & plugin : plugins_list) {
for (const auto & plugin : plugins_list)
{
std::cout << "Loading: " << plugin << "\n";
factory.registerFromPlugin(BT::SharedLibrary::getOSName(plugin));
}
std::cout << "\nGenerating file: nav2_tree_nodes.xml\n"
std::cout << "\nGenerating file: nav2_tree_nodes.xml\n"
<< "\nCompare it with the one in the git repo and update the latter if necessary.\n";

std::ofstream xml_file;
xml_file.open ("nav2_tree_nodes.xml");
xml_file.open("nav2_tree_nodes.xml");
xml_file << BT::writeTreeNodesModelXML(factory) << std::endl;
xml_file.close();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class BehaviorTreeHandler

std::vector<std::string> plugin_libs;
boost::split(plugin_libs, nav2::details::BT_PLUGIN_LIST, boost::is_any_of(";"));

for (const auto & p : plugin_libs) {
factory_.registerFromPlugin(BT::SharedLibrary::getOSName(p));
}
Expand Down

0 comments on commit 4a22d68

Please sign in to comment.