Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test
on:
pull_request:
push:
branches:
- humble

jobs:
build_and_test:
runs-on: ubuntu-latest
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
container:
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
strategy:
fail-fast: false
matrix:
ros_distro: [humble]
steps:
- name: Build and run tests
id: action-ros-ci
uses: ros-tooling/action-ros-ci@v0.3
with:
target-ros2-distro: ${{ matrix.ros_distro }}
- uses: actions/upload-artifact@v1
with:
name: colcon-logs
path: ros_ws/log
1 change: 1 addition & 0 deletions behaviortree_ros2/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>libboost-dev</depend>
<depend>rclcpp</depend>
<depend>rclcpp_action</depend>
<depend>behaviortree_cpp</depend>
Expand Down
4 changes: 2 additions & 2 deletions btcpp_ros2_samples/src/subscriber_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ReceiveString: public RosTopicSubNode<std_msgs::msg::String>
return {};
}

NodeStatus onTick(const std::shared_ptr<std_msgs::msg::String>& last_msg) override
NodeStatus onTick(const std::shared_ptr<std_msgs::msg::String> last_msg) override
{
if(last_msg) // empty if no new message received, since the last tick
{
Expand Down Expand Up @@ -60,4 +60,4 @@ int main(int argc, char **argv)
}

return 0;
}
}