Skip to content

Commit 13682b4

Browse files
Merge pull request #54 from MarqRazz/plugin_export
Export plugins to share directory
2 parents 57fbeee + 717ff61 commit 13682b4

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

btcpp_ros2_samples/CMakeLists.txt

+9
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ install(TARGETS
5757
DESTINATION lib/${PROJECT_NAME}
5858
)
5959

60+
######################################################
61+
# INSTALL plugins for other packages to load
62+
63+
install(TARGETS
64+
sleep_plugin
65+
LIBRARY DESTINATION share/${PROJECT_NAME}/bt_plugins
66+
ARCHIVE DESTINATION share/${PROJECT_NAME}/bt_plugins
67+
RUNTIME DESTINATION share/${PROJECT_NAME}/bt_plugins
68+
)
6069

6170
ament_export_dependencies(behaviortree_ros2 btcpp_ros2_interfaces)
6271

btcpp_ros2_samples/src/sleep_action.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ void SleepAction::onHalt()
2828
}
2929

3030
// Plugin registration.
31-
// The class SleepAction will self register with name "Sleep".
32-
CreateRosNodePlugin(SleepAction, "Sleep");
31+
// The class SleepAction will self register with name "SleepAction".
32+
CreateRosNodePlugin(SleepAction, "SleepAction");

0 commit comments

Comments
 (0)