cmake_minimum_required(VERSION 2.8)
project(cmm)
# The syntax set...CACHE used below chooses a value while letting caller override it.
# Ref https://cmake.org/cmake/help/latest/variable/CMAKE_CXX_STANDARD.html
# set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard to be used")
# It would be cleaner to declare per-target target_compile_features
# and https://cmake.org/cmake/help/latest/manual/cmake-compile-features.7.html
# Eigen runs much much much faster when compiled in -O3.
# The line below cleanly ensure release builds have O3 optimization level.
add_compile_options("$<$<CONFIG:RELEASE>:-O3>")
if(CMAKE_VERSION VERSION_LESS "3.1")
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options("-std=c++11")
endif()
else()
set(CMAKE_CXX_STANDARD 11)
endif()
option(VERBOSE_RUNTIME "Set true to create a build with more run-time output." FALSE)
# Since in CMake-generated makefiles, make VERBOSE=1 means verbose
# *build*, renamed it to VERBOSE_RUNTIME. In C++ code it remains VERBOSE.
if(VERBOSE_RUNTIME)
add_definitions("-DVERBOSE")
endif()
# FIXME could find package eigen and declare that it's necessary only for tests.
# FIXME could find package eigen.
# FIXME could find boost components: boost_serialization boost_chrono boost_filesystem
# FIXME could find package sfml and declare that it's necessary only for tests.
include_directories(/usr/local/include/
/usr/include/eigen3
/usr/local/include/SFML
include/
/home/le_goff/Libraries/eigen-3.3.4)
FILE(GLOB_RECURSE HEADFILES "include/cmm/*.hpp")
FILE(GLOB_RECURSE SRCFILES "src/*cpp" "include/cmm/mcs_fct.hpp")
add_custom_target(headers SOURCES ${HEADFILES})
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(DEFAULT_NO_PARALLEL TRUE)
else(CMAKE_BUILD_TYPE STREQUAL Debug)
set(DEFAULT_NO_PARALLEL FALSE)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
option(NO_PARALLEL "If enabled, force sequential execution. Very useful for debugging. Enabled by default on debug build." ${DEFAULT_NO_PARALLEL})
#set(NO_PARALLEL TRUE CACHE BOOL "If enabled, force sequential execution. Very useful for debugging. Enabled by default on debug build." )
add_library(cmm SHARED ${SRCFILES})
if (NO_PARALLEL)
add_definitions("-DNO_PARALLEL")
else (NO_PARALLEL)
set(CMAKE_CXX_FLAGS "-fopenmp ${CMAKE_CXX_FLAGS}")
target_link_libraries(cmm tbb)
endif(NO_PARALLEL)
target_link_libraries(cmm boost_serialization boost_chrono boost_filesystem)
# The EXPORT option in install() and the install(EXPORT...) make cmm
# library available to other projects, ref
# https://gitlab.kitware.com/cmake/community/wikis/doc/tutorials/Exporting-and-Importing-Targets
install(TARGETS ${PROJECT_NAME} EXPORT cmm-targets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
install(EXPORT cmm-targets DESTINATION lib/cmm)
# Caller CMake project can use:
# add_library(cmm SHARED IMPORTED)
# set_property(TARGET cmm PROPERTY IMPORTED_LOCATION "${cmm_INSTALL_TREE}/lib/libcmm.so" )
# and be called like this:
# cmake -Dcmm_INSTALL_TREE=/some/path/ ...
#tools
#add_executable(load_archive tools/load_archive.cpp)iagmm
#target_link_libraries(load_archive cmm )
add_executable(gen_archive_stat tools/gen_archive_stat.cpp)
target_link_libraries(gen_archive_stat cmm yaml-cpp boost_serialization )
add_executable(gmm_loglikelihood tools/gmm_loglikelihood.cpp)
target_link_libraries(gmm_loglikelihood cmm yaml-cpp boost_serialization boost_system boost_filesystem)
#add_executable(batch_train_gmm tools/batch_train_gmm.cpp)
#target_link_libraries(batch_train_gmm cmm yaml-cpp boost_serialization boost_system)
add_executable(online_train_gmm tools/online_train_gmm.cpp)
target_link_libraries(online_train_gmm cmm yaml-cpp boost_serialization boost_system)
add_executable(yml_to_libsvm tools/yml_to_libsvm.cpp)
target_link_libraries(yml_to_libsvm cmm yaml-cpp boost_serialization boost_system)
add_executable(yml_to_data_labels tools/yml_to_data_labels.cpp)
target_link_libraries(yml_to_data_labels cmm yaml-cpp boost_serialization boost_system)
#examples
add_executable(mnist_batch example/mnist_batch.cpp)
target_link_libraries(mnist_batch cmm tbb yaml-cpp)
add_executable(eggholder_two_class_problem example/eggholder_two_class_problem.cpp)
target_link_libraries(eggholder_two_class_problem cmm tbb yaml-cpp)
####
option(BUILD_TESTS "Set true to compile some test executables." FALSE)
if(BUILD_TESTS)
find_package(OpenCV)
add_executable(test_1 test/test.cpp)
target_link_libraries(test_1 cmm yaml-cpp tbb sfml-window sfml-system sfml-graphics boost_serialization boost_system boost_chrono)
#add_executable(test_batch test/test_batch.cpp)
#target_link_libraries(test_batch cmm yaml-cpp tbb sfml-window sfml-system sfml-graphics boost_serialization boost_system boost_chrono)
#add_executable(test_false_samples test/test_false_samples.cpp)
#target_link_libraries(test_false_samples cmm yaml-cpp tbb sfml-window sfml-system sfml-graphics boost_serialization boost_system boost_chrono)
add_executable(multiclass_test test/multiclass_test.cpp)
target_link_libraries(multiclass_test cmm yaml-cpp tbb sfml-window sfml-system sfml-graphics boost_serialization boost_system boost_chrono)
add_executable(incrgmm_test test/incrgmm_test.cpp)
target_link_libraries(incrgmm_test cmm yaml-cpp tbb sfml-window sfml-system sfml-graphics boost_serialization boost_system boost_chrono)
add_executable(mnist_test test/mnist_test.cpp)
target_link_libraries(mnist_test tbb ${OpenCV_LIBRARIES})
#add_executable(mcs_test test/mcs_test.cpp)
#target_link_libraries(mcs_test cmm yaml-cpp.so)
#add_executable(test_mvn test/test_mvn.cpp)
#target_link_libraries(test_mvn cmm tbb)
#add_executable(test_em test/test_em.cpp)
#target_link_libraries(test_em cmm tbb sfml-window sfml-system sfml-graphics boost_serialization boost_system boost_chrono)
#add_executable(test_serial test/test_serial.cpp)
#target_link_libraries(test_serial cmm sfml-window sfml-system sfml-graphics boost_serialization)
endif()
####
message(STATUS "CMAKE_BUILD_TYPE is ${CMAKE_BUILD_TYPE}")
message(STATUS "VERBOSE_RUNTIME is ${VERBOSE_RUNTIME}")
message(STATUS "NO_PARALLEL is ${NO_PARALLEL}")
message(STATUS "BUILD_TESTS is ${BUILD_TESTS}")
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
为了解决其任务,机器人需要具有解释其感知的能力。 在视觉的情况下,这种解释特别困难,并且依赖于对场景结构的理解,至少在其任务和感觉运动能力的范围内。 能够根据自己的任务和能力构建和调整这种解释过程的机器人将突破机器人在非受控环境中所能达到的极限。 一种解决方案是为机器人提供过程来构建不特定于环境或情况的此类表示。 很多工作都集中在对象分割、识别和操作上。 鉴于可能的对象和环境范围广泛,仅根据其视觉外观定义对象具有挑战性。 因此,当前的工作对场景的结构进行了简化假设。 这种假设的一个例子是桌面假设,它假设物体位于平坦的表面上。 这样的假设降低了对象提取过程对假设成立的环境的适应性。 为了限制这样的假设,我们引入了一种探索方法,旨在识别场景中的可移动元素,而不考虑对象的概念。 通过使用交互式感知框架,我们旨在以最少的上下文特定假设引导环境表示的获取过程。 机器人系统构建了一个称为相关图的感知图,它指示当前场景的可移动部分。 在线训练分类器以预测每个区域的类别(可移动或不可移动)。 它还用于选择与之交互的区域,以最小化分类的不确定性。 引入了一个特定的分类器来满足这些需求:协作混合模型分类器
资源推荐
资源详情
资源评论
收起资源包目录
通过交互式感知从一组有限的假设中引导机器人生态感知 (490个子文件)
gmm.cpp 22KB
multiclass_test.cpp 12KB
incrgmm_test.cpp 11KB
test_false_samples.cpp 10KB
component.cpp 10KB
test.cpp 10KB
test_em.cpp 9KB
incr_gmm.cpp 9KB
test_batch.cpp 8KB
online_train_gmm.cpp 7KB
eggholder_two_class_problem.cpp 5KB
data.cpp 3KB
mnist_batch.cpp 3KB
gen_archive_stat.cpp 3KB
test_serial.cpp 3KB
mcs.cpp 3KB
gmm_loglikelihood.cpp 3KB
batch_train_gmm.cpp 1KB
mnist_test.cpp 978B
test_mvn.cpp 852B
nnmap.cpp 641B
load_archive.cpp 589B
yml_to_libsvm.cpp 584B
yml_to_data_labels.cpp 520B
doxygen.css 23KB
search.css 4KB
tabs.css 1KB
mnist_reader.hpp 15KB
gmm.hpp 11KB
trainer.hpp 7KB
component.hpp 6KB
mnist_reader_less.hpp 5KB
classifier.hpp 5KB
data.hpp 5KB
mcs_fct.hpp 5KB
mcs.hpp 4KB
incr_gmm.hpp 3KB
mnist_utils.hpp 3KB
gmm_estimator.hpp 3KB
mnist_reader_common.hpp 2KB
serialization.hpp 1KB
nnmap.hpp 1KB
gmm_8cpp_source.html 136KB
classcmm_1_1_collab_m_m.html 79KB
_c_make_c_compiler_id_8c_source.html 74KB
namespacemnist.html 74KB
_c_make_c_x_x_compiler_id_8cpp_source.html 73KB
component_8cpp_source.html 68KB
mnist__reader_8hpp_source.html 66KB
gmm_8hpp_source.html 62KB
multiclass__test_8cpp_source.html 60KB
incr__gmm_8cpp_source.html 56KB
incrgmm__test_8cpp_source.html 56KB
test_8cpp_source.html 54KB
classcmm_1_1_component.html 54KB
test__false__samples_8cpp_source.html 49KB
classcmm_1_1_incremental_collab_m_m.html 47KB
classcmm_1_1_data.html 46KB
online__train__gmm_8cpp_source.html 46KB
test__em_8cpp_source.html 46KB
eggholder__two__class__problem_8cpp_source.html 44KB
component_8hpp_source.html 44KB
classcmm_1_1_classifier.html 44KB
classifier_8hpp_source.html 42KB
trainer_8hpp_source.html 42KB
test__batch_8cpp_source.html 40KB
data_8hpp_source.html 38KB
incr__gmm_8hpp_source.html 35KB
classcmm_1_1_n_n_map.html 35KB
mnist__reader__less_8hpp_source.html 34KB
mnist__batch_8cpp_source.html 32KB
files.html 30KB
data_8cpp_source.html 30KB
classcmm_1_1_trainer.html 29KB
mcs__fct_8hpp_source.html 29KB
functions.html 28KB
classcmm_1_1_m_c_s.html 28KB
gen__archive__stat_8cpp_source.html 26KB
test__serial_8cpp_source.html 24KB
mcs_8hpp_source.html 24KB
functions_func.html 24KB
namespaceerror__graph.html 23KB
classcmm_1_1_collab_m_m-members.html 23KB
error__graph_8py_source.html 23KB
gmm__loglikelihood_8cpp_source.html 23KB
gmm__estimator_8hpp_source.html 22KB
structmnist_1_1_m_n_i_s_t__dataset.html 22KB
mcs_8cpp_source.html 22KB
mnist__reader_8hpp.html 21KB
mnist__utils_8hpp_source.html 19KB
namespacecmm.html 19KB
nnmap_8hpp_source.html 19KB
namespacemnist__class__graph.html 19KB
classcmm_1_1_incremental_collab_m_m-members.html 18KB
namespacemembers.html 17KB
data__loaders_8py_source.html 17KB
_c_make_c_x_x_compiler_id_8cpp.html 17KB
_c_make_c_compiler_id_8c.html 17KB
mnist__reader__common_8hpp_source.html 17KB
merged__data_8py_source.html 16KB
共 490 条
- 1
- 2
- 3
- 4
- 5
资源评论
科研吧
- 粉丝: 11
- 资源: 218
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功