Skip to content

Commit 964ff2f

Browse files
committed
Merge branch 'humble' of github.com:BehaviorTree/BehaviorTree.ROS2 into humble
2 parents ebb835c + 08ac611 commit 964ff2f

File tree

4 files changed

+37
-11
lines changed

4 files changed

+37
-11
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- humble
7+
8+
jobs:
9+
build_and_test:
10+
runs-on: ubuntu-latest
11+
env:
12+
ROS_DISTRO: ${{ matrix.ros_distro }}
13+
container:
14+
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
ros_distro: [humble]
19+
steps:
20+
- name: Build and run tests
21+
id: action-ros-ci
22+
uses: ros-tooling/[email protected]
23+
with:
24+
target-ros2-distro: ${{ matrix.ros_distro }}
25+
- uses: actions/upload-artifact@v1
26+
with:
27+
name: colcon-logs
28+
path: ros_ws/log

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# BehaviorTree.ROS2
2+
[![Test](https://github.com/BehaviorTree/BehaviorTree.ROS2/actions/workflows/test.yml/badge.svg)](https://github.com/BehaviorTree/BehaviorTree.ROS2/actions/workflows/test.yml)
23

34
This repository contains useful wrappers to use ROS2 and BehaviorTree.CPP together.
45

@@ -11,8 +12,8 @@ In particular, it provides a standard way to implement:
1112

1213
Our main goals are:
1314

14-
- to minimize the amount of bolierplate.
15-
- to make asynchonous Actions non-blocking.
15+
- to minimize the amount of boilerplate.
16+
- to make asynchronous Actions non-blocking.
1617

1718
Note that this library is compatible **only** with:
1819

@@ -27,6 +28,6 @@ wrap your Nodes into plugins that can be loaded at run-time.
2728

2829
A lot of code is either inspired or copied from [Nav2](https://navigation.ros.org/).
2930

30-
To this reason we retain the same license and copyright.
31+
For this reason, we retain the same license and copyright.
3132

3233

behaviortree_ros2/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<buildtool_depend>ament_cmake</buildtool_depend>
1313

14+
<depend>libboost-dev</depend>
1415
<depend>rclcpp</depend>
1516
<depend>rclcpp_action</depend>
1617
<depend>behaviortree_cpp</depend>

btcpp_ros2_samples/src/subscriber_test.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,12 @@ int main(int argc, char **argv)
5252
params.default_port_value = "btcpp_string";
5353
factory.registerNodeType<ReceiveString>("ReceiveString", params);
5454

55+
auto tree = factory.createTreeFromText(xml_text);
56+
5557
while(rclcpp::ok())
5658
{
57-
auto tree = factory.createTreeFromText(xml_text);
58-
for(int i=0; i<10; i++)
59-
{
60-
tree.tickWhileRunning();
61-
std::this_thread::sleep_for(std::chrono::milliseconds(100));
62-
}
63-
std::this_thread::sleep_for(std::chrono::milliseconds(100));
59+
tree.tickWhileRunning();
6460
}
6561

6662
return 0;
67-
}
63+
}

0 commit comments

Comments
 (0)