Skip to content

Commit 5f41333

Browse files
mikaelarguedasDLu
authored andcommitted
update to use non deprecated pluginlib macro (#630)
* update to use non deprecated pluginlib macro * multiline version as well
1 parent 0b10dd7 commit 5f41333

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

clear_costmap_recovery/src/clear_costmap_recovery.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <vector>
4040

4141
//register this planner as a RecoveryBehavior plugin
42-
PLUGINLIB_DECLARE_CLASS(clear_costmap_recovery, ClearCostmapRecovery, clear_costmap_recovery::ClearCostmapRecovery, nav_core::RecoveryBehavior)
42+
PLUGINLIB_EXPORT_CLASS(clear_costmap_recovery::ClearCostmapRecovery, nav_core::RecoveryBehavior)
4343

4444
using costmap_2d::NO_INFORMATION;
4545

move_slow_and_clear/src/move_slow_and_clear.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
#include <pluginlib/class_list_macros.h>
3939
#include <costmap_2d/obstacle_layer.h>
4040

41-
PLUGINLIB_DECLARE_CLASS(move_slow_and_clear, MoveSlowAndClear, move_slow_and_clear::MoveSlowAndClear,
42-
nav_core::RecoveryBehavior)
41+
PLUGINLIB_EXPORT_CLASS(move_slow_and_clear::MoveSlowAndClear, nav_core::RecoveryBehavior)
4342

4443
namespace move_slow_and_clear
4544
{

navfn/src/navfn_ros.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include <pcl_conversions/pcl_conversions.h>
4444

4545
//register this planner as a BaseGlobalPlanner plugin
46-
PLUGINLIB_DECLARE_CLASS(navfn, NavfnROS, navfn::NavfnROS, nav_core::BaseGlobalPlanner)
46+
PLUGINLIB_EXPORT_CLASS(navfn::NavfnROS, nav_core::BaseGlobalPlanner)
4747

4848
namespace navfn {
4949

rotate_recovery/src/rotate_recovery.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include <pluginlib/class_list_macros.h>
3939

4040
//register this planner as a RecoveryBehavior plugin
41-
PLUGINLIB_DECLARE_CLASS(rotate_recovery, RotateRecovery, rotate_recovery::RotateRecovery, nav_core::RecoveryBehavior)
41+
PLUGINLIB_EXPORT_CLASS(rotate_recovery::RotateRecovery, nav_core::RecoveryBehavior)
4242

4343
namespace rotate_recovery {
4444
RotateRecovery::RotateRecovery(): global_costmap_(NULL), local_costmap_(NULL),

0 commit comments

Comments
 (0)