diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f16f6b8..48a081f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ find_package(catkin REQUIRED COMPONENTS # Optional components find_package(costmap_2d) find_package(octomap_msgs) -find_package(apriltags2_ros) +find_package(apriltag_ros) find_package(rviz) find_package(find_object_2d) @@ -247,18 +247,18 @@ SET(Libraries ADD_DEFINITIONS("-DWITH_OCTOMAP_MSGS") ENDIF(octomap_msgs_FOUND) -# If apriltags2_ros is found, add definition -IF(apriltags2_ros_FOUND) -MESSAGE(STATUS "WITH apriltags2_ros") +# If apriltag_ros is found, add definition +IF(apriltag_ros_FOUND) +MESSAGE(STATUS "WITH apriltag_ros") include_directories( - ${apriltags2_ros_INCLUDE_DIRS} + ${apriltag_ros_INCLUDE_DIRS} ) SET(Libraries - ${apriltags2_ros_LIBRARIES} + ${apriltag_ros_LIBRARIES} ${Libraries} ) -ADD_DEFINITIONS("-DWITH_APRILTAGS2_ROS") -ENDIF(apriltags2_ros_FOUND) +ADD_DEFINITIONS("-DWITH_APRILTAG_ROS") +ENDIF(apriltag_ros_FOUND) # If rviz is found, add plugins IF(rviz_FOUND) diff --git a/include/rtabmap_ros/CoreWrapper.h b/include/rtabmap_ros/CoreWrapper.h index 46a8630f..b8a18a1a 100644 --- a/include/rtabmap_ros/CoreWrapper.h +++ b/include/rtabmap_ros/CoreWrapper.h @@ -64,8 +64,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #endif -#ifdef WITH_APRILTAGS2_ROS -#include +#ifdef WITH_APRILTAG_ROS +#include #endif #include @@ -139,8 +139,8 @@ private: void userDataAsyncCallback(const rtabmap_ros::UserDataConstPtr & dataMsg); void globalPoseAsyncCallback(const geometry_msgs::PoseWithCovarianceStampedConstPtr & globalPoseMsg); void gpsFixAsyncCallback(const sensor_msgs::NavSatFixConstPtr & gpsFixMsg); -#ifdef WITH_APRILTAGS2_ROS - void tagDetectionsAsyncCallback(const apriltags2_ros::AprilTagDetectionArray & tagDetections); +#ifdef WITH_APRILTAG_ROS + void tagDetectionsAsyncCallback(const apriltag_ros::AprilTagDetectionArray & tagDetections); #endif void imuAsyncCallback(const sensor_msgs::ImuConstPtr & tagDetections); diff --git a/launch/tests/test_apriltags2.launch b/launch/tests/test_apriltag_ros.launch similarity index 74% rename from launch/tests/test_apriltags2.launch rename to launch/tests/test_apriltag_ros.launch index 9b3a20c9..81acbf16 100644 --- a/launch/tests/test_apriltags2.launch +++ b/launch/tests/test_apriltag_ros.launch @@ -1,11 +1,11 @@ - + - + @@ -13,10 +13,10 @@ - - + + - + diff --git a/src/CoreWrapper.cpp b/src/CoreWrapper.cpp index 7f694cc6..699b27e2 100644 --- a/src/CoreWrapper.cpp +++ b/src/CoreWrapper.cpp @@ -650,7 +650,7 @@ void CoreWrapper::onInit() userDataAsyncSub_ = nh.subscribe("user_data_async", 1, &CoreWrapper::userDataAsyncCallback, this); globalPoseAsyncSub_ = nh.subscribe("global_pose", 1, &CoreWrapper::globalPoseAsyncCallback, this); gpsFixAsyncSub_ = nh.subscribe("gps/fix", 1, &CoreWrapper::gpsFixAsyncCallback, this); -#ifdef WITH_APRILTAGS2_ROS +#ifdef WITH_APRILTAG_ROS tagDetectionsSub_ = nh.subscribe("tag_detections", 1, &CoreWrapper::tagDetectionsAsyncCallback, this); #endif imuSub_ = nh.subscribe("imu", 100, &CoreWrapper::imuAsyncCallback, this); @@ -1999,8 +1999,8 @@ void CoreWrapper::gpsFixAsyncCallback(const sensor_msgs::NavSatFixConstPtr & gps } } -#ifdef WITH_APRILTAGS2_ROS -void CoreWrapper::tagDetectionsAsyncCallback(const apriltags2_ros::AprilTagDetectionArray & tagDetections) +#ifdef WITH_APRILTAG_ROS +void CoreWrapper::tagDetectionsAsyncCallback(const apriltag_ros::AprilTagDetectionArray & tagDetections) { if(!paused_) {