Closed MaximeLemonnier-Leddartech closed 5 years ago
I just did a commit to master - 2b2cc5f - that adds some test values. The file processed_quats.mat
in the data directory has variables quats
(the input quaternions) and quat_e
(the exponential of each quaternion, calculated by MATLAB).
good thing, I don't have matlab, and libraries implementing quaternions exp, ln and power are rare. Speaking of exp, ln and power, I added them for sake of completeness. Will generate a new pull request
Yes, I saw they are rare. I didn't have MATLAB either until about an hour ago ... And I was lucky that our university has the Aerospace toolbox.
you may have to edit your merge a bit. I added the example from matlab documentation (better than nothing)
feel free to rename qln() for qlog() to align with numpy naming
... or ask me to do it
:) - yes, I guess we should follow numpy naming. Would you mind doing it?
yes, will do right now
thanks for the library btw. I think this stuff should be in some numpy module, but it is the best option right now for a very common need. I'm stunned such a set of functionality did not exist since forever in python.
Once people discover this package, it will be used a lot. I agree with some other comment I read here that we should support batch operations (i.e. matrices, with axis syntax), but it is not trivial to add.
whops, just saw an issue reviewing 0e214db. Will fix this tomorrow morning. I check if qnorm == 0, qnorm is a function, meant to check qnorm_ instead
Sorry for the delay, completely forgot for a few days
I added a qexp / qlog round trip test. The Matlab stuff does test the qpow function, you probably saw ...
Sorry did not realized you requested a merge on my fork
I manually checked my unit test.
under python 2.7 py.test --doctest-modules transforms3d failed with E ValueError: no such test method in <class 'unittest.case.TestCase'>: runTest