Skip to content

Commit 62d628a

Browse files
committed
building fixes
1 parent 06497c7 commit 62d628a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

opennav_coverage/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.5)
22
project(opennav_coverage)
33

44
find_package(ament_cmake REQUIRED)
5+
find_package(ament_index_cpp REQUIRED)
56
find_package(rclcpp REQUIRED)
67
find_package(rclcpp_action REQUIRED)
78
find_package(rclcpp_lifecycle REQUIRED)
@@ -42,6 +43,7 @@ set(dependencies
4243
builtin_interfaces
4344
tf2_ros
4445
opennav_coverage_msgs
46+
ament_index_cpp
4547
)
4648

4749
add_library(${library_name} SHARED

opennav_coverage_bt/test/test_compute_coverage_path.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ TEST_F(ComputeCoveragePathActionTestFixture, test_tick)
141141

142142
// check if returned path is correct
143143
nav_msgs::msg::Path path;
144-
config_->blackboard->get<nav_msgs::msg::Path>("path", path);
144+
[[maybe_unused]] auto res = config_->blackboard->get("path", path);
145145
EXPECT_EQ(path.poses.size(), 2u);
146146
EXPECT_EQ(path.poses[0].pose.position.x, 0.0);
147147
EXPECT_EQ(path.poses[1].pose.position.x, 1.0);
148148

149149
// halt node so another goal can be sent
150-
tree_->rootNode()->halt();
150+
tree_->rootNode()->haltNode();
151151
EXPECT_EQ(tree_->rootNode()->status(), BT::NodeStatus::IDLE);
152152
}
153153

0 commit comments

Comments
 (0)