-
Notifications
You must be signed in to change notification settings - Fork 867
What is the format of frame_trajectory.txt ? #244
Comments
@IaroslavS frame_trajectory.txt contains timestamp, 3dof pose, orientation as Quaternion. you can compute SE3 matrix from the 3dof pose (x,y,z) and orientation-->SO3. |
Thanks. |
I use the evo tools to evaluate the result. However, it promots [ERROR] KITTI pose files must have 12 entries per row and no trailing delimiter at the end of the rows (space). So how can I make the output as the format required above? |
@squaresoft2015 $ evo_traj tum keyframe_trajectory.txt -p |
@IaroslavS You can browse the trajectory format here. |
I specified the tum parameter in evo, an error message response: |
@squaresoft2015 |
The trajectory was generated by openvslam in KITTI02 sequences. Here is the beginning of the trajectory file: |
@squaresoft2015 Thanks.
Please try to uninstall and re-install |
Yes, the trajectory can be loaded, but not plotted in image file. When I execute the command as you have done, the result is the same:
|
@squaresoft2015
If the trajectory file is NOT in the TUM-style format, the following message will be appeared:
|
I have executed the script and no error message generated. |
@squaresoft2015 Please remove the last row of the trajectory file if it is a blank line. |
There is no blank line in the trajectory file or ground truth. The only difference is that the trajectory file has 8 digits per row and ground truth has 12. |
@squaresoft2015 Please confirm that the ground-truth trajectory file is in the TUM-style. |
You can convert KITTI-style files to TUM style ones using
|
Yes, I tried to save the KITTI ground truth as TUM format. But it still prompt error message: |
@squaresoft2015 Trajectory files created by OpenVSLAM are in the TUM-style. Or, you can do it alternatively by converting the GT files to TUM-style ones first, then comparing |
Thank you so much. I have converted the TUM-style to KITTI-style and compare it with the ground truth. But the curve has no matching point. I have uploaded the image to Baidu net-disk: |
@squaresoft2015
|
Yes, I tried the --align and --correct_scale option and it prompt: |
@squaresoft2015 Please see here. |
I have added the timestamp to KITTI ground truth and compared with frame_trajectory.txt generated by Openvslam. The result is as follows: Is it seems correct? |
It seems correct except for jumping of the trajectory. |
I have tried several times on the KITTI00 sequence. When I ran with the monocular mode, the generated trajectory was plotted as: Link: https://pan.baidu.com/s/1r2EWqebeHLMyLeyqCz20jg Link: https://pan.baidu.com/s/1OnE3YuqZpQgmuvXaPJsP-w They all seems incorrect with the ground truth reference. OpenvSLAM should estimate more accurate trajectory when comparing with ORB-SLAM, right? Since it is the upgraded version. Did I use the wrong *.yaml file? Or is there anything I have done incorrectly? |
@squaresoft2015 |
The frame trajectory and keyframe trajectory are almost the same: |
@IaroslavS Thank you that you've solved my questions. I fixed the run_kitti_slam.cc file by replacing "TUM" with "KITTI", then rebuilt the whole project. Now the program works fine and generates trajectories in KITTI format. |
@IaroslavS Do you mean the command should be kitti rather than tum? I remember all the generated trajectories are in TUM format. |
There are no special restricions for output format, cause you can always change format for your favor by yourself. But if you're going to upload results to KITTI Benchmark site then output format should be KITTI. |
Can you help me what to do to convert |
Can you help me with that what I should do to convert frame_trajectory.txt to the KITTI-style? |
cd "your working folder, where you want to have a new repo EVO"
Make a new python script by creating a new empty file, for example "convert_tum_to_kitti.py" and copy text below into the new made file
Try to launch this script and don't forget to specify arguments "--tum_poses", "--kitti_poses" when launching. |
Hi !
There are 8 numbers in file frame_trajectory.txt. What do they mean ? As far as I know an SE3 matrix consists of 16 number, and 12 of them are significant, because the last row of the matrix consists of 0,0,0,1.
The text was updated successfully, but these errors were encountered: