-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8610583
Showing
139 changed files
with
22,566 additions
and
0 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,23 @@ | ||
*~ | ||
/data/v1 | ||
/build | ||
/build_mac | ||
/doxygen | ||
*.tsv | ||
/sim_imgs | ||
*.so | ||
*kdev4* | ||
*.pyc | ||
*.out | ||
*.zip | ||
|
||
.idea | ||
.vscode | ||
.DS_Store | ||
tensorboard_logs | ||
*.t7 | ||
*/checkpoints | ||
*.tar | ||
/tasks/R2R-pano/data/*.json | ||
/tasks/R2R-pano/results/*.json | ||
/tasks/R2R-pano/results/*/*.json |
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,3 @@ | ||
[submodule "pybind11"] | ||
path = pybind11 | ||
url = https://github.com/pybind/pybind11 |
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,66 @@ | ||
project(Matterport_Simulator CXX) | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
option(OSMESA_RENDERING "Render offscreen with OSMesa" OFF) | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | ||
|
||
if(NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE Release) | ||
endif() | ||
|
||
include_directories("${PROJECT_SOURCE_DIR}/include") | ||
|
||
find_package(OpenCV REQUIRED) | ||
find_package(PkgConfig REQUIRED) | ||
|
||
pkg_check_modules(JSONCPP REQUIRED jsoncpp) | ||
|
||
if(OSMESA_RENDERING) | ||
pkg_check_modules(OSMESA REQUIRED osmesa) | ||
set(GL_LIBS ${OSMESA_LIBRARIES}) | ||
else() | ||
find_package(OpenGL REQUIRED) | ||
find_package(GLEW REQUIRED) | ||
set(GL_LIBS ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES}) | ||
endif() | ||
|
||
add_library(MatterSim SHARED src/lib/MatterSim.cpp src/lib/Benchmark.cpp) | ||
if(OSMESA_RENDERING) | ||
target_compile_definitions(MatterSim PUBLIC "-DOSMESA_RENDERING") | ||
endif() | ||
target_include_directories(MatterSim PRIVATE ${JSONCPP_INCLUDE_DIRS}) | ||
target_link_libraries(MatterSim ${JSONCPP_LIBRARIES} ${OpenCV_LIBS} ${GL_LIBS}) | ||
|
||
add_executable(tests src/test/main.cpp) | ||
target_include_directories(tests PRIVATE ${JSONCPP_INCLUDE_DIRS}) | ||
target_link_libraries(tests MatterSim ${JSONCPP_LIBRARIES} ${OpenCV_LIBS}) | ||
|
||
add_executable(mattersim_main src/driver/mattersim_main.cpp) | ||
target_link_libraries(mattersim_main MatterSim) | ||
|
||
add_executable(random_agent src/driver/random_agent.cpp) | ||
target_link_libraries(random_agent MatterSim) | ||
|
||
add_subdirectory(pybind11) | ||
|
||
# find_package(PythonInterp 2.7) | ||
message(${PYTHON_EXECUTABLE}) | ||
|
||
# Need to search for python executable again to pick up an activated | ||
# virtualenv python, if any. | ||
unset(PYTHON_EXECUTABLE CACHE) | ||
find_program(PYTHON_EXECUTABLE python | ||
PATHS ENV PATH # look in the PATH environment variable | ||
NO_DEFAULT_PATH # do not look anywhere else... | ||
) | ||
# Make FindNumPy available | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake") | ||
find_package(NumPy REQUIRED) | ||
|
||
pybind11_add_module(MatterSimPython src/lib_python/MatterSimPython.cpp) | ||
target_include_directories(MatterSimPython PRIVATE ${NUMPY_INCLUDES}) | ||
target_link_libraries(MatterSimPython PRIVATE MatterSim) | ||
set_target_properties(MatterSimPython | ||
PROPERTIES | ||
OUTPUT_NAME MatterSim) |
Oops, something went wrong.