facontidavide on master
improve writeTreeNodesModelXML Merge branch 'master' of github… (compare)
facontidavide on master
Shutdown zmq context after join… (compare)
facontidavide on master
Update README.md (compare)
facontidavide on master
add option to conditionally bui… (compare)
facontidavide on master
remove variables that depend on… (compare)
facontidavide on master
Small comments on node registra… (compare)
facontidavide on cmake_dir_issue_358
Update cmake.yml (compare)
facontidavide on cmake_dir_issue_358
remove variables that depend on… (compare)
-- Could NOT find ZMQ (missing: ZMQ_LIBRARIES ZMQ_INCLUDE_DIRS)
CMake Warning at depend/BehaviorTree.CPP/CMakeLists.txt:43 (message):
ZeroMQ NOT found. Skipping the build of [PublisherZMQ] and [bt_recorder].
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
CMake Warning at depend/BehaviorTree.CPP/CMakeLists.txt:92 (message):
GTest missing!
behaviortree-cpp-v3
through apt sources and found the CMake package name being behaviortree_cpp_v3
instead of BehaviorTreeV3
, which was suggested in the README 'How to Compile' section. Had to use the former name for a ROS package to correctly find the library. Is it a typo in the README instruction i.e. find_package(behaviortree_cpp_v3)
instead of find_package(BehaviorTreeV3)
? Happy to raise a PR patch if so :)
BT::BehaviorTreeFactory factory;
BT::Tree tree_;
std::atomic_bool treeloaded;
void load_tree(const std::string& behavior_tree_xml) {
if (treeloaded) {
tree.haltTree();
}
tree = factory.createTreeFromFile(behavior_tree_xml);
treeloaded.store(true);
}