Comments (3)
It's weird for me.
The ATE of slam is bigger than vo.
Here is my definition of trajectory of slam:
trajectory = []
n_his = len(st_his.relative_frame_poses)
for i in range(n_his):
if st_his.slam_states[i] == SlamState.OK: #OK
cur_pose = CameraPose(st_his.relative_frame_poses[i])
cur_tra = [str(round(st_his.timestamps[i], 4))] + list(map(str, np.round(cur_pose.Ow, decimals=4))) + \
list(map(str, np.round(R.from_matrix(cur_pose.Rcw).as_quat(), decimals=4)))
trajectory.append(cur_tra)
Do I misunderstand something?
@luigifreda
Thank you in advance!
from pyslam.
Hi,
- you cannot compare main_slam.py with main_vo.py.
Did you study the two methods? As explained in the README
main_vo.py combines the simplest VO ingredients without performing any image point triangulation or windowed bundle adjustment. At each step $k$, main_vo.py estimates the current camera pose $C_k$ with respect to the previous one $C_{k-1}$. The inter-frame pose estimation returns $[R_{k-1,k},t_{k-1,k}]$ with $||t_{k-1,k}||=1$. With this very basic approach, you need to use a **ground truth** in order to recover a correct inter-frame scale $s$ and estimate a valid trajectory by composing $C_k = C_{k-1} * [R_{k-1,k}, s t_{k-1,k}]$. This script is a first start to understand the basics of inter-frame feature tracking and camera pose estimation.
Therefore, main_vo.py is using the ground truth in order to retrieve the interframe scale!
On the other hand, main_slam.py is estimating the trajectory up-to-scale given it's a pure monocular approach, without using any information coming from the ground truth.
-
you cannot compare the slam/vo trajectories directly with the ground truth.
In order to compare trajectories, you need to align them by using a package like
https://github.com/MichaelGrupp/evo
and considering the manifolds ( SE(3) or Sim(3) ) in which the methods compute their estimates. -
in slam.tracking.tracking_history there are keyframes references and relative frame poses.
There is not a function that dumps the final computed trajectory at the end of the run (after all the bundle adjustments). But it easy to code it if you need it.
from pyslam.
Thank you for your reply!
Here is my estimation trajectory code after slam process is done :
trajectory = []
n_his = len(st_his.relative_frame_poses)
for i in range(n_his):
if st_his.slam_states[i] == SlamState.OK: #OK
cur_pose = CameraPose(st_his.relative_frame_poses[i])
cur_tra = [str(round(st_his.timestamps[i], 4))] + list(map(str, np.round(cur_pose.Ow, decimals=4))) + \
list(map(str, np.round(R.from_matrix(cur_pose.Rcw).as_quat(), decimals=4)))
trajectory.append(cur_tra)
Could you help me to check, whether it is correct? Or could you show me what could you generate this trajectory file?
from pyslam.
Related Issues (20)
- main_slam.py 3D map view missing HOT 2
- pangoling error HOT 1
- Timeseries of camera pose HOT 2
- Program not ending when the video is completed and no more images.
- Aborted (core dumped) HOT 2
- Solving ImportError: ../pyslam/thirdparty/g2opy/lib/g2o.so: undefined symbol: _Py_ZeroStruct | Again... HOT 5
- Scale problem HOT 1
- change the optimization cost HOT 1
- RGBD extension - guidance
- Loop closure and pose graph optimization HOT 1
- How to add custom feature detection algorithms and feature descriptor sub algorithms? HOT 2
- Best brutal force SLAM configuration HOT 1
- Error with tensorflow-gpu HOT 2
- ORB_SLAM3 HOT 3
- feature_detector file HOT 2
- webcam error HOT 3
- MatplotLib Not responding HOT 5
- How to reach estimated X,Y,Z,Yaw,Roll and Pitch HOT 14
- Getting error when running the slam HOT 1
- Failed Building wheel for opencv-contrib-python 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 pyslam.