Skip to content

Commit

Permalink
Fix for behavior_tree library name
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Landini <ettore.landini@iit.it>
  • Loading branch information
elandini84 committed Dec 17, 2024
1 parent cbc7bfb commit e7fed36
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(${BTState})
# BehaviorTree.CPP links Boost::coroutine, but does not look for it
find_package(Boost COMPONENTS coroutine REQUIRED)
find_package(ament_index_cpp)
find_package(behaviortree_cpp_v3 REQUIRED)
find_package(behaviortree_cpp REQUIRED)
endif()
find_package(YCM REQUIRED)

Expand Down
2 changes: 1 addition & 1 deletion bt_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ target_link_libraries(bt_server
YARP::YARP_os
YARP::YARP_init
ament_index_cpp::ament_index_cpp
BT::behaviortree_cpp_v3
BT::behaviortree_cpp
yarp_bt_nodes
pthread)

Expand Down
12 changes: 6 additions & 6 deletions bt_server/bt_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
#include <atomic>

#ifdef ZMQ_FOUND
#include "behaviortree_cpp_v3/loggers/bt_zmq_publisher.h"
#include "behaviortree_cpp/loggers/bt_zmq_publisher.h"
#endif

#include <iostream>
#include <behaviortree_cpp_v3/behavior_tree.h>
#include <behaviortree_cpp/behavior_tree.h>
#include <yarp_condition.h>
#include <yarp_action.h>
#include <thread> // std::this_thread::sleep_for
#include <chrono> // std::chrono::seconds
#include <yarp/os/LogStream.h>
#include <behaviortree_cpp_v3/bt_factory.h>
#include <behaviortree_cpp/bt_factory.h>

#include <behaviortree_cpp_v3/loggers/bt_cout_logger.h>
#include <behaviortree_cpp_v3/loggers/bt_minitrace_logger.h>
#include <behaviortree_cpp_v3/loggers/bt_file_logger.h>
#include <behaviortree_cpp/loggers/bt_cout_logger.h>
#include <behaviortree_cpp/loggers/bt_minitrace_logger.h>
#include <behaviortree_cpp/loggers/bt_file_logger.h>

#include <yarp/os/Network.h>
#include <yarp/os/Port.h>
Expand Down
2 changes: 1 addition & 1 deletion bt_server/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ target_link_libraries(yarp_bt_nodes
YARP::YARP_os
YARP::YARP_init
ament_index_cpp::ament_index_cpp
BT::behaviortree_cpp_v3
BT::behaviortree_cpp
skill_interface)
2 changes: 1 addition & 1 deletion bt_server/lib/yarp_action.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


#include <yarp_node.h>
#include <behaviortree_cpp_v3/action_node.h>
#include <behaviortree_cpp/action_node.h>

#include <string>
#include <future>
Expand Down
2 changes: 1 addition & 1 deletion bt_server/lib/yarp_condition.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include <yarp_node.h>
#include <string>
#include <behaviortree_cpp_v3/condition_node.h>
#include <behaviortree_cpp/condition_node.h>

class YARPCondition : public ConditionNode, public YARPNode
{
Expand Down
2 changes: 1 addition & 1 deletion bt_server/lib/yarp_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


#include <yarp_node.h>
#include <behaviortree_cpp_v3/leaf_node.h>
#include <behaviortree_cpp/leaf_node.h>
#include <Skill_request.h>
#include <iostream>
#include <yarp/os/RpcClient.h>
Expand Down
2 changes: 1 addition & 1 deletion bt_server/lib/yarp_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#pragma once

#include <behaviortree_cpp_v3/action_node.h>
#include <behaviortree_cpp/action_node.h>
#include <yarp/os/RpcClient.h>
#include <Skill_request.h>

Expand Down
12 changes: 6 additions & 6 deletions bt_server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
*/

#ifdef ZMQ_FOUND
#include "behaviortree_cpp_v3/loggers/bt_zmq_publisher.h"
#include "behaviortree_cpp/loggers/bt_zmq_publisher.h"
#endif

#include <iostream>
#include <behaviortree_cpp_v3/behavior_tree.h>
#include <behaviortree_cpp/behavior_tree.h>
#include <yarp_condition.h>
#include <yarp_action.h>
#include <thread> // std::this_thread::sleep_for
#include <chrono> // std::chrono::seconds
#include <yarp/os/LogStream.h>
#include <behaviortree_cpp_v3/bt_factory.h>
#include <behaviortree_cpp/bt_factory.h>

#include <behaviortree_cpp_v3/loggers/bt_cout_logger.h>
#include <behaviortree_cpp_v3/loggers/bt_minitrace_logger.h>
#include <behaviortree_cpp_v3/loggers/bt_file_logger.h>
#include <behaviortree_cpp/loggers/bt_cout_logger.h>
#include <behaviortree_cpp/loggers/bt_minitrace_logger.h>
#include <behaviortree_cpp/loggers/bt_file_logger.h>

#include <yarp/os/Network.h>
#include <yarp/os/Port.h>
Expand Down

0 comments on commit e7fed36

Please sign in to comment.