-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tested with the new folders structure
added changelog
- Loading branch information
Showing
4 changed files
with
61 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
zlib_portmonitor {#master} | ||
------------------ | ||
|
||
### PortMonitors | ||
|
||
* added new portmonitor `depthimage_compression_zlib` which uses zlib library to compress/decompress (lossless) depth images through the network |
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
74 changes: 47 additions & 27 deletions
74
src/portmonitors/depthimage_compression_zlib/CMakeLists.txt
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,37 +1,57 @@ | ||
# Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT) | ||
# Copyright (C) 2006-2021 Istituto Italiano di Tecnologia (IIT) | ||
# All rights reserved. | ||
# | ||
# This software may be modified and distributed under the terms of the | ||
# BSD-3-Clause license. See the accompanying LICENSE file for details. | ||
|
||
yarp_prepare_plugin(zlib TYPE ZlibMonitorObject | ||
INCLUDE zlibPortmonitor.h | ||
CATEGORY portmonitor | ||
DEPENDS "ENABLE_yarpcar_portmonitor;YARP_HAS_ZLIB") | ||
yarp_prepare_plugin(depthimage_compression_zlib | ||
TYPE ZlibMonitorObject | ||
INCLUDE zlibPortmonitor.h | ||
CATEGORY portmonitor | ||
DEPENDS "ENABLE_yarpcar_portmonitor;YARP_HAS_ZLIB" | ||
) | ||
|
||
if(NOT SKIP_zlib) | ||
yarp_add_plugin(yarp_pm_zlib) | ||
|
||
target_sources(yarp_pm_zlib PRIVATE zlibPortmonitor.cpp | ||
zlibPortmonitor.h) | ||
|
||
target_link_libraries(yarp_pm_zlib PRIVATE YARP::YARP_os | ||
YARP::YARP_sig) | ||
list(APPEND YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS YARP_os | ||
YARP_sig) | ||
|
||
target_include_directories(yarp_pm_zlib SYSTEM PRIVATE ${ZLIB_INCLUDE_DIRS}) | ||
target_link_libraries(yarp_pm_zlib PRIVATE ${ZLIB_LIBRARIES}) | ||
# list(APPEND YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS ZLIB) (not using targets) | ||
if(SKIP_depthimage_compression_zlib) | ||
return() | ||
endif() | ||
|
||
yarp_install(TARGETS yarp_pm_zlib | ||
EXPORT YARP_${YARP_PLUGIN_MASTER} | ||
COMPONENT ${YARP_PLUGIN_MASTER} | ||
LIBRARY DESTINATION ${YARP_DYNAMIC_PLUGINS_INSTALL_DIR} | ||
ARCHIVE DESTINATION ${YARP_STATIC_PLUGINS_INSTALL_DIR} | ||
YARP_INI DESTINATION ${YARP_PLUGIN_MANIFESTS_INSTALL_DIR}) | ||
yarp_add_plugin(yarp_pm_depthimage_compression_zlib) | ||
|
||
target_sources(yarp_pm_depthimage_compression_zlib | ||
PRIVATE | ||
zlibPortmonitor.cpp | ||
zlibPortmonitor.h | ||
) | ||
|
||
target_link_libraries(yarp_pm_depthimage_compression_zlib | ||
PRIVATE | ||
YARP::YARP_os | ||
YARP::YARP_sig | ||
) | ||
list(APPEND YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS | ||
YARP_os | ||
YARP_sig | ||
) | ||
|
||
target_include_directories(yarp_pm_depthimage_compression_zlib | ||
SYSTEM PRIVATE | ||
${ZLIB_INCLUDE_DIRS} | ||
) | ||
target_link_libraries(yarp_pm_depthimage_compression_zlib | ||
PRIVATE | ||
${ZLIB_LIBRARIES} | ||
) | ||
# list(APPEND YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS ZLIB) (not using targets) | ||
|
||
yarp_install( | ||
TARGETS yarp_pm_depthimage_compression_zlib | ||
EXPORT YARP_${YARP_PLUGIN_MASTER} | ||
COMPONENT ${YARP_PLUGIN_MASTER} | ||
LIBRARY DESTINATION ${YARP_DYNAMIC_PLUGINS_INSTALL_DIR} | ||
ARCHIVE DESTINATION ${YARP_STATIC_PLUGINS_INSTALL_DIR} | ||
YARP_INI DESTINATION ${YARP_PLUGIN_MANIFESTS_INSTALL_DIR} | ||
) | ||
|
||
set(YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS ${YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS} PARENT_SCOPE) | ||
|
||
set_property(TARGET yarp_pm_zlib PROPERTY FOLDER "Plugins/Port Monitor") | ||
endif() | ||
set_property(TARGET yarp_pm_depthimage_compression_zlib PROPERTY FOLDER "Plugins/Port Monitor") |
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,9 @@ | ||
|
||
zlib_portmonitor plugin | ||
depthimage_compression_zlib_portmonitor plugin | ||
====================================================================== | ||
Portmonitor plugin for compression and decompression of generic data using zlib library. | ||
Portmonitor plugin for compression and decompression of depth images using zlib library. | ||
|
||
Usage: | ||
----- | ||
|
||
yarp connect /depthCamera/depthImage:o /view tcp+send.portmonitor+file.depthimage_compression_zlib+recv.portmonitor+file.depthimage_compression_zlib+type.dll |