Giter Club home page Giter Club logo

Comments (11)

thomas-haslwanter avatar thomas-haslwanter commented on August 20, 2024 1

def __init__(self, in_file = None, q_type='analytical', R_init = np.eye(3), calculate_position=True, pos_init = np.zeros(3), in_data = None ):
This is the code for IMU_Base. Is it possible that you have an old version, and should update (currently 6.9)
And regarding the position calculation: I don't know your sensors. But my guess would be that the answer is a simple "no". For example, if you can accept an error of +/- 1 m, and you want to record for 10 min, then your accelerometer would need to have a drift of less than 6 micrometer/sec^2

from scikit-kinematics.

ivan866 avatar ivan866 commented on August 20, 2024

http://work.thaslwanter.at/skinematics/html/imus.html

imus.analytical argument order differs in some places, better be named arguments consistently

from scikit-kinematics.

thomas-haslwanter avatar thomas-haslwanter commented on August 20, 2024

Hi Ivan,
I fixed the first problem.
With the second I am not sure I understand you correctly: do you mean that the function "kalman" has the arguments in a different order (def kalman(rate, acc, omega, mag)) as analytical?
If that is the case, I have fixed it: now the argument sequence in analytical is:
def analytical(rate, accMeasured, omega, initialPosition, R_initialOrientation)

Please let me know if you had that in mind, or something else.

from scikit-kinematics.

ivan866 avatar ivan866 commented on August 20, 2024

I meant that the docs on site and the source code have different argument orders, thus yielding an error if developer decides to use positional arguments rather than named.

The docs after your recent edits still don't match the sources, and you broke the interface in case someone used positional arguments.

from scikit-kinematics.

thomas-haslwanter avatar thomas-haslwanter commented on August 20, 2024

Is the current version ok? Or do you see any remaining problems?

from scikit-kinematics.

ivan866 avatar ivan866 commented on August 20, 2024

Seems OK. You should also add imus.pos field. Pretty valuable.

from scikit-kinematics.

thomas-haslwanter avatar thomas-haslwanter commented on August 20, 2024

Done. Watch out, though, that minute offsets in the accelerometers can lead to erroneous values quickly!

from scikit-kinematics.

ivan866 avatar ivan866 commented on August 20, 2024

calculate_position=True argument to imus.IMU_Base constructor is absent and thus effectively ignored in source 0.6.8 because imus.py, line 235 position value is never used in def _calc_orientation(self).

...minute offsets in the accelerometers...

You mean I can't calculate position by using just angular speed and acceleration if duration of a record is several minutes long?

from scikit-kinematics.

ivan866 avatar ivan866 commented on August 20, 2024

http://work.thaslwanter.at/skinematics/html/imus.html
“mahony” … Mahony algorithm, using, acc and omega

In fact, Mahony uses mag too.

from scikit-kinematics.

thomas-haslwanter avatar thomas-haslwanter commented on August 20, 2024

from scikit-kinematics.

thomas-haslwanter avatar thomas-haslwanter commented on August 20, 2024

Documentation has been updated.

from scikit-kinematics.

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.