-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into develop/pr2
- Loading branch information
Showing
30 changed files
with
1,004 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(zdepth) | ||
|
||
include(ExternalProject) | ||
|
||
if("$ENV{ROS_DISTRO}" STRGREATER "kinetic") | ||
ExternalProject_Add( | ||
zdepth | ||
GIT_REPOSITORY https://github.com/catid/Zdepth.git | ||
GIT_TAG ac7c6d8e944d07be2404e5a1eaa04562595f3756 | ||
GIT_SHALLOW TRUE | ||
PATCH_COMMAND cat ${PROJECT_SOURCE_DIR}/fix_cmakelists.patch | patch -p1 | ||
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} | ||
INSTALL_COMMAND echo "install" | ||
) | ||
|
||
install(CODE "execute_process(COMMAND make install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/zdepth-prefix/src/zdepth-build)") | ||
else() | ||
install(CODE "message(WARNING \"Skipping zdepth install because ROS is too old\")") | ||
endif() |
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,50 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index b22b2e7..a4251af 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -61,7 +61,7 @@ include_directories(include) | ||
|
||
# zdepth library | ||
|
||
-add_library(zdepth STATIC ${SOURCE_FILES}) | ||
+add_library(zdepth SHARED ${SOURCE_FILES}) | ||
add_library(zdepth::zdepth ALIAS zdepth) | ||
|
||
target_link_libraries(zdepth PUBLIC zstd) | ||
@@ -80,10 +80,13 @@ target_link_libraries(zdepth_test PRIVATE zdepth) | ||
################################################################################ | ||
# Install | ||
|
||
-install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_PREFIX}) | ||
-install(FILES README.md DESTINATION ${CMAKE_INSTALL_PREFIX}) | ||
-install(DIRECTORY cmake include DESTINATION ${CMAKE_INSTALL_PREFIX}) | ||
-install(TARGETS zdepth EXPORT zdepth LIBRARY DESTINATION lib) | ||
+# install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_PREFIX}) | ||
+# install(FILES README.md DESTINATION ${CMAKE_INSTALL_PREFIX}) | ||
+install(FILES include/zdepth.hpp DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zdepth) | ||
+install(FILES tests/test_vectors.inl DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zdepth/tests) | ||
+install(TARGETS zdepth EXPORT zdepth | ||
+ ARCHIVE DESTINATION lib | ||
+ LIBRARY DESTINATION lib) | ||
|
||
################################################################################ | ||
# Generate zdepthConfig.cmake and zdepthConfigVersion.cmake for cmake projects | ||
diff --git a/zstd/CMakeLists.txt b/zstd/CMakeLists.txt | ||
index 5869d4d..f9339a3 100644 | ||
--- a/zstd/CMakeLists.txt | ||
+++ b/zstd/CMakeLists.txt | ||
@@ -19,10 +19,12 @@ include_directories(include src) | ||
################################################################################ | ||
# Targets | ||
|
||
-add_library(zstd ${ZSTD_SOURCE_FILES}) | ||
+add_library(zstd SHARED ${ZSTD_SOURCE_FILES}) | ||
target_include_directories(zstd PUBLIC | ||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" | ||
"$<INSTALL_INTERFACE:include>" | ||
) | ||
|
||
-install(TARGETS zstd EXPORT zdepth LIBRARY DESTINATION lib) | ||
+install(TARGETS zstd EXPORT zdepth | ||
+ ARCHIVE DESTINATION lib | ||
+ LIBRARY DESTINATION lib) |
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,17 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>zdepth</name> | ||
<version>0.0.0</version> | ||
<description>The zdepth package</description> | ||
|
||
<maintainer email="shingogo.5511@gmail.com">Shingo Kitagawa</maintainer> | ||
|
||
<license>BSD</license> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
|
||
|
||
<export> | ||
<build_type>cmake</build_type> | ||
</export> | ||
</package> |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
dialogflow==1.1.1 | ||
google-api-core[grpc]==1.33.0 | ||
grpcio-status==1.48.1 | ||
googleapis-common-protos[grpc]==1.56.2 | ||
protobuf==3.20.1 # fix Could not find a version that matches protobuf<4.0.0dev,<5.0.0dev,>=3.15.0,>=3.20.1,>=4.21.3 (from google-api-core[grpc]==1.33.1->dialogflow==1.1.1->-r requirements.in (line 1)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(respeaker_ros) | ||
|
||
find_package(catkin REQUIRED COMPONENTS dynamic_reconfigure) | ||
find_package(catkin REQUIRED COMPONENTS | ||
catkin_virtualenv | ||
dynamic_reconfigure | ||
) | ||
|
||
generate_dynamic_reconfigure_options( | ||
cfg/Respeaker.cfg | ||
) | ||
|
||
catkin_package() | ||
|
||
if($ENV{ROS_DISTRO} STRGREATER "melodic") | ||
catkin_generate_virtualenv( | ||
PYTHON_INTERPRETER python3 | ||
) | ||
else() | ||
catkin_generate_virtualenv( | ||
PYTHON_INTERPRETER python2 | ||
) | ||
endif() | ||
|
||
install(DIRECTORY config launch | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
USE_SOURCE_PERMISSIONS) | ||
install(FILES requirements.txt | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
) | ||
|
||
file(GLOB PYTHON_SCRIPTS scripts/*.py) | ||
catkin_install_python(PROGRAMS ${PYTHON_SCRIPTS} | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/scripts/) | ||
|
||
if(CATKIN_ENABLE_TESTING) | ||
find_package(rostest REQUIRED) | ||
find_package(roslaunch REQUIRED) | ||
add_rostest(test/sample_respeaker.test) | ||
add_rostest(test/sample_respeaker.test | ||
DEPENDENCIES ${PROJECT_NAME}_generate_virtualenv | ||
) | ||
roslaunch_add_file_check(launch/sample_respeaker.launch) | ||
endif() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SpeechRecognition==3.8.1 |
Empty file.
Oops, something went wrong.