Comments (4)
The functionality for it is already in the PoseHelper.h file, So I added a few lines to deinitBundleFusion in BundleFusion.cpp (few lines above and below given so you can find it in the source code):
#ifdef RUN_MULTITHREADED
g_bundler->exitBundlingThread();
g_imageManager->setBundlingFrameRdy(); //release all bundling locks
g_bundler->confirmProcessedInputFrame(); //release all bundling locks
ConditionManager::release ( ConditionManager::Recon ); // release bundling locks
//NEW CODE HERE
std::vector<mat4f> trajectory;
g_bundler->getTrajectoryManager()->getOptimizedTransforms ( trajectory );
PoseHelper::saveToPoseFile(GlobalAppState::get().s_generateMeshDir + "poseFile.txt",trajectory);
if ( bundlingThread->joinable() )
bundlingThread->join(); //wait for the bundling thread to return;
#endif
This should be run if you press 'q' to exit and shutdown the visualisation, and output poseFile.txt in the directory where a mesh would be saved, as specified by s_generateMeshDir in zParametersDefault.txt
Some of the code is copied from processInputRGBDFrame in BundlFusion.cpp, where there is a section for publish_mesh to the visualisation - it gets the trajectory, splits it into positions and camera poses to draw to the visualisation. I just sent the trajectories before splitting into the PoseHelper::saveToPoseFile function. Some of the values can be expressed in scientific notation.
from bundlefusion.
I want to know t, too
from bundlefusion.
You know that after bundlefusion is operated, frame-XXXXXX.pose.txt wrapped in your .sens file is updated. You can translate the newest .sens file into color ones, depth ones and pose ones, then you can each camera pose information for each frame.
from bundlefusion.
@Serena2018 could you elaborate more about "translate the newest .sens file into color ones, depth ones and pose ones, then you can each camera pose information for each frame. how to do it
@zhujiawen1994 @Tomas-Lee if any one know how to get the frame-XXXXXX.pose.txt please explain me know how to get it
from bundlefusion.
Related Issues (20)
- intelrealsense D435 support HOT 2
- ply blurry HOT 12
- wirelessly transmit data
- After converting the depth map of the copyroom to point cloud, Locally, the data is layering. Is it normal ?
- Just build failed with no other messages
- Does this procedure take a long time in the calibration process?
- Online and offline effects are absolutely
- I got an error C++ Error C2280 in D3D11Canvas2D.h 302
- vs2019 and cuda10.2 occurs C2280 errors in SolveTriangular.h 189 HOT 3
- Lost tracking frequently
- VS 2019 and CUDA 11.4 C2280 meshData.cpp 575 HOT 3
- Run offline data and finally fail to get a complete model
- questions about hash settings
- FriedLiver.exe is unresponsive HOT 1
- Different view mode?
- Runtime API error 700: an illegal memory access was encountered. HOT 2
- no display HOT 1
- attempting to reference a deleted function
- Cannot find the .sens file?
- pointcloud does not align on inverse transformations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundlefusion.