Skip to content

Commit

Permalink
fixed build and test for example behaviors (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeWrock authored Dec 6, 2024
1 parent 1f0f61b commit 6ee92c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/example_behaviors/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class ExampleSAM2Segmentation : public moveit_studio::behaviors::AsyncBehaviorBa
std::shared_future<tl::expected<bool, std::string>> future_;

};
} // namespace sam2_segmentation
} // namespace example_behaviors
2 changes: 1 addition & 1 deletion src/example_behaviors/src/example_sam2_segmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ namespace example_behaviors
}
};
}
} // namespace sam2_segmentation
} // namespace example_behaviors
2 changes: 2 additions & 0 deletions src/example_behaviors/test/test_behavior_plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6ee92c2

Please sign in to comment.