Skip to content

Commit d03fe0c

Browse files
authored
Merge pull request #47 from AprilRobotics/wxm-prepare-release
Prepare for release (3.1) and fix some catkin_lint errors
2 parents 92429aa + 2a7cdc9 commit d03fe0c

File tree

5 files changed

+49
-30
lines changed

5 files changed

+49
-30
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
This is a Robot Operating System (ROS) wrapper of the [AprilTag 3 visual fiducial detector](https://april.eecs.umich.edu/software/apriltag.html). For details and tutorials, please see the [ROS wiki](http://wiki.ros.org/apriltag_ros).
44

5-
This wrapper depends on the latest release of the [AprilTag library](https://github.com/AprilRobotics/apriltag).
5+
This wrapper depends on the latest release of the [AprilTag library](https://github.com/AprilRobotics/apriltag). You can clone the upstream repository into your catkin workspace in order to build it.
66

77
**Authors**: Danylo Malyuta, Wolfgang Merkt
8+
89
**Maintainer**: [Danylo Malyuta](mailto:danylo.malyuta@gmail.com) (NASA Jet Propulsion Laboratory, California Institute of Technology), [Wolfgang Merkt](https://github.com/wxmerkt)
910

1011
## Contributing

apriltag_ros/CMakeLists.txt

Lines changed: 45 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ cmake_minimum_required(VERSION 2.8.3)
22
project(apriltag_ros)
33

44
find_package(catkin REQUIRED COMPONENTS
5+
cmake_modules
6+
cv_bridge
57
geometry_msgs
6-
image_transport
78
image_geometry
9+
image_transport
10+
message_generation
11+
nodelet
12+
pluginlib
813
roscpp
914
sensor_msgs
1015
std_msgs
11-
message_generation
12-
cv_bridge
1316
tf
14-
cmake_modules
15-
nodelet
16-
pluginlib
1717
)
1818

1919
find_package(Eigen3 REQUIRED)
2020
find_package(OpenCV REQUIRED)
2121

2222
find_package(PkgConfig)
2323
pkg_search_module(apriltag REQUIRED apriltag)
24-
include_directories(${apriltag_INCLUDE_DIRS}/apriltag)
24+
set(apriltag_INCLUDE_DIRS "${apriltag_INCLUDE_DIRS}/apriltag")
2525
link_directories(${apriltag_LIBDIR})
2626

2727
# Set the build type. Options are:
@@ -33,23 +33,23 @@ link_directories(${apriltag_LIBDIR})
3333
# set(CMAKE_BUILD_TYPE Release)
3434

3535
set(CMAKE_CXX_STANDARD 11)
36-
37-
# add_definitions(-Wall -O3)
38-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -funsafe-loop-optimizations -fsee -funroll-loops -fno-math-errno -funsafe-math-optimizations -ffinite-math-only -fno-signed-zeros ")
39-
40-
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86_64 OR x86_32)
41-
#message("enabling msse2 for x86_64 or x86_32 architecture")
42-
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -msse2 ")
43-
endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86_64 OR x86_32)
44-
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES arm)
45-
message("enabling -mfpu=neon -mfloat-abi=softfp for ARM architecture")
46-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a -mcpu=cortex-a9 -mfpu=neon -mtune=cortex-a9 -mvectorize-with-neon-quad -ffast-math ")
47-
endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES arm)
36+
add_compile_options("-O3" "-funsafe-loop-optimizations" "-fsee" "-funroll-loops" "-fno-math-errno" "-funsafe-math-optimizations" "-ffinite-math-only" "-fno-signed-zeros")
37+
38+
# Note: These options have been turned off to allow for binary releases -
39+
# in local builds, they can be reactivated to achieve higher performance.
40+
# if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64" OR "x86_32")
41+
# message("enabling msse2 for x86_64 or x86_32 architecture")
42+
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -msse2 ")
43+
# endif()
44+
# if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")
45+
# message("enabling -mfpu=neon -mfloat-abi=softfp for ARM architecture")
46+
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a -mcpu=cortex-a9 -mfpu=neon -mtune=cortex-a9 -mvectorize-with-neon-quad -ffast-math ")
47+
# endif()
4848

4949
add_message_files(
5050
FILES
51-
AprilTagDetectionArray.msg
5251
AprilTagDetection.msg
52+
AprilTagDetectionArray.msg
5353
)
5454

5555
add_service_files(
@@ -59,16 +59,31 @@ add_service_files(
5959

6060
generate_messages(
6161
DEPENDENCIES
62-
std_msgs
6362
geometry_msgs
6463
sensor_msgs
64+
std_msgs
6565
)
6666

6767
catkin_package(
6868
INCLUDE_DIRS include
69-
CATKIN_DEPENDS geometry_msgs image_transport roscpp sensor_msgs std_msgs message_runtime cv_bridge tf nodelet pluginlib
70-
DEPENDS OpenCV apriltag
71-
LIBRARIES ${PROJECT_NAME}_common ${PROJECT_NAME}_continuous_detector ${PROJECT_NAME}_single_image_detector
69+
CATKIN_DEPENDS
70+
cv_bridge
71+
geometry_msgs
72+
image_transport
73+
message_runtime
74+
nodelet
75+
pluginlib
76+
roscpp
77+
sensor_msgs
78+
std_msgs
79+
tf
80+
DEPENDS
81+
OpenCV
82+
apriltag
83+
LIBRARIES
84+
${PROJECT_NAME}_common
85+
${PROJECT_NAME}_continuous_detector
86+
${PROJECT_NAME}_single_image_detector
7287
)
7388

7489
###########
@@ -79,6 +94,7 @@ include_directories(include
7994
${catkin_INCLUDE_DIRS}
8095
${EIGEN3_INCLUDE_DIRS}
8196
${OpenCV_INCLUDE_DIRS}
97+
${apriltag_INCLUDE_DIRS}
8298
)
8399

84100
add_library(${PROJECT_NAME}_common src/common_functions.cpp)
@@ -113,7 +129,7 @@ install(DIRECTORY include/${PROJECT_NAME}/
113129
FILES_MATCHING PATTERN "*.h"
114130
)
115131

116-
install(DIRECTORY launch config
132+
install(DIRECTORY config launch
117133
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
118134
)
119135
install(FILES nodelet_plugins.xml
@@ -123,11 +139,13 @@ install(FILES nodelet_plugins.xml
123139
install(TARGETS
124140
${PROJECT_NAME}_common
125141
${PROJECT_NAME}_continuous_detector
126-
${PROJECT_NAME}_single_image_detector
127142
${PROJECT_NAME}_continuous_node
128-
${PROJECT_NAME}_single_image_server_node
129143
${PROJECT_NAME}_single_image_client_node
144+
${PROJECT_NAME}_single_image_detector
145+
${PROJECT_NAME}_single_image_server_node
130146
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
131147
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
132148
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
133149
)
150+
151+
install(PROGRAMS scripts/analyze_image DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

apriltag_ros/include/apriltag_ros/common_functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#include <sensor_msgs/image_encodings.h>
6363
#include <tf/transform_broadcaster.h>
6464

65-
#include "apriltag.h"
65+
#include <apriltag.h>
6666

6767
#include "apriltag_ros/AprilTagDetection.h"
6868
#include "apriltag_ros/AprilTagDetectionArray.h"

apriltag_ros/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package>
33
<name>apriltag_ros</name>
4-
<version>2.0.0</version>
4+
<version>3.1.0</version>
55
<description>
66
A ROS wrapper of the AprilTag 3 visual fiducial detection
77
algorithm. Provides full access to the core AprilTag 3 algorithm's

0 commit comments

Comments
 (0)