Skip to content
Snippets Groups Projects
Commit 3cd02bc1 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Merge branch 'master' into feature/133/ilw

parents d5729339 f63ea741
No related branches found
No related tags found
1 merge request!109Resolves #173 remove voxel code
......@@ -27,6 +27,6 @@ target_include_directories(ftl-gui PUBLIC
#endif()
#target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_link_libraries(ftl-gui ftlcommon ftlctrl ftlrgbd Threads::Threads ${OpenCV_LIBS} glog::glog ftlnet ftlrender nanogui GL)
target_link_libraries(ftl-gui ftlcommon ftlctrl ftlrgbd Threads::Threads ${OpenCV_LIBS} glog::glog ftlnet nanogui GL)
......@@ -32,6 +32,6 @@ set_property(TARGET ftl-reconstruct PROPERTY CUDA_SEPARABLE_COMPILATION ON)
endif()
#target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_link_libraries(ftl-reconstruct ftlcommon ftlrgbd Threads::Threads ${OpenCV_LIBS} ftlctrl ftlnet ftlrender)
target_link_libraries(ftl-reconstruct ftlcommon ftlrgbd Threads::Threads ${OpenCV_LIBS} ftlctrl ftlnet)
......@@ -21,6 +21,6 @@ set_property(TARGET ftl-vision PROPERTY CUDA_SEPARABLE_COMPILATION OFF)
endif()
#target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_link_libraries(ftl-vision ftlrgbd ftlcommon ftlctrl ftlrender ${OpenCV_LIBS} ${LIBSGM_LIBRARIES} ${CUDA_LIBRARIES} ftlnet)
target_link_libraries(ftl-vision ftlrgbd ftlcommon ftlctrl ${OpenCV_LIBS} ${LIBSGM_LIBRARIES} ${CUDA_LIBRARIES} ftlnet)
......@@ -19,7 +19,7 @@
#include <opencv2/opencv.hpp>
#include <ftl/rgbd.hpp>
#include <ftl/middlebury.hpp>
#include <ftl/display.hpp>
//#include <ftl/display.hpp>
#include <ftl/rgbd/streamer.hpp>
#include <ftl/net/universe.hpp>
#include <ftl/slave.hpp>
......@@ -36,7 +36,7 @@
using ftl::rgbd::Source;
using ftl::rgbd::Camera;
using ftl::Display;
//using ftl::Display;
using ftl::rgbd::Streamer;
using ftl::net::Universe;
using std::string;
......@@ -87,7 +87,7 @@ static void run(ftl::Configurable *root) {
if (file != "") source->set("uri", file);
Display *display = ftl::create<Display>(root, "display", "local");
//Display *display = ftl::create<Display>(root, "display", "local");
Streamer *stream = ftl::create<Streamer>(root, "stream", net);
stream->add(source);
......@@ -95,7 +95,7 @@ static void run(ftl::Configurable *root) {
net->start();
LOG(INFO) << "Running...";
if (display->hasDisplays()) {
/*if (display->hasDisplays()) {
stream->run();
while (ftl::running && display->active()) {
cv::Mat rgb, depth;
......@@ -103,9 +103,9 @@ static void run(ftl::Configurable *root) {
if (!rgb.empty()) display->render(rgb, depth, source->parameters());
display->wait(10);
}
} else {
} else {*/
stream->run(true);
}
//}
LOG(INFO) << "Stopping...";
slave.stop();
......@@ -115,7 +115,7 @@ static void run(ftl::Configurable *root) {
ftl::pool.stop();
delete stream;
delete display;
//delete display;
//delete source; // TODO(Nick) Add ftl::destroy
delete net;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment