Talk:Rodrigues’ rotation formula: Difference between revisions

From Rosetta Code
Content added Content deleted
(Task incomplete – lacks test data)
 
m (added background)
Line 1: Line 1:
=== Background ===

I needed code with no dependencies to model the legs of a walking robot. "Spot" style creatures like from Boston Dynamics are very popular these days.

I prototype in perl, but my robot is likely to use C (on Arduino) or maybe circuit-python - undecided as yet - but that's the reason for the "no dependencies" requirement of course. Either way, there was plenty of *math* everywhere showing how to do what I need, but no actual *code* I could find (besides one confused stackexchange student question in Javascript).

Hopefully this can help everyone who needs to rotate things around in 3D...


===Task incomplete – lacks test data===
===Task incomplete – lacks test data===


We need a few test rotations – simple and edge case input data – for each contribution to show a result for.
We need a few test rotations – simple and edge case input data – for each contribution to show a result for.
[[User:Hout|Hout]] ([[User talk:Hout|talk]]) 21:36, 29 September 2021 (UTC)
[[User:Hout|Hout]] ([[User talk:Hout|talk]]) 21:36, 29 September 2021 (UTC)

* Suggestion - make up some test cases with good coverage (e.g. include unit rotation vectors in one plane, as well as non-unit non-planar tests)

Revision as of 02:41, 30 September 2021

Background

I needed code with no dependencies to model the legs of a walking robot. "Spot" style creatures like from Boston Dynamics are very popular these days.

I prototype in perl, but my robot is likely to use C (on Arduino) or maybe circuit-python - undecided as yet - but that's the reason for the "no dependencies" requirement of course. Either way, there was plenty of *math* everywhere showing how to do what I need, but no actual *code* I could find (besides one confused stackexchange student question in Javascript).

Hopefully this can help everyone who needs to rotate things around in 3D...


Task incomplete – lacks test data

We need a few test rotations – simple and edge case input data – for each contribution to show a result for. Hout (talk) 21:36, 29 September 2021 (UTC)

  • Suggestion - make up some test cases with good coverage (e.g. include unit rotation vectors in one plane, as well as non-unit non-planar tests)