Skip to content

Commit 6ee92c2

Browse files
authored
fixed build and test for example behaviors (#39)
1 parent 1f0f61b commit 6ee92c2

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

src/example_behaviors/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ add_library(
3232
src/example_setup_mtc_wave_hand.cpp
3333
src/example_ndt_registration.cpp
3434
src/example_ransac_registration.cpp
35+
src/example_sam2_segmentation.cpp
3536
src/register_behaviors.cpp)
3637
target_include_directories(
3738
example_behaviors

src/example_behaviors/include/example_behaviors/example_sam2_segmentation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ class ExampleSAM2Segmentation : public moveit_studio::behaviors::AsyncBehaviorBa
6464
std::shared_future<tl::expected<bool, std::string>> future_;
6565

6666
};
67-
} // namespace sam2_segmentation
67+
} // namespace example_behaviors

src/example_behaviors/src/example_sam2_segmentation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ namespace example_behaviors
139139
}
140140
};
141141
}
142-
} // namespace sam2_segmentation
142+
} // namespace example_behaviors

src/example_behaviors/test/test_behavior_plugins.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ TEST(BehaviorTests, test_load_behavior_plugins)
4141
(void)factory.instantiateTreeNode("test_behavior_name", "ExampleNDTRegistration", BT::NodeConfiguration()));
4242
EXPECT_NO_THROW(
4343
(void)factory.instantiateTreeNode("test_behavior_name", "ExampleRANSACRegistration", BT::NodeConfiguration()));
44+
EXPECT_NO_THROW(
45+
(void)factory.instantiateTreeNode("test_behavior_name", "ExampleSAM2Segmentation", BT::NodeConfiguration()));
4446
}
4547

4648
int main(int argc, char** argv)

0 commit comments

Comments
 (0)