Skip to content

Commit 3439592

Browse files
committed
feat: Port to BehaviorTree.CPP v4
1 parent ebe445d commit 3439592

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
cmake_minimum_required(VERSION 3.5.1) # version on Ubuntu Trusty
22
project(behaviortree_ros)
33

4-
set(CMAKE_CXX_STANDARD 14)
4+
set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
77

88
######################################################
99

1010
set(ROS_DEPENDENCIES
1111
roscpp std_msgs
12-
behaviortree_cpp_v3
12+
behaviortree_cpp
1313
actionlib_msgs
1414
actionlib
1515
message_generation)

include/behaviortree_ros/bt_action_node.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#ifndef BEHAVIOR_TREE_BT_ACTION_NODE_HPP_
1717
#define BEHAVIOR_TREE_BT_ACTION_NODE_HPP_
1818

19-
#include <behaviortree_cpp_v3/action_node.h>
20-
#include <behaviortree_cpp_v3/bt_factory.h>
19+
#include <behaviortree_cpp/action_node.h>
20+
#include <behaviortree_cpp/bt_factory.h>
2121
#include <ros/ros.h>
2222
#include <actionlib/client/simple_action_client.h>
2323

include/behaviortree_ros/bt_service_node.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#ifndef BEHAVIOR_TREE_BT_SERVICE_NODE_HPP_
1717
#define BEHAVIOR_TREE_BT_SERVICE_NODE_HPP_
1818

19-
#include <behaviortree_cpp_v3/action_node.h>
20-
#include <behaviortree_cpp_v3/bt_factory.h>
19+
#include <behaviortree_cpp/action_node.h>
20+
#include <behaviortree_cpp/bt_factory.h>
2121
#include <ros/ros.h>
2222
#include <ros/service_client.h>
2323

include/behaviortree_ros/loggers/rosout_logger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef BT_ROSOUT_LOGGER_H
22
#define BT_ROSOUT_LOGGER_H
33

4-
#include <behaviortree_cpp_v3/loggers/abstract_logger.h>
4+
#include <behaviortree_cpp/loggers/abstract_logger.h>
55
#include <ros/console.h>
66

77
namespace BT

package.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
<build_depend>roscpp</build_depend>
1515
<build_depend>std_msgs</build_depend>
16-
<build_depend>behaviortree_cpp_v3</build_depend>
16+
<build_depend>behaviortree_cpp</build_depend>
1717
<build_depend>actionlib</build_depend>
1818
<build_depend>actionlib_msgs</build_depend>
1919

2020
<run_depend>roscpp</run_depend>
2121
<run_depend>std_msgs</run_depend>
22-
<run_depend>behaviortree_cpp_v3</run_depend>
22+
<run_depend>behaviortree_cpp</run_depend>
2323
<run_depend>actionlib</run_depend>
2424
<run_depend>actionlib_msgs</run_depend>
2525

test/test_bt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ int main(int argc, char **argv)
196196
while( ros::ok() && (status == NodeStatus::IDLE || status == NodeStatus::RUNNING))
197197
{
198198
ros::spinOnce();
199-
status = tree.tickRoot();
199+
status = tree.tickOnce();
200200
std::cout << status << std::endl;
201201
ros::Duration sleep_time(0.01);
202202
sleep_time.sleep();

0 commit comments

Comments
 (0)