Code Monkey home page Code Monkey logo

Comments (6)

juliangaal avatar juliangaal commented on June 3, 2024 1

Sounds good. I'll take care of it in the next couple of days

from direct_lidar_inertial_odometry.

kennyjchen avatar kennyjchen commented on June 3, 2024 1

@juliangaal -- Thanks again for the catch. I added a quick fix for when, for some reason, dt == 0. Shouldn't happen unless there is a data hiccup.

from direct_lidar_inertial_odometry.

kennyjchen avatar kennyjchen commented on June 3, 2024 1

It's not a guarantee that, just because dt == 0 then the previous measurement and the current measurement are the same. It could be possible that the measurements are different and distinct, but for whatever reason the timestamps are equal. Yes returning won't affect the average rate calculation, but that's purely for visualization. If we return when dt == 0, that would throw away that measurement.

I suppose alternatively, if dt==0, that could be an indicator that a measurement was duplicated during data passing, but I would rather risk duplicating a measurement than losing information. In any case, in practice this should rarely happen, so either way would handle it fine. Just my thinking.

from direct_lidar_inertial_odometry.

kennyjchen avatar kennyjchen commented on June 3, 2024

Ah, good catch! Yes a PR would be great. Thanks so much @juliangaal :)

from direct_lidar_inertial_odometry.

juliangaal avatar juliangaal commented on June 3, 2024

I'm surprised you're not simply returning. Could you explain your thinking? To my understanding, it shouldn't affect the calculation of the average rate because it just does an std::accumulate on the vector and doesn't care about the number of elements.

from direct_lidar_inertial_odometry.

juliangaal avatar juliangaal commented on June 3, 2024

great, thanks.

from direct_lidar_inertial_odometry.

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.