File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,15 @@ target_link_libraries(movebase_node_dyn PRIVATE ${BTCPP_LIBRARY})
33
33
target_compile_definitions (movebase_node_dyn PRIVATE BT_PLUGIN_EXPORT )
34
34
set_target_properties (movebase_node_dyn PROPERTIES LIBRARY_OUTPUT_DIRECTORY
35
35
${BTCPP_BIN_DESTINATION} )
36
+
37
+ ######################################################
38
+ # INSTALL plugins for other packages to load
39
+
40
+ INSTALL (TARGETS
41
+ crossdoor_nodes_dyn
42
+ dummy_nodes_dyn
43
+ movebase_node_dyn
44
+ LIBRARY DESTINATION share/${PROJECT_NAME} /bt_plugins
45
+ ARCHIVE DESTINATION share/${PROJECT_NAME} /bt_plugins
46
+ RUNTIME DESTINATION share/${PROJECT_NAME} /bt_plugins
47
+ )
Original file line number Diff line number Diff line change @@ -74,3 +74,11 @@ void CrossDoor::reset()
74
74
_door_locked = true ;
75
75
_pick_attempts = 0 ;
76
76
}
77
+
78
+ // This function must be implemented in the .cpp file to create
79
+ // a plugin that can be loaded at run-time
80
+ BT_REGISTER_NODES (factory)
81
+ {
82
+ static CrossDoor cross_door;
83
+ cross_door.registerNodes (factory);
84
+ }
You can’t perform that action at this time.
0 commit comments