-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!!!!!!!!!!!!!!!!!!!!!!!!!!!Users need to remove: dpkg -r astrobee0 && dpkg -r libalvar2 && dpkg -r libopenmvg1 && dpkg -r libdbow21 && dpkg -r libdbowdlib1 && dpkg -r libopencv3.3.1 and re-do the install setup!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * Starting to update the marker tracking * Compiles with OpenCV4 * Now Astrobee works * Clean up references to old OpenCV find cmake path * Cleaned up * Set 4.2.0 version * Set opencv back on list of thirdparty, now installed in /usr * Fixed gazebo parameter passing bug in xacro and allowed using ns bsharp by deleting hard-coded assumption of bsharp in astrobee_gazebo * install newer ar_track_alvar instead of alvar * compiling in ubuntu 20.04 with full opencv * reverting sim changes * fixing ar-track-alvar install * add new alvar libs to gitignore * patch fixes cmake error * reverting sim changes not related to this PR * minimal opencv install of only xfeatures2d * fixing astrobee dependencies * Add debian build configuration for ar-track-alvar-msgs * Remove postinst and postrm files from alvar-msgs These files won't work when installing on the robots * Add debian build configuration files for ar-track-alvar * Remove postinst and postrm from alvar These files won't work on the robots * Remove use of bloom-generate Pretty cool tool but not the best option in the context of the robots and compilation for armhf * Remove .dirs files since dh_install is enough * Update opencv install files Using arch-specific files since there is no expansion support in compat 9. Also I don't want to make the install file an executable. * Remove old alvar script * Update opencv not-installed to include files from any architecture * Update openmvg debian control files * Changelog now reflects new patch * Removing unnecessary dependency to save space on the robots * Upgrade dbow2 to OpenCV 4 * Increase version to reflect opencv4 upgrade * Add our custom CMake modules This may be a temporal thing if we decide to put back this change into the nodes that require it * fix gen hugin script for ubuntu 20 * remove ros-pcl dependency * Update remove_pcl patch * fix hugin api read pto * fixes from review * adding packages to install list * change install script to be clear we're not installing the entire opencv * reducing the not-install list * changing cmake name to make it clearer; didn't want to add an extra line to the cmake on all the opencv4 dependencies * fixes from running docker --------- Co-authored-by: Ana C. Huaman Quispe <[email protected]> Co-authored-by: Ruben Garcia <[email protected]>
- Loading branch information
1 parent
ca223f5
commit 9964356
Showing
107 changed files
with
690 additions
and
1,248 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
|
||
# Find OpenCV installation | ||
find_package(OpenCV 4.0 REQUIRED) | ||
|
||
|
||
list(APPEND OpenCV_LIB_COMPONENTS "opencv_xfeatures2d") | ||
|
||
if(NOT CMAKE_VERSION VERSION_LESS "2.8.11") | ||
# Target property INTERFACE_INCLUDE_DIRECTORIES available since 2.8.11: | ||
# * http://www.cmake.org/cmake/help/v2.8.11/cmake.html#prop_tgt:INTERFACE_INCLUDE_DIRECTORIES | ||
foreach(__component ${OpenCV_LIB_COMPONENTS}) | ||
if(TARGET ${__component}) | ||
set_target_properties( | ||
${__component} | ||
PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${OpenCV_INCLUDE_DIRS}" | ||
) | ||
endif() | ||
endforeach() | ||
endif() | ||
|
||
# ============================================================== | ||
# Form list of modules (components) to find | ||
# ============================================================== | ||
if(NOT OpenCV_FIND_COMPONENTS) | ||
set(OpenCV_FIND_COMPONENTS ${OpenCV_LIB_COMPONENTS}) | ||
list(REMOVE_ITEM OpenCV_FIND_COMPONENTS opencv_java) | ||
if(GTest_FOUND OR GTEST_FOUND) | ||
list(REMOVE_ITEM OpenCV_FIND_COMPONENTS opencv_ts) | ||
endif() | ||
endif() | ||
|
||
set(OpenCV_WORLD_COMPONENTS ) | ||
|
||
# expand short module names and see if requested components exist | ||
foreach(__cvcomponent ${OpenCV_FIND_COMPONENTS}) | ||
# Store the name of the original component so we can set the | ||
# OpenCV_<component>_FOUND variable which can be checked by the user. | ||
set (__original_cvcomponent ${__cvcomponent}) | ||
if(NOT __cvcomponent MATCHES "^opencv_") | ||
set(__cvcomponent opencv_${__cvcomponent}) | ||
endif() | ||
list(FIND OpenCV_LIB_COMPONENTS ${__cvcomponent} __cvcomponentIdx) | ||
if(__cvcomponentIdx LESS 0) | ||
if(_OpenCV_HANDLE_COMPONENTS_MANUALLY) | ||
# Either the component is required or the user did not set any components at | ||
# all. In the latter case, the OpenCV_FIND_REQUIRED_<component> variable | ||
# will not be defined since it is not set by this config. So let's assume | ||
# the implicitly set components are always required. | ||
if(NOT DEFINED OpenCV_FIND_REQUIRED_${__original_cvcomponent} OR | ||
OpenCV_FIND_REQUIRED_${__original_cvcomponent}) | ||
message(FATAL_ERROR "${__cvcomponent} is required but was not found") | ||
elseif(NOT OpenCV_FIND_QUIETLY) | ||
# The component was marked as optional using OPTIONAL_COMPONENTS | ||
message(WARNING "Optional component ${__cvcomponent} was not found") | ||
endif() | ||
endif(_OpenCV_HANDLE_COMPONENTS_MANUALLY) | ||
#indicate that module is NOT found | ||
string(TOUPPER "${__cvcomponent}" __cvcomponentUP) | ||
set(${__cvcomponentUP}_FOUND "${__cvcomponentUP}_FOUND-NOTFOUND") | ||
set(OpenCV_${__original_cvcomponent}_FOUND FALSE) | ||
else() | ||
# Not using list(APPEND) here, because OpenCV_LIBS may not exist yet. | ||
# Also not clearing OpenCV_LIBS anywhere, so that multiple calls | ||
# to find_package(OpenCV) with different component lists add up. | ||
set(OpenCV_LIBS ${OpenCV_LIBS} "${__cvcomponent}") | ||
#indicate that module is found | ||
string(TOUPPER "${__cvcomponent}" __cvcomponentUP) | ||
set(${__cvcomponentUP}_FOUND 1) | ||
set(OpenCV_${__original_cvcomponent}_FOUND TRUE) | ||
endif() | ||
if(OpenCV_SHARED AND ";${OpenCV_WORLD_COMPONENTS};" MATCHES ";${__cvcomponent};" AND NOT TARGET ${__cvcomponent}) | ||
get_target_property(__implib_dbg opencv_world IMPORTED_IMPLIB_DEBUG) | ||
get_target_property(__implib_release opencv_world IMPORTED_IMPLIB_RELEASE) | ||
get_target_property(__location_dbg opencv_world IMPORTED_LOCATION_DEBUG) | ||
get_target_property(__location_release opencv_world IMPORTED_LOCATION_RELEASE) | ||
get_target_property(__include_dir opencv_world INTERFACE_INCLUDE_DIRECTORIES) | ||
add_library(${__cvcomponent} SHARED IMPORTED) | ||
set_target_properties(${__cvcomponent} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${__include_dir}") | ||
if(__location_dbg) | ||
set_property(TARGET ${__cvcomponent} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
set_target_properties(${__cvcomponent} PROPERTIES | ||
IMPORTED_IMPLIB_DEBUG "${__implib_dbg}" | ||
IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG "" | ||
IMPORTED_LOCATION_DEBUG "${__location_dbg}" | ||
) | ||
endif() | ||
if(__location_release) | ||
set_property(TARGET ${__cvcomponent} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) | ||
set_target_properties(${__cvcomponent} PROPERTIES | ||
IMPORTED_IMPLIB_RELEASE "${__implib_release}" | ||
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "" | ||
IMPORTED_LOCATION_RELEASE "${__location_release}" | ||
) | ||
endif() | ||
endif() | ||
if(TARGET ${__cvcomponent}) | ||
ocv_map_imported_config(${__cvcomponent}) | ||
endif() | ||
endforeach() | ||
|
||
if(__remap_warnings AND NOT OpenCV_FIND_QUIETLY) | ||
message("OpenCV: configurations remap warnings:\n${__remap_warnings}OpenCV: Check variable OPENCV_MAP_IMPORTED_CONFIG=${OPENCV_MAP_IMPORTED_CONFIG}") | ||
endif() | ||
|
||
# find_package(OpenCV 4 REQUIRED PATHS ${OpenCV_DIR_LOCAL}) | ||
set(OpenCV_LIBRARIES ${OpenCV_LIBS}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.