From e7b5452cdaae025056c92e25b8da4ab770993bd6 Mon Sep 17 00:00:00 2001 From: Michael Wrock Date: Thu, 5 Dec 2024 23:02:48 -0800 Subject: [PATCH] fixed build and test for example behaviors --- src/example_behaviors/CMakeLists.txt | 1 + .../include/example_behaviors/example_sam2_segmentation.hpp | 2 +- src/example_behaviors/src/example_sam2_segmentation.cpp | 2 +- src/example_behaviors/test/test_behavior_plugins.cpp | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/example_behaviors/CMakeLists.txt b/src/example_behaviors/CMakeLists.txt index e5944160..2c7cd6a0 100644 --- a/src/example_behaviors/CMakeLists.txt +++ b/src/example_behaviors/CMakeLists.txt @@ -32,6 +32,7 @@ add_library( src/example_setup_mtc_wave_hand.cpp src/example_ndt_registration.cpp src/example_ransac_registration.cpp + src/example_sam2_segmentation.cpp src/register_behaviors.cpp) target_include_directories( example_behaviors diff --git a/src/example_behaviors/include/example_behaviors/example_sam2_segmentation.hpp b/src/example_behaviors/include/example_behaviors/example_sam2_segmentation.hpp index 1b738b10..dcbe8878 100644 --- a/src/example_behaviors/include/example_behaviors/example_sam2_segmentation.hpp +++ b/src/example_behaviors/include/example_behaviors/example_sam2_segmentation.hpp @@ -64,4 +64,4 @@ class ExampleSAM2Segmentation : public moveit_studio::behaviors::AsyncBehaviorBa std::shared_future> future_; }; -} // namespace sam2_segmentation +} // namespace example_behaviors diff --git a/src/example_behaviors/src/example_sam2_segmentation.cpp b/src/example_behaviors/src/example_sam2_segmentation.cpp index 7e6661fe..afa97777 100644 --- a/src/example_behaviors/src/example_sam2_segmentation.cpp +++ b/src/example_behaviors/src/example_sam2_segmentation.cpp @@ -139,4 +139,4 @@ namespace example_behaviors } }; } -} // namespace sam2_segmentation +} // namespace example_behaviors diff --git a/src/example_behaviors/test/test_behavior_plugins.cpp b/src/example_behaviors/test/test_behavior_plugins.cpp index 56dae5a8..d23a5b4e 100644 --- a/src/example_behaviors/test/test_behavior_plugins.cpp +++ b/src/example_behaviors/test/test_behavior_plugins.cpp @@ -41,6 +41,8 @@ TEST(BehaviorTests, test_load_behavior_plugins) (void)factory.instantiateTreeNode("test_behavior_name", "ExampleNDTRegistration", BT::NodeConfiguration())); EXPECT_NO_THROW( (void)factory.instantiateTreeNode("test_behavior_name", "ExampleRANSACRegistration", BT::NodeConfiguration())); + EXPECT_NO_THROW( + (void)factory.instantiateTreeNode("test_behavior_name", "ExampleSAM2Segmentation", BT::NodeConfiguration())); } int main(int argc, char** argv)