Skip to content

Commit

Permalink
Prepare default pipeline for KinFu client example
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jun 22, 2024
1 parent cf2a0bb commit 5ce9f0b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/cpp/exampleSceneReconstructionClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ target_link_libraries(exampleSceneReconstructionClient YARP::YARP_os
YARP::YARP_sig
ROBOTICSLAB::YarpCloudUtils
ROBOTICSLAB::VisionIDL)

target_compile_definitions(exampleSceneReconstructionClient PRIVATE SAMPLE_CONFIG="${CMAKE_CURRENT_SOURCE_DIR}/pipeline.ini")
12 changes: 10 additions & 2 deletions examples/cpp/exampleSceneReconstructionClient/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ int main(int argc, char * argv[])
return 1;
}

yarp::os::ResourceFinder options;
options.configure(argc, argv);
yarp::os::ResourceFinder rf;
rf.configure(argc, argv);

yarp::os::Property options(rf.toString().c_str());

#ifdef SAMPLE_CONFIG
// set sensible defaults
std::string sampleConfigFile = SAMPLE_CONFIG;
options.fromConfigFile(sampleConfigFile, false);
#endif

yDebug() << "Config:" << options.toString();

Expand Down
10 changes: 10 additions & 0 deletions examples/cpp/exampleSceneReconstructionClient/pipeline.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[meshPipeline downsample]
algorithm "VoxelGrid"
leafSize 0.02f

[meshPipeline estimate]
algorithm "NormalEstimationOMP"
kSearch 40

[meshPipeline reconstruct]
algorithm "Poisson"

0 comments on commit 5ce9f0b

Please sign in to comment.