-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to save the poses and map points? #7
Comments
I didn't test this, but something like this should work for the map points. Just paste it and put it before the line for kf in sptam.graph.keyframes():
for m in kf.measurements():
if m.from_triangulation():
pts.append([m.mappoint.position, m.mappoint.normal, m.mappoint.color])
with open('pointcloud.txt', 'w') as f:
f.write('x,y,z,nx,ny,nz,r,g,b\n')
for pt in pts:
pos, n, rgb = pt
f.write(','.join([str(el) for p in pos]))
f.write(','.join([str(el) for p in n]))
f.write(','.join([str(el) for p in rgb]))
f.write('\n) |
You can follow this. `
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I access the poses and map points information so that I can save them in a file?
The text was updated successfully, but these errors were encountered: