Giter Site home page Giter Site logo

evo_traj tum issue about evo HOT 7 CLOSED

michaelgrupp avatar michaelgrupp commented on August 25, 2024
evo_traj tum issue

from evo.

Comments (7)

MichaelGrupp avatar MichaelGrupp commented on August 25, 2024

Looks like a classic "data in the wrong format" issue as this one for example: #55

If you need more help, please upload a reproducible example using the issue template.

from evo.

amranov avatar amranov commented on August 25, 2024

Dear Michael , evo_traj work properly when i plot FrameTrajectory_KITTI_Format.txt (ORB_SLAM) output , but here i am trying to plot LearVIORB_SLAM TUM format .
this is error i get after conversting the format into Kitti
root@amrani:~/testResults# evo_traj tum KeyFrameNavStateTrajectory.txt --save_as_kitti
[ERROR] Unhandled error in evo.main_traj
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/evo/entry_points.py", line 94, in launch
main_module.run(args)
File "/usr/local/lib/python2.7/dist-packages/evo/main_traj.py", line 177, in run
trajectories.append((traj_file, file_interface.read_tum_trajectory_file(traj_file)))
File "/usr/local/lib/python2.7/dist-packages/evo/tools/file_interface.py", line 71, in read_tum_trajectory_file
mat = np.array(csv_read_matrix(file_path, delim=" ", comment_str="#")).astype(float)
ValueError: could not convert string to float:

[ERROR] evo module evo.main_traj crashed - no logfile written (disabled)

from evo.

MichaelGrupp avatar MichaelGrupp commented on August 25, 2024

but here i am trying to plot LearVIORB_SLAM TUM format

Whatever that is - it's certainly not the official TUM benchmark format that evo supports.

error i get after conversting the format into Kitti

Your input format for the conversion is still not the correct TUM format, how should this work?


Upload something to reproduce, or nobody can help you. Or fix your stuff to write the right format, it's all documented.

from evo.

amranov avatar amranov commented on August 25, 2024

Dear michael , sorry for bothering im quite new in this field here my trajectory.txt file
KeyFrameNavStateTrajectory.txt

from evo.

MichaelGrupp avatar MichaelGrupp commented on August 25, 2024

The file has 2 problems:

  • trailing space at the end of each line - space is the delimiter of the TUM format and a delimiter without data after it leads to an error
  • too many columns, looks like there is some additional data that we don't expect

If you use Linux (probably also works on Mac) you can use cut to create a clean copy with only the first 8 columns:

cut --delimiter " " --fields 1-8 KeyFrameNavStateTrajectory.txt > clean.tum

This file is then valid according to evo_traj tum clean.tum --full_check .

from evo.

amranov avatar amranov commented on August 25, 2024

THank you so much
it works properly now

from evo.

jingshaojing avatar jingshaojing commented on August 25, 2024

I have try this method, but it doesnot work

from evo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.