Code Monkey home page Code Monkey logo

pyteapot-quaternion-euler-cube-rotation's People

Contributors

takaklas avatar thecountoftuscany avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pyteapot-quaternion-euler-cube-rotation's Issues

No argparse interface for controlling the program

Raising issue for the TODO
Add a nice [[https://docs.python.org/3/library/argparse.html][ argparse ]] interface instead of requiring the user to change variables in the script. Include example usage in docstring (a la [[https://tldr.sh/][tldr]] or [[http://bropages.org][bro]])

Raising PR with implementation
#7

Application: Black screen, not-responding

Hi,

I tried to run the application on my Windows, but the window is black and is not responding. I believe it is same issue as mentioned in #5

Below you can find the screenshots describing the issue and my prerequisites installation:
screenshotpy

Captureimu

I guess I have some dependency missing, but I don't get any kind of error. If someone has done Windows installation could you please guide what to do regarding other pre-requisites?

Do graceful error handling for socket communication

From issue #11, it seems like the program just hangs if the sockets are not configured properly (issue was reproduced on my Windows computer). The program should raise an error and exit instead of getting stuck. This works fine for misconfigured serial port.

Euler angles Range

Hi,
Thanks for the nice repo. I would like to ask about the Euler angle ranges obtained from MPU9250. Do you get the orientation values between -180 to +180 degrees on each Euler axes (yaw, roll, pitch)?

OpenGL.error.NullFunctionError: Attempt to call an undefined function gluPerspective

I am running on Linux (Ubuntu). The window shows for a brief moment before it closes and this error appears:

pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "pyteapot.py", line 188, in
main()
File "pyteapot.py", line 21, in main
resizewin(640, 480)
File "pyteapot.py", line 52, in resizewin
gluPerspective(45, 1.0*width/height, 0.1, 100.0)
File "/usr/local/lib/python2.7/dist-packages/OpenGL/platform/baseplatform.py", line 407, in call
self.name, self.name,
OpenGL.error.NullFunctionError: Attempt to call an undefined function gluPerspective, check for bool(gluPerspective) before calling

unable to initialize

besides, configuring serial quaternion mode, does anything else need to be done to initialize the application?
I have also installed PyOpenGL and pygame. When i run the app a white window comes up, it never gets to draw the real application

How to rotate object 180 degrees?

Currently the perspective of the displayed object is flipped 180 degrees and I don't see any support for modifying the direction. Do you know how to implement this? I've tried flipping certain signs withitn glRotatef, but haven't gotten it to change correctly.

MPU9250 sensor fusion

Where can I get find the code that generates the quaternion for the MPU9250 raw data ? Your sensor performance looks really good.

Which order to pass quaternions?

Hey!

I have a dataset of IMU recordings with video and I want to verify that the quaternion outputs match the orientation I see on the video itself but I see no correlation between the video and the visualization for some reason.

I am trying to see if the sensor is outputting the wrong quaternion information (could be, using pretty low MAG, GYRO and ACCEL sample rate) but to be sure I need to know that the visualization is not wrong.

I am passing QuatW QuatX QuatY and QuatZ. Is this the correct order?

Thanks

Quaternion calculation

is the calculation correct?
On your code:
yaw = math.atan2(2.0 * (q[1] * q[2] + q[0] * q[3]), q[0] * q[0] + q[1] * q[1] - q[2] * q[2] - q[3] * q[3])
pitch = -math.sin(2.0 * (q[1] * q[3] - q[0] * q[2]))
roll = math.atan2(2.0 * (q[0] * q[1] + q[2] * q[3]), q[0] * q[0] - q[1] * q[1] - q[2] * q[2] + q[3] * q[3])
And on wikipedia for example:
yaw = atan2(2 * (q0 * q3 + q1 * q2), 1 - 2 * (q2 * q2 + q3 * q3));
pitch = asin( 2 * (q0 * q2 - q3 * q1));
roll = atan2(2 * (q0 * q1 + q2 * q3),1 - 2 * (q1 * q1 + q2 * q2));

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.